[Bf-blender-cvs] [795592d] pie-menus: Pies:

Antony Riakiotakis noreply at git.blender.org
Fri Jun 27 03:26:43 CEST 2014


Commit: 795592dc90fc029892fd7888cfb7d1eee175a1d6
Author: Antony Riakiotakis
Date:   Fri Jun 27 03:52:49 2014 +0300
https://developer.blender.org/rB795592dc90fc029892fd7888cfb7d1eee175a1d6

Pies:

* Add pretty icons to Q menu

* Add an operator to sculpt Q pie for testing.

===================================================================

M	release/scripts/startup/bl_ui/space_view3d_toolbar.py
M	source/blender/editors/space_view3d/view3d_edit.c

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 215b517..af04227 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1717,6 +1717,11 @@ class VIEW3D_PIE_tests(Menu):
         col.prop(sculpt, "detail_refine_method", text="")
         col.prop(sculpt, "detail_type_method", text="")
 
+        if context.sculpt_object.use_dynamic_topology_sculpting:
+            pie.operator("sculpt.dynamic_topology_toggle", icon='X', text="Disable Dyntopo")
+        else:
+            pie.operator("sculpt.dynamic_topology_toggle", icon='SCULPT_DYNTOPO', text="Enable Dyntopo")
+
 
         
     @classmethod
diff --git a/source/blender/editors/space_view3d/view3d_edit.c b/source/blender/editors/space_view3d/view3d_edit.c
index eba50f8..d424be2 100644
--- a/source/blender/editors/space_view3d/view3d_edit.c
+++ b/source/blender/editors/space_view3d/view3d_edit.c
@@ -3474,10 +3474,10 @@ void VIEW3D_OT_zoom_camera_1_to_1(wmOperatorType *ot)
 /* ********************* Changing view operator ****************** */
 
 static EnumPropertyItem prop_view_items[] = {
-    {RV3D_VIEW_LEFT, "LEFT", 0, "Left", "View From the Left"},
-	{RV3D_VIEW_RIGHT, "RIGHT", 0, "Right", "View From the Right"},
-    {RV3D_VIEW_BOTTOM, "BOTTOM", 0, "Bottom", "View From the Bottom"},
-    {RV3D_VIEW_TOP, "TOP", 0, "Top", "View From the Top"},
+    {RV3D_VIEW_LEFT, "LEFT", ICON_TRIA_LEFT, "Left", "View From the Left"},
+	{RV3D_VIEW_RIGHT, "RIGHT", ICON_TRIA_RIGHT, "Right", "View From the Right"},
+    {RV3D_VIEW_BOTTOM, "BOTTOM", ICON_TRIA_DOWN, "Bottom", "View From the Bottom"},
+    {RV3D_VIEW_TOP, "TOP", ICON_TRIA_UP, "Top", "View From the Top"},
     {RV3D_VIEW_FRONT, "FRONT", 0, "Front", "View From the Front"},
 	{RV3D_VIEW_BACK, "BACK", 0, "Back", "View From the Back"},
 	{RV3D_VIEW_CAMERA, "CAMERA", ICON_CAMERA_DATA, "Camera", "View From the Active Camera"},




More information about the Bf-blender-cvs mailing list