[Bf-blender-cvs] [3bd6c8bfa25] blender2.8: WM: don't change selection on workspace append

Campbell Barton noreply at git.blender.org
Mon Nov 27 08:28:13 CET 2017


Commit: 3bd6c8bfa256793170a21130d398c16da1192473
Author: Campbell Barton
Date:   Mon Nov 27 18:38:59 2017 +1100
Branches: blender2.8
https://developer.blender.org/rB3bd6c8bfa256793170a21130d398c16da1192473

WM: don't change selection on workspace append

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

M	source/blender/editors/screen/workspace_edit.c

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

diff --git a/source/blender/editors/screen/workspace_edit.c b/source/blender/editors/screen/workspace_edit.c
index 534e6c1bff4..84288740df8 100644
--- a/source/blender/editors/screen/workspace_edit.c
+++ b/source/blender/editors/screen/workspace_edit.c
@@ -391,6 +391,7 @@ static void workspace_append_button(
 	        WM_OP_EXEC_DEFAULT, 0, &opptr);
 	RNA_string_set(&opptr, "directory", lib_path);
 	RNA_string_set(&opptr, "filename", id->name + 2);
+	RNA_boolean_set(&opptr, "autoselect", false);
 }
 
 ATTR_NONNULL(1, 2)



More information about the Bf-blender-cvs mailing list