[Bf-blender-cvs] [e38cafb] pie-menus: Fix issue with navigation pie/search menu

Antony Riakiotakis noreply at git.blender.org
Wed Jul 30 19:02:02 CEST 2014


Commit: e38cafbe51a00dc166869c40803e6b9acb79bd65
Author: Antony Riakiotakis
Date:   Wed Jul 30 18:20:02 2014 +0200
Branches: pie-menus
https://developer.blender.org/rBe38cafbe51a00dc166869c40803e6b9acb79bd65

Fix issue with navigation pie/search menu

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

M	source/blender/editors/space_view3d/view3d_ops.c

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

diff --git a/source/blender/editors/space_view3d/view3d_ops.c b/source/blender/editors/space_view3d/view3d_ops.c
index 233d120..9ae6408 100644
--- a/source/blender/editors/space_view3d/view3d_ops.c
+++ b/source/blender/editors/space_view3d/view3d_ops.c
@@ -146,15 +146,9 @@ void ED_operatormacros_view3d(void)
 		RNA_string_set(ptr, "value_2", "WIREFRAME");
 	}
 
-	ptr = WM_operator_pie_macro("VIEW3D_PIE_view_macro", "View",
-	                            "Set the shading mode for the 3D viewport",
-	                            OPTYPE_UNDO | OPTYPE_REGISTER, "WM_OT_context_toggle_enum", "VIEW3D_PIE_view");
-
-	if (ptr) {
-		RNA_string_set(ptr, "data_path", "space_data.viewport_shade");
-		RNA_string_set(ptr, "value_1", "SOLID");
-		RNA_string_set(ptr, "value_2", "RENDERED");
-	}
+	WM_operator_pie_macro("VIEW3D_PIE_view_macro", "View",
+	                      "Set the shading mode for the 3D viewport",
+	                      OPTYPE_UNDO | OPTYPE_REGISTER, "WM_OT_search_menu", "VIEW3D_PIE_view");
 
 
 	ptr = WM_operator_pie_macro("VIEW3D_PIE_manipulator_macro", "Manipulator",




More information about the Bf-blender-cvs mailing list