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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-23 16:43:21 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2018-05-23 19:32:04 +0300
commit3fb38d664bcd88258706cb21af0d73b72869bfef (patch)
tree4897bda8135e138b01f9ebeb3f50cb21da583bb9 /source/blender/makesrna/intern/rna_group.c
parent342d94c3753ca939ac5fbe670b95e77b5bf4c9a9 (diff)
Fix T55163: visibility not updated for instanced collections.
Diffstat (limited to 'source/blender/makesrna/intern/rna_group.c')
-rw-r--r--source/blender/makesrna/intern/rna_group.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_group.c b/source/blender/makesrna/intern/rna_group.c
index 0f62d8d20d8..116c0bc4a26 100644
--- a/source/blender/makesrna/intern/rna_group.c
+++ b/source/blender/makesrna/intern/rna_group.c
@@ -42,6 +42,7 @@
#include "DNA_object_types.h"
#include "DEG_depsgraph.h"
+#include "DEG_depsgraph_build.h"
#include "BKE_collection.h"
#include "BKE_layer.h"
@@ -86,6 +87,7 @@ static void rna_Collection_objects_link(Collection *collection, Main *bmain, Rep
return;
}
+ DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, &object->id);
}
@@ -96,6 +98,7 @@ static void rna_Collection_objects_unlink(Collection *collection, Main *bmain, R
return;
}
+ DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, &object->id);
}
@@ -121,6 +124,7 @@ static void rna_Collection_children_link(Collection *collection, Main *bmain, Re
return;
}
+ DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, &child->id);
}
@@ -131,6 +135,7 @@ static void rna_Collection_children_unlink(Collection *collection, Main *bmain,
return;
}
+ DEG_relations_tag_update(bmain);
WM_main_add_notifier(NC_OBJECT | ND_DRAW, &child->id);
}
@@ -139,6 +144,9 @@ static void rna_Collection_flag_update(Main *bmain, Scene *scene, PointerRNA *pt
Collection *collection = (Collection *)ptr->data;
BKE_collection_object_cache_free(collection);
BKE_main_collection_sync(bmain);
+
+ DEG_relations_tag_update(bmain);
+ DEG_id_tag_update(&collection->id, 0);
WM_main_add_notifier(NC_SCENE | ND_OB_SELECT, scene);
}