[Bf-blender-cvs] [dc296542d45] blender2.8: Outliner: Fix parenting clear poll

Dalai Felinto noreply at git.blender.org
Thu Jan 18 21:05:01 CET 2018


Commit: dc296542d450a7bf7030f8ef60dbe93eb832a5ef
Author: Dalai Felinto
Date:   Thu Jan 18 18:02:32 2018 -0200
Branches: blender2.8
https://developer.blender.org/rBdc296542d450a7bf7030f8ef60dbe93eb832a5ef

Outliner: Fix parenting clear poll

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

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

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

diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index 5d7494aee09..b8857757aed 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -163,7 +163,7 @@ static int outliner_parent_clear_poll(bContext *C, wmDrag *drag, const wmEvent *
 
 	UI_view2d_region_to_view(&ar->v2d, event->mval[0], event->mval[1], &fmval[0], &fmval[1]);
 
-	if (!ELEM(soops->outlinevis, SO_ALL_SCENES, SO_CUR_SCENE, SO_VISIBLE, SO_GROUPS)) {
+	if (!ELEM(soops->outlinevis, SO_ALL_SCENES, SO_CUR_SCENE, SO_VISIBLE, SO_GROUPS, SO_VIEW_LAYER, SO_COLLECTIONS)) {
 		return false;
 	}



More information about the Bf-blender-cvs mailing list