Skip to content
This repository has been archived by the owner on Sep 20, 2024. It is now read-only.

Bugfix/266 toggle instance in pyblish pype crashes #268

Merged

Conversation

iLLiCiTiT
Copy link
Member

Issue:
setData method called in model cause TypeError: invalid result from InstanceItem.setData()

Solution:
Toggle setData method happens on item not on model.

Resolves: #266

@iLLiCiTiT iLLiCiTiT self-assigned this Jun 16, 2020
@iLLiCiTiT
Copy link
Member Author

This should be fixed in pyblish-lite too for client without 2.10 release.

Copy link
Member

@tokejepsen tokejepsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether its related to this, but the callback instanceToggled does not seem to work.

    pyblish.api.register_callback(
        "instanceToggled", on_pyblish_instance_toggled
    )

@iLLiCiTiT
Copy link
Member Author

iLLiCiTiT commented Jun 16, 2020

Not sure whether its related to this, but the callback instanceToggled does not seem to work.

That is not related, but good to know. Just looked how it's implemented in pyblish-qml and it should be easy to implement here if necessary in next PR. But I don't see use case for that to be honest?

@tokejepsen
Copy link
Member

But I don't see use case for that to be honest?

For example in Harmony you can persist the publish state to the scene so anyone picking up the scene afterwards will have the same enabled/disabled instances.
In Harmony this is done thought enabling/disabling nodes in the view.

@iLLiCiTiT
Copy link
Member Author

In Harmony this is done thought enabling/disabling nodes in the view.

Create new issue, it should be easy to do.

@iLLiCiTiT iLLiCiTiT changed the base branch from 2.x/develop to release/2.10.0 June 16, 2020 14:59
@mkolar mkolar merged commit d88f04e into release/2.10.0 Jun 16, 2020
@mkolar mkolar added this to the 2.10 milestone Jun 23, 2020
@mkolar mkolar deleted the bugfix/266-Toggle_instance_in_Pyblish-pype_crashes branch July 8, 2020 07:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants