Fix calls to object.transform_ apply due to API changes
authorJacques Lucke <mail@jlucke.com>
Mon, 21 Jan 2019 13:35:53 +0000 (14:35 +0100)
committerJacques Lucke <mail@jlucke.com>
Mon, 21 Jan 2019 13:35:53 +0000 (14:35 +0100)
The parameter defaults were changed in rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4

np_station/np_point_align.py
np_station/np_point_scale.py

index 4290b04..66c6b80 100644 (file)
@@ -586,7 +586,7 @@ class NPPLAlignSelected(bpy.types.Operator):
                 np_print('fromme.vertices = ', fromme.vertices)
                 bpy.ops.object.select_all(action = 'DESELECT')
                 fromob.select = True
-                bpy.ops.object.transform_apply(rotation=True,scale=True)
+                bpy.ops.object.transform_apply(location=False,rotation=True,scale=True)
                 for ob in selob:
                     ob.select = True
                 scn.update()
@@ -604,7 +604,7 @@ class NPPLAlignSelected(bpy.types.Operator):
                     bpy.ops.transform.rotate(value = -rot_ang, axis = rot_axis)
                     bpy.ops.object.select_all(action = 'DESELECT')
                     fromob.select = True
-                    bpy.ops.object.transform_apply(rotation=True,scale=True)
+                    bpy.ops.object.transform_apply(location=False,rotation=True,scale=True)
                     for ob in selob:
                         ob.select = True
                     if ((tome.vertices[2].co - proj_t)).angle(((fromme.vertices[2].co + fromob.location) - proj_f)) != 0: bpy.ops.transform.rotate(value = 2*rot_ang, axis = rot_axis)
index decb95b..514b932 100644 (file)
@@ -322,7 +322,7 @@ class NPPSPrepareContext(bpy.types.Operator):
                 axis = (False, False, True)
             if flag_con: axis = (False, False, False)
             if flag_cenpivot: curloc = c3d
-            if flag_force: bpy.ops.object.transform_apply(rotation=True,scale=True)
+            if flag_force: bpy.ops.object.transform_apply(location=False,rotation=True,scale=True)
             bpy.context.scene.cursor_location = curloc
             NP020PS.axis = axis