[Bf-blender-cvs] [5896e8ea4ec] workspaces: Fix incorrect operator name

Julian Eisel noreply at git.blender.org
Thu Mar 30 00:49:28 CEST 2017


Commit: 5896e8ea4ec19c8b4eaa6e993e258ae69be67c7c
Author: Julian Eisel
Date:   Thu Mar 30 00:48:56 2017 +0200
Branches: workspaces
https://developer.blender.org/rB5896e8ea4ec19c8b4eaa6e993e258ae69be67c7c

Fix incorrect operator name

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

M	release/scripts/startup/bl_ui/space_info.py
M	source/blender/editors/workspace/workspace_edit.c

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

diff --git a/release/scripts/startup/bl_ui/space_info.py b/release/scripts/startup/bl_ui/space_info.py
index 81be503baaa..91813e0e8ff 100644
--- a/release/scripts/startup/bl_ui/space_info.py
+++ b/release/scripts/startup/bl_ui/space_info.py
@@ -44,7 +44,7 @@ class INFO_HT_header(Header):
             layout.operator("screen.back_to_previous", icon='SCREEN_BACK', text="Back to Previous")
             layout.separator()
         else:
-            layout.template_ID(window, "workspace", new="workspace.workspace_add", unlink="workspace.workspace_delete")
+            layout.template_ID(window, "workspace", new="workspace.workspace_add_menu", unlink="workspace.workspace_delete")
             layout.template_ID_preview(window, "screen", workspace, "screens", new="screen.new", unlink="screen.delete", rows=2, cols=6)
 
         if hasattr(workspace, 'object_mode'):
diff --git a/source/blender/editors/workspace/workspace_edit.c b/source/blender/editors/workspace/workspace_edit.c
index 0ed04435ae6..9afcfb8e30b 100644
--- a/source/blender/editors/workspace/workspace_edit.c
+++ b/source/blender/editors/workspace/workspace_edit.c
@@ -385,7 +385,7 @@ static void WORKSPACE_OT_workspace_add_menu(wmOperatorType *ot)
 	ot->name = "Add Workspace";
 	ot->description = "Add a new workspace by duplicating the current one or appending one "
 	                  "from the workflow configuration";
-	ot->idname = "WORKSPACE_OT_workspace_add";
+	ot->idname = "WORKSPACE_OT_workspace_add_menu";
 
 	/* api callbacks */
 	ot->invoke = workspace_add_invoke;




More information about the Bf-blender-cvs mailing list