[Bf-extensions-cvs] [80c7986] master: Fix T41178 Merge of soc-2013-paint added a new parameter to strokes: "size" This crashed the add-on when trying to erase strokes (since they did not yet have this additional parameter)

Bart Crouch noreply at git.blender.org
Wed Aug 6 15:16:33 CEST 2014


Commit: 80c798648584776bbcc6a79d25de15722e4b98ba
Author: Bart Crouch
Date:   Wed Aug 6 15:16:23 2014 +0200
Branches: master
https://developer.blender.org/rBA80c798648584776bbcc6a79d25de15722e4b98ba

Fix T41178
Merge of soc-2013-paint added a new parameter to strokes: "size"
This crashed the add-on when trying to erase strokes (since they
did not yet have this additional parameter)

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

M	mesh_looptools.py

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

diff --git a/mesh_looptools.py b/mesh_looptools.py
index 0e4d26a..a1e52a1 100644
--- a/mesh_looptools.py
+++ b/mesh_looptools.py
@@ -19,7 +19,7 @@
 bl_info = {
     "name": "LoopTools",
     "author": "Bart Crouch",
-    "version": (4, 6, 0),
+    "version": (4, 6, 1),
     "blender": (2, 69, 3),
     "location": "View3D > Toolbar and View3D > Specials (W-key)",
     "warning": "",
@@ -2702,6 +2702,7 @@ def gstretch_erase_stroke(stroke, context):
             'mouse': (view3d_utils.location_3d_to_region_2d(\
                 context.region, context.space_data.region_3d, loc)),
             'pressure': 1,
+            'size': 0,
             'time': 0}
         return(lib)



More information about the Bf-extensions-cvs mailing list