Fixing obscure logical bug when publishing from `pyblish-qml` using `InstancePlugin` as Collector.
This would previously fail, by not processing `CollectorB` due to the previously created `MyInstance` not being visible.
python
count = {"": 0}
history = []
class CollectorA(pyblish.api.ContextPlugin):
order = pyblish.api.CollectorOrder
def process(self, context):
history.append(type(self).__name__)
context.create_instance("MyInstance")
count[""] += 1
class CollectorB(pyblish.api.InstancePlugin):
order = pyblish.api.CollectorOrder + 0.1
def process(self, instance):
history.append(type(self).__name__)
count[""] += 10
pyblish.api.register_plugin(CollectorA)
pyblish.api.register_plugin(CollectorB)
c = reset()
check_present("CollectorA", c.item_model)
check_present("CollectorB", c.item_model)
check_present("MyInstance", c.item_model)
assert count[""] == 11, count
assert history == ["CollectorA",