[Bf-blender-cvs] [49593a2c38f] master: Fix T64528: error in RenderEngine API docs example
Brecht Van Lommel
noreply at git.blender.org
Thu May 23 10:33:17 CEST 2019
Commit: 49593a2c38f0f31869beb818f6436c96f0395803
Author: Brecht Van Lommel
Date: Thu May 23 10:28:24 2019 +0200
Branches: master
https://developer.blender.org/rB49593a2c38f0f31869beb818f6436c96f0395803
Fix T64528: error in RenderEngine API docs example
===================================================================
M doc/python_api/examples/bpy.types.RenderEngine.py
===================================================================
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
More information about the Bf-blender-cvs
mailing list