diff options
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r-- | source/blender/editors/screen/workspace_edit.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c index 4b81e713080..125b345a1ed 100644 --- a/source/blender/editors/screen/workspace_edit.c +++ b/source/blender/editors/screen/workspace_edit.c @@ -112,15 +112,6 @@ static WorkSpaceLayout *workspace_change_get_new_layout(Main *bmain, bmain, workspace_new, layout_new, layout_old, win); } -/** - * \brief Change the active workspace. - * - * Operator call, WM + Window + screen already existed before - * Pretty similar to #ED_screen_change since changing workspace also changes screen. - * - * \warning Do NOT call in area/region queues! - * \returns if workspace changing was successful. - */ bool ED_workspace_change(WorkSpace *workspace_new, bContext *C, wmWindowManager *wm, wmWindow *win) { Main *bmain = CTX_data_main(C); @@ -160,10 +151,6 @@ bool ED_workspace_change(WorkSpace *workspace_new, bContext *C, wmWindowManager return true; } -/** - * Duplicate a workspace including its layouts. Does not activate the workspace, but - * it stores the screen-layout to be activated (BKE_workspace_temp_layout_store) - */ WorkSpace *ED_workspace_duplicate(WorkSpace *workspace_old, Main *bmain, wmWindow *win) { WorkSpaceLayout *layout_active_old = BKE_workspace_active_layout_get(win->workspace_hook); @@ -187,9 +174,6 @@ WorkSpace *ED_workspace_duplicate(WorkSpace *workspace_old, Main *bmain, wmWindo return workspace_new; } -/** - * \return if succeeded. - */ bool ED_workspace_delete(WorkSpace *workspace, Main *bmain, bContext *C, wmWindowManager *wm) { if (BLI_listbase_is_single(&bmain->workspaces)) { @@ -220,10 +204,6 @@ bool ED_workspace_delete(WorkSpace *workspace, Main *bmain, bContext *C, wmWindo return true; } -/** - * Some editor data may need to be synced with scene data (3D View camera and layers). - * This function ensures data is synced for editors in active layout of \a workspace. - */ void ED_workspace_scene_data_sync(WorkSpaceInstanceHook *hook, Scene *scene) { bScreen *screen = BKE_workspace_active_screen_get(hook); @@ -393,7 +373,7 @@ static void workspace_append_button(uiLayout *layout, const Main *from_main) { const ID *id = (ID *)workspace; - const char *filepath = from_main->name; + const char *filepath = from_main->filepath; if (strlen(filepath) == 0) { filepath = BLO_EMBEDDED_STARTUP_BLEND; |