Fix T64528: error in RenderEngine API docs example

This commit is contained in:
Brecht Van Lommel 2019-05-23 10:28:24 +02:00
parent 8022bd7059
commit 49593a2c38

@ -79,11 +79,11 @@ class CustomRenderEngine(bpy.types.RenderEngine):
print("Datablock updated: ", update.id.name)
# Test if any material was added, removed or changed.
if depsgraph.id_type_update('MATERIAL'):
if depsgraph.id_type_updated('MATERIAL'):
print("Materials updated")
# Loop over all object instances in the scene.
if first_time or depsgraph.id_type_update('OBJECT'):
if first_time or depsgraph.id_type_updated('OBJECT'):
for instance in depsgraph.object_instances:
pass