Changeset View
Changeset View
Standalone View
Standalone View
space_view3d_pie_menus/pie_snap_menu.py
| Show First 20 Lines • Show All 179 Lines • ▼ Show 20 Lines | def execute(self, context): | ||||
| return {'FINISHED'} | return {'FINISHED'} | ||||
| class SnapTargetVariable(Operator): | class SnapTargetVariable(Operator): | ||||
| bl_idname = "object.snaptargetvariable" | bl_idname = "object.snaptargetvariable" | ||||
| bl_label = "Snap Target Variable" | bl_label = "Snap Target Variable" | ||||
| bl_options = {'REGISTER', 'UNDO'} | bl_options = {'REGISTER', 'UNDO'} | ||||
| variable = bpy.props.StringProperty() | |||||
| variable: bpy.props.StringProperty() | |||||
| @classmethod | @classmethod | ||||
| def poll(cls, context): | def poll(cls, context): | ||||
| return True | return True | ||||
| def execute(self, context): | def execute(self, context): | ||||
| ts = context.tool_settings | ts = context.tool_settings | ||||
| ▲ Show 20 Lines • Show All 72 Lines • Show Last 20 Lines | |||||