[Bf-extensions-cvs] [4dc84d6] master: fix for unreported addon crash on execute, fix c, u shape transform

meta-androcto noreply at git.blender.org
Sat Mar 19 08:24:57 CET 2016


Commit: 4dc84d67773154f08f8c2c670c88e4f76f855be4
Author: meta-androcto
Date:   Sat Mar 19 18:24:14 2016 +1100
Branches: master
https://developer.blender.org/rBAC4dc84d67773154f08f8c2c670c88e4f76f855be4

fix for unreported addon crash on execute, fix c,u shape transform

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

M	add_mesh_building_objects/add_mesh_beam_builder.py

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

diff --git a/add_mesh_building_objects/add_mesh_beam_builder.py b/add_mesh_building_objects/add_mesh_beam_builder.py
index 42b6962..0240ef7 100644
--- a/add_mesh_building_objects/add_mesh_beam_builder.py
+++ b/add_mesh_building_objects/add_mesh_beam_builder.py
@@ -78,7 +78,7 @@ def create_mesh (self, context, name, verts, faces, debug):
     if debug:
         print("create_mesh function called and finished")
 
-    return object_utils.object_data_add(context, mesh, operator=self)
+    return object_utils.object_data_add(context, mesh, operator=None)
 
 
 def recalc_normals(debug):
@@ -1135,9 +1135,10 @@ class Add_C_Beam(bpy.types.Operator):
         # and apply rotation to reset those values
         # if self.type is true, do nothing as beam is alreay u-type.
         # rotation value is in radians
-            bpy.ops.transform.rotate(value=[1.570796], constraint_axis=[False, True, False])
+            bpy.ops.transform.rotate(value=1.5708, axis=(0, 1, 0))
             bpy.ops.object.transform_apply(location=False, rotation =True, scale=False)
 
+
         return {'FINISHED'}
 
 '''



More information about the Bf-extensions-cvs mailing list