- self.name = obj.name
- self.matrix_world = obj.matrix_world
- self.rotation_mode = obj.rotation_mode
- self.prototype = prototype
+ if type(obj)==bpy.types.DepsgraphObjectInstance:
+ self.name = None
+ self.matrix_world = mathutils.Matrix(obj.matrix_world)
+ self.rotation_mode = prototype.rotation_mode
+ self.prototype = bpy.data.objects[prototype.name]
+ else:
+ self.name = obj.name
+ self.matrix_world = obj.matrix_world
+ self.rotation_mode = obj.rotation_mode
+ self.prototype = prototype