diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/python_api/examples/bpy.types.RenderEngine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/python_api/examples/bpy.types.RenderEngine.py b/doc/python_api/examples/bpy.types.RenderEngine.py index cfb32433248..86ab4b3097d 100644 --- a/doc/python_api/examples/bpy.types.RenderEngine.py +++ b/doc/python_api/examples/bpy.types.RenderEngine.py @@ -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 |