[Bf-extensions-cvs] [e7d0ba4f] master: btrace: Fix particle modes, remove warning

meta-androcto noreply at git.blender.org
Fri Jul 12 10:10:24 CEST 2019


Commit: e7d0ba4f070dfd7ccec4442b9583e3181530a2df
Author: meta-androcto
Date:   Fri Jul 12 18:10:09 2019 +1000
Branches: master
https://developer.blender.org/rBAe7d0ba4f070dfd7ccec4442b9583e3181530a2df

btrace: Fix particle modes, remove warning

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

M	btrace/__init__.py
M	btrace/bTrace.py

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

diff --git a/btrace/__init__.py b/btrace/__init__.py
index e1afac58..dfdbbcc4 100644
--- a/btrace/__init__.py
+++ b/btrace/__init__.py
@@ -20,11 +20,11 @@
 bl_info = {
     "name": "Btrace",
     "author": "liero, crazycourier, Atom, Meta-Androcto, MacKracken",
-    "version": (1, 2, 2),
+    "version": (1, 2, 3),
     "blender": (2, 80, 0),
     "location": "View3D > Sidebar > Create Tab",
     "description": "Tools for converting/animating objects/particles into curves",
-    "warning": "Particle Tracers not working",
+    "warning": "",
     "wiki_url": "https://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Curve/Btrace",
     "category": "Add Curve"}
 
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



More information about the Bf-extensions-cvs mailing list