[Bf-extensions-cvs] [bea99b25] master: Fix calls to object.transform_ apply due to API changes
Jacques Lucke
noreply at git.blender.org
Mon Jan 21 14:39:39 CET 2019
Commit: bea99b2500198bedf5286e3ca27034237afef9b3
Author: Jacques Lucke
Date: Mon Jan 21 14:35:53 2019 +0100
Branches: master
https://developer.blender.org/rBACbea99b2500198bedf5286e3ca27034237afef9b3
Fix calls to object.transform_ apply due to API changes
The parameter defaults were changed in rB0c829e8240eebd7ce4ed9d61f8682c0d6bf534f4
===================================================================
M np_station/np_point_align.py
M np_station/np_point_scale.py
===================================================================
diff --git a/np_station/np_point_align.py b/np_station/np_point_align.py
index 4290b049..66c6b804 100644
--- a/np_station/np_point_align.py
+++ b/np_station/np_point_align.py
@@ -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)
diff --git a/np_station/np_point_scale.py b/np_station/np_point_scale.py
index decb95bc..514b9323 100644
--- a/np_station/np_point_scale.py
+++ b/np_station/np_point_scale.py
@@ -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
More information about the Bf-extensions-cvs
mailing list