Fixup for 824bf261f7 so Cycles does not show dupli

Cycles is using rna_depsgraph, not rna_scene. Duplis are still not working there
but now at least it shows it was showing before the commit.

To show duplis in Cycles do:

-       data->flag = DEG_OBJECT_ITER_FLAG_SET;
+       data->flag = DEG_OBJECT_ITER_FLAG_ALL;
This commit is contained in:
Dalai Felinto 2017-06-02 13:05:14 +02:00
parent 9dddd73ee3
commit c5dccc9734
2 changed files with 2 additions and 2 deletions

View File

@ -90,7 +90,7 @@ static void rna_Depsgraph_objects_begin(CollectionPropertyIterator *iter, Pointe
DEGObjectsIteratorData *data = MEM_callocN(sizeof(DEGObjectsIteratorData), __func__);
data->graph = (Depsgraph *)ptr->data;
data->flag = DEG_OBJECT_ITER_FLAG_ALL;
data->flag = DEG_OBJECT_ITER_FLAG_SET;
DEG_objects_iterator_begin(iter->internal.custom, data);
iter->valid = ((BLI_Iterator *)iter->internal.custom)->valid;

View File

@ -3024,7 +3024,7 @@ static int rna_SceneLayer_multiple_engines_get(PointerRNA *UNUSED(ptr))
static void rna_SceneLayer_update_tagged(SceneLayer *UNUSED(sl), bContext *C)
{
Depsgraph *graph = CTX_data_depsgraph(C);
DEG_OBJECT_ITER(graph, ob, DEG_OBJECT_ITER_FLAG_SET)
DEG_OBJECT_ITER(graph, ob, DEG_OBJECT_ITER_FLAG_ALL)
{
/* Don't do anything, we just need to run the iterator to flush
* the base info to the objects. */