Blender Git Loki

Git Commits -> Revision ae0aa4b

Revision ae0aa4b by Jacques Lucke (master)
December 2, 2020, 14:38 (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, the evaluated 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.

This should not change anything for objects that are not point clouds.

Commit Details:

Full Hash: ae0aa4b94c4a9b5b166fbc0b5394dcc47455091d
Parent Commit: 6be56c1
Lines Changed: +156, -79

2 Modified Paths:

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