diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2019-05-31 17:28:29 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2019-05-31 17:28:29 +0300 |
commit | 178738edd2ee2817aaf49bf03b968215795e211c (patch) | |
tree | 2b1ce1325e321e914886e96c25c9bdc41c568d01 /btrace | |
parent | b2b97906fbe0f7930e1afc3d86bd64bc932b1d48 (diff) |
Fix addon (btrace) to use latest depsgraph API
Addon itself may not be working, but it may as well use the correct API.
Diffstat (limited to 'btrace')
-rw-r--r-- | btrace/bTrace.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 |