[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [41575] trunk/blender/release/scripts/ startup/bl_ui/space_view3d.py: Split off 3D Cursor settings from "View" panel in 3D View

Joshua Leung aligorith at gmail.com
Sun Nov 6 07:19:00 CET 2011


Revision: 41575
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=41575
Author:   aligorith
Date:     2011-11-06 06:19:00 +0000 (Sun, 06 Nov 2011)
Log Message:
-----------
Split off 3D Cursor settings from "View" panel in 3D View

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.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/space_view3d.py

Modified: trunk/blender/release/scripts/startup/bl_ui/space_view3d.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-11-06 06:08:18 UTC (rev 41574)
+++ trunk/blender/release/scripts/startup/bl_ui/space_view3d.py	2011-11-06 06:19:00 UTC (rev 41575)
@@ -2063,9 +2063,24 @@
         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):
     bl_space_type = 'VIEW_3D'
     bl_region_type = 'UI'




More information about the Bf-blender-cvs mailing list