diff options
author | Joshua Leung <aligorith@gmail.com> | 2015-12-13 17:06:06 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2015-12-13 17:06:51 +0300 |
commit | a791153ca5e6f87d50396e188a3664b579884161 (patch) | |
tree | 345a5aa3d51eca6a28567fdc4515d44f34b9810e /release | |
parent | 003523e700252950705944fd707a617139e5faac (diff) |
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 :)
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d.py | 7 |
1 files changed, 6 insertions, 1 deletions
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): |