Blender Git Loki

Git Commits -> Revision b081108

November 12, 2020, 12:20 (GMT)
Geometry Nodes: support geometry components in depsgraph object iterator

Objects can evaluate to a geometry set instead of a single ID (only point cloud
objects for now). In the depsgraph object iterator, those geometry components
are expanded into temporary objects.

It's important to note that instanced objects can also contain geometry
components. Therefore, they have to be split up into multiple objects
as well in some cases.

At a high level the iterator works like so:
```
for object in depsgraph:
for component in object:
yield object_from_component(component)
for dupli in make_duplis_list(object):
for component in dupli:
yield object_from_component(component)
```

DEG_iterator_objects_next has been cleaned up, to make this structure
a bit more apparent.

Commit Details:

Full Hash: b081108819c02f117f6797b1fbaf296bc3aae769
Parent Commit: 2be7b2a
Lines Changed: +155, -78

2 Modified Paths:

/source/blender/depsgraph/DEG_depsgraph_query.h (+10, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_query_iter.cc (+145, -78) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021