OP-2765 - trigger failure when new instance tried to be published by Pyblish

This could happen if artist try to switch between old Pyblish and New Publish
This commit is contained in:
Petr Kalis 2022-03-09 16:07:18 +01:00
parent 56e2121e30
commit ec9b4802f4

View file

@ -26,6 +26,10 @@ class PreCollectRender(pyblish.api.ContextPlugin):
return
for inst in list_instances():
if inst.get("creator_attributes"):
raise ValueError("Instance created in New publisher, "
"cannot be published in Pyblish")
if inst["family"] not in self.family_remapping.keys():
continue