

Something like: my_objs = dict()įor ob_inst in depsgraph.object_instances: It seems the recommended way would be to use the object.data as the key.

However, with this new change this doesn’t seem to be the recommended any more. Our addon used to map to our own data classes in a dictionary, something like this: my_objs = dict()įor ob in : References to this object must not be stored between loop iterations. object_instance.object: A temporary object wrapping the instance.

Now they can be different and it is correct to use. instance_object.data were always the same. I’m trying to update our render engine addon to deal with the new change to object instances in 3.0, specifically the API changes ( Reference/Release Notes/3.0/Python API - Blender Developer Wiki) mentioned:
