[Bf-blender-cvs] [8ee6fd8866e] soc-2019-outliner: Outliner: Add dirty flag

Nathan Craddock noreply at git.blender.org
Wed Jun 12 06:30:03 CEST 2019


Commit: 8ee6fd8866ea7caebd7dff0154a166e5d8a1d5c7
Author: Nathan Craddock
Date:   Tue Jun 11 22:13:05 2019 -0600
Branches: soc-2019-outliner
https://developer.blender.org/rB8ee6fd8866ea7caebd7dff0154a166e5d8a1d5c7

Outliner: Add dirty flag

This dirty flag is to indicate whether an outliner needs to sync
its selection state with the active view layer before redrawing

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

M	source/blender/editors/space_outliner/space_outliner.c
M	source/blender/makesdna/DNA_space_types.h

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

diff --git a/source/blender/editors/space_outliner/space_outliner.c b/source/blender/editors/space_outliner/space_outliner.c
index d103322d912..908b033d688 100644
--- a/source/blender/editors/space_outliner/space_outliner.c
+++ b/source/blender/editors/space_outliner/space_outliner.c
@@ -299,6 +299,7 @@ static SpaceLink *outliner_new(const ScrArea *UNUSED(area), const Scene *UNUSED(
   soutliner->filter_id_type = ID_GR;
   soutliner->show_restrict_flags = SO_RESTRICT_ENABLE | SO_RESTRICT_HIDE;
   soutliner->outlinevis = SO_VIEW_LAYER;
+  soutliner->flag |= SO_IS_DIRTY;
 
   /* header */
   ar = MEM_callocN(sizeof(ARegion), "header for outliner");
diff --git a/source/blender/makesdna/DNA_space_types.h b/source/blender/makesdna/DNA_space_types.h
index c26f96fcc95..69c8d6b9cda 100644
--- a/source/blender/makesdna/DNA_space_types.h
+++ b/source/blender/makesdna/DNA_space_types.h
@@ -264,6 +264,7 @@ typedef enum eSpaceOutliner_Flag {
   SO_HIDE_KEYINGSETINFO = (1 << 3),
   SO_SKIP_SORT_ALPHA = (1 << 4),
   SO_SYNC_SELECTION = (1 << 5),
+  SO_IS_DIRTY = (1 << 6),
 } eSpaceOutliner_Flag;
 
 /* SpaceOutliner.filter */



More information about the Bf-blender-cvs mailing list