Fix T61827: align.selected2xyz was very slow
This was caused by an unnecessary loop. At least I could not see any reason why it should be there.
This commit is contained in:
parent
c94604993b
commit
45c7d47bf2
Notes:
blender-bot
2023-02-14 19:19:54 +01:00
Referenced by issue #61827, Pie Menu: Edit Align Pie Lag
|
@ -126,14 +126,13 @@ class AlignSelectedXYZ(Operator):
|
|||
}
|
||||
chosen_value = values[self.axis][0]
|
||||
constraint_value = values[self.axis][1]
|
||||
for vert in bpy.context.object.data.vertices:
|
||||
bpy.ops.transform.resize(
|
||||
value=chosen_value, constraint_axis=constraint_value,
|
||||
constraint_orientation='GLOBAL',
|
||||
mirror=False, proportional='DISABLED',
|
||||
proportional_edit_falloff='SMOOTH',
|
||||
proportional_size=1
|
||||
)
|
||||
bpy.ops.transform.resize(
|
||||
value=chosen_value, constraint_axis=constraint_value,
|
||||
constraint_orientation='GLOBAL',
|
||||
mirror=False, proportional='DISABLED',
|
||||
proportional_edit_falloff='SMOOTH',
|
||||
proportional_size=1
|
||||
)
|
||||
return {'FINISHED'}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue