diff options
author | meta-androcto <meta.androcto1@gmail.com> | 2019-07-12 11:10:09 +0300 |
---|---|---|
committer | meta-androcto <meta.androcto1@gmail.com> | 2019-07-12 11:10:09 +0300 |
commit | e7d0ba4f070dfd7ccec4442b9583e3181530a2df (patch) | |
tree | f1468cec298c72680ebf2c43b0c9e3f187abf979 /btrace/bTrace.py | |
parent | f54338c63ba36cbbe83161c0b3d4d2b1aa01c4a9 (diff) |
btrace: Fix particle modes, remove warning
Diffstat (limited to 'btrace/bTrace.py')
-rw-r--r-- | btrace/bTrace.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/btrace/bTrace.py b/btrace/bTrace.py index 0c7f4241..86961efb 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.evaluated_depsgraph_get().objects.get(ob.name, None) + obj = bpy.context.evaluated_depsgraph_get().objects.get(obj.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.evaluated_depsgraph_get().objects.get(obj.name, None) + obj = bpy.context.evaluated_depsgraph_get().objects.get(obj.name, None) ps = obj.particle_systems.active setting = ps.settings @@ -385,7 +385,7 @@ class OBJECT_OT_traceallparticles(Operator): "Grid distribution mode for particles not supported") return{'CANCELLED'} - Btrace = context.window_manager.curve_tracer + Btrace = bpy.context.window_manager.curve_tracer # Get frame start particle_f_start = Btrace.particle_f_start # Get frame end |