From a791153ca5e6f87d50396e188a3664b579884161 Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Mon, 14 Dec 2015 03:06:06 +1300 Subject: 3D Cursor: Add option to lock it in place to prevent accidental modification This option helps users protect themselves from accidentally changing the cursor location (and not being aware of this until it has already caused problems) when drawing using Grease Pencil (or with other tools where this is equally likely). It seems to occur most frequently when using a tablet. Currently, this only affects the use of the mouse to set the cursor, as this is where most accidental invocations occur. (I'm aware that this change may turn out to be quite contentious. Fortunately, it should be simple to just revert this commit in that case :) --- release/scripts/startup/bl_ui/space_view3d.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'release') diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py index 4dc4b667a63..da4fb04cb5d 100644 --- a/release/scripts/startup/bl_ui/space_view3d.py +++ b/release/scripts/startup/bl_ui/space_view3d.py @@ -3005,7 +3005,12 @@ class VIEW3D_PT_view3d_cursor(Panel): layout = self.layout view = context.space_data - layout.column().prop(view, "cursor_location", text="Location") + + layout.prop(view, "lock_cursor_location") + + col = layout.column() + col.active = not view.lock_cursor_location + col.prop(view, "cursor_location", text="Location") class VIEW3D_PT_view3d_name(Panel): -- cgit v1.2.3