Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Eisel <eiseljulian@gmail.com>2018-04-16 20:09:14 +0300
committerJulian Eisel <eiseljulian@gmail.com>2018-04-16 20:09:14 +0300
commite519bfea37212cbec3668978db73bb647754225a (patch)
treef384ad5eff92cb24817306cd27e9ec6f9414a554 /source/blender/editors/screen/workspace_edit.c
parentd03634b7d94c5d0aa4c8385a6f45cf3a7074dfbf (diff)
Initial working drag & drop for workspace tabs
Had to do quite some changes to get this to work, mainly because we'd want to have the customized order written to files. Also wanted to use existing wmDrag and wmDropBox code but modify it for our needs. And of course, this should not just work for a single case, code should be applicable to other areas as well. Note that file read/write is not working (yet), neither is versioning, region copying and deleting workspaces working. Code is also very WIP, much of it is placed in temporary places and such. Once the basics are done, we can add nicer feeback during drag & drop.
Diffstat (limited to 'source/blender/editors/screen/workspace_edit.c')
-rw-r--r--source/blender/editors/screen/workspace_edit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c
index 0c591b40b8d..5bfacf99dd5 100644
--- a/source/blender/editors/screen/workspace_edit.c
+++ b/source/blender/editors/screen/workspace_edit.c
@@ -369,6 +369,7 @@ static int workspace_append_activate_exec(bContext *C, wmOperator *op)
RNA_string_get(op->ptr, "directory", directory);
if (workspace_append(C, directory, idname) != OPERATOR_CANCELLED) {
+ /* XXX broken, name may have been changed */
WorkSpace *appended_workspace = BLI_findstring(&bmain->workspaces, idname, offsetof(ID, name) + 2);
BLI_assert(appended_workspace != NULL);