[Bf-extensions-cvs] [71b932d] master: Avoid creating matrix on load

Campbell Barton noreply at git.blender.org
Tue Jul 21 02:13:29 CEST 2015


Commit: 71b932d1d13e6f1e1299b94d75f0875b54c6e860
Author: Campbell Barton
Date:   Tue Jul 21 10:07:54 2015 +1000
Branches: master
https://developer.blender.org/rBA71b932d1d13e6f1e1299b94d75f0875b54c6e860

Avoid creating matrix on load

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

M	add_curve_extra_objects/add_curve_aceous_galore.py

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

diff --git a/add_curve_extra_objects/add_curve_aceous_galore.py b/add_curve_extra_objects/add_curve_aceous_galore.py
index 0eae5e8..dbe45bb 100644
--- a/add_curve_extra_objects/add_curve_aceous_galore.py
+++ b/add_curve_extra_objects/add_curve_aceous_galore.py
@@ -768,7 +768,7 @@ class Curveaceous_galore(bpy.types.Operator):
     bl_options = {'REGISTER', 'UNDO', 'PRESET'}
 
     # align_matrix for the invoke
-    align_matrix = Matrix()
+    align_matrix = None
 
     #### general properties
     GalloreTypes = [
@@ -1106,7 +1106,7 @@ class Curveaceous_galore(bpy.types.Operator):
 
 
         # main function
-        main(context, self, self.align_matrix)
+        main(context, self, self.align_matrix or Matrix())
 
         # restore pre operator undo state
         bpy.context.user_preferences.edit.use_global_undo = undo



More information about the Bf-extensions-cvs mailing list