| 62 | |
| 63 | |
| 64 | class OBJECT_OT_AutoAlignKeepOperator(Operator): |
| 65 | bl_idname = 'object.auto_align_keep' |
| 66 | bl_label = 'Auto Align' |
| 67 | bl_description = 'Automatically re-aligns wrong axis objects' |
| 68 | bl_options = {'REGISTER', 'UNDO'} |
| 69 | |
| 70 | def execute(self, context): |
| 71 | auto_align = context.scene.auto_align |
| 72 | align(context, keep=True, bake=True, symmetry=auto_align.symmetry) |
| 73 | |
| 74 | return {'FINISHED'} |
| 75 | |
| 76 | |
| 77 | def align(context, bake=False, keep=False, symmetry=False): |
nothing calls this directly
no outgoing calls
no test coverage detected