Split off 3D Cursor settings from "View" panel in 3D View
authorJoshua Leung <aligorith@gmail.com>
Sun, 6 Nov 2011 06:19:00 +0000 (06:19 +0000)
committerJoshua Leung <aligorith@gmail.com>
Sun, 6 Nov 2011 06:19:00 +0000 (06:19 +0000)
This means that you don't need to have the view panel open all the
time, reducing the amount of scrolling required just to be able to
precisely position the 3D cursor at specific coordinates while
changing some other settings. While most of the settings in the View
panel are less likely to be frequently changed, the 3D cursor can in
some workflows end up needing to be accessed quite frequently.

release/scripts/startup/bl_ui/space_view3d.py

index 3f5b7b86e89ef753f77f40290070830be5ef108c..7041e3f8c3db55bffe59183b8835b17dc4cd6718 100644 (file)
@@ -2063,7 +2063,22 @@ class VIEW3D_PT_view3d_properties(Panel):
         subcol.label(text="Local Camera:")
         subcol.prop(view, "camera", text="")
 
-        layout.column().prop(view, "cursor_location")
+
+class VIEW3D_PT_view3d_cursor(Panel):
+    bl_space_type = 'VIEW_3D'
+    bl_region_type = 'UI'
+    bl_label = "3D Cursor"
+
+    @classmethod
+    def poll(cls, context):
+        view = context.space_data
+        return (view)
+
+    def draw(self, context):
+        layout = self.layout
+
+        view = context.space_data
+        layout.column().prop(view, "cursor_location", text="Location")
 
 
 class VIEW3D_PT_view3d_name(Panel):