Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_toolsystem_toolbar.py
| Context not available. | |||||
| @ToolDef.from_fn | @ToolDef.from_fn | ||||
| def cursor(): | def cursor(): | ||||
| def draw_settings(context, layout, tool): | def draw_settings(context, layout, tool): | ||||
| props = tool.operator_properties("view3d.cursor3d") | tool_settings = context.tool_settings | ||||
| layout.prop(props, "use_depth") | layout.prop(tool_settings, "v3d_cursor_project") | ||||
| layout.prop(props, "orientation") | layout.prop(tool_settings, "v3d_cursor_orientation") | ||||
| return dict( | return dict( | ||||
| idname="builtin.cursor", | idname="builtin.cursor", | ||||
| label="Cursor", | label="Cursor", | ||||
| Context not available. | |||||