[Bf-extensions-cvs] [178738ed] master: Fix addon (btrace) to use latest depsgraph API

Dalai Felinto noreply at git.blender.org
Fri May 31 16:28:49 CEST 2019


Commit: 178738edd2ee2817aaf49bf03b968215795e211c
Author: Dalai Felinto
Date:   Fri May 31 11:28:29 2019 -0300
Branches: master
https://developer.blender.org/rBA178738edd2ee2817aaf49bf03b968215795e211c

Fix addon (btrace) to use latest depsgraph API

Addon itself may not be working, but it may as well use the correct API.

===================================================================

M	btrace/bTrace.py

===================================================================

diff --git a/btrace/bTrace.py b/btrace/bTrace.py
index f4d64a0c..0c7f4241 100644
--- a/btrace/bTrace.py
+++ b/btrace/bTrace.py
@@ -293,7 +293,7 @@ class OBJECT_OT_particletrace(Operator):
             Btrace = bpy.context.window_manager.curve_tracer
             particle_step = Btrace.particle_step    # step size in frames
             obj = bpy.context.object
-            obj = bpy.context.depsgraph.objects.get(ob.name, None)
+            obj = bpy.context.evaluated_depsgraph_get().objects.get(ob.name, None)
             ps = obj.particle_systems.active
             curvelist = []
             curve_handle = Btrace.curve_handle
@@ -375,7 +375,7 @@ class OBJECT_OT_traceallparticles(Operator):
     def execute(self, context):
         try:
             obj = context.object
-            eval_ob = bpy.context.depsgraph.objects.get(obj.name, None)
+            eval_ob = bpy.context.evaluated_depsgraph_get().objects.get(obj.name, None)
             ps = obj.particle_systems.active
             setting = ps.settings



More information about the Bf-extensions-cvs mailing list