[Bf-blender-cvs] [7866870a9a5] blender2.8: Outliner: Fix unparenting poll (when drag'n'droping an object)

Dalai Felinto noreply at git.blender.org
Fri Jan 19 15:28:38 CET 2018


Commit: 7866870a9a58ce086f4af5dc7dc7bc8acf1e333c
Author: Dalai Felinto
Date:   Fri Jan 19 12:28:07 2018 -0200
Branches: blender2.8
https://developer.blender.org/rB7866870a9a58ce086f4af5dc7dc7bc8acf1e333c

Outliner: Fix unparenting poll (when drag'n'droping an object)

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

M	source/blender/editors/space_outliner/outliner_edit.c

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

diff --git a/source/blender/editors/space_outliner/outliner_edit.c b/source/blender/editors/space_outliner/outliner_edit.c
index 50e81cdde01..fc0e30c78ce 100644
--- a/source/blender/editors/space_outliner/outliner_edit.c
+++ b/source/blender/editors/space_outliner/outliner_edit.c
@@ -2085,7 +2085,7 @@ static int outliner_parenting_poll(bContext *C)
 	SpaceOops *soops = CTX_wm_space_outliner(C);
 
 	if (soops) {
-		return ELEM(soops->outlinevis, SO_SCENES, SO_GROUPS);
+		return ELEM(soops->outlinevis, SO_VIEW_LAYER, SO_COLLECTIONS, SO_GROUPS);
 	}
 
 	return false;



More information about the Bf-blender-cvs mailing list