Blender Git Loki

Git Commits -> Revision b67fe05

Revision b67fe05 by Jacques Lucke (master)
April 26, 2021, 14:35 (GMT)
Depsgraph: support depending on collection geometry

This fixes T87666 and T83252.

The boolean modifier and geometry nodes can depend on the geometry
of an entire collection. Before, the modifiers had to manually create relations
to all the objects in the collection. This worked for the most part, but was
cumbersome and did not solve all issues. For example, the modifiers were not
properly updated when objects were added/removed from the referenced collection.

This commit introduces the concept of "collection geometry" in the depsgraph.
The geometry of a collection depends on the transforms and geometry of all
the objects in it. The boolean modifier and geometry nodes can now just depend
on the collection geometry instead of creating all the dependencies themselves.

Differential Revision: https://developer.blender.org/D11053

Commit Details:

Full Hash: b67fe05d4bea2d3c9efbd127e9d9dc3a897e89e6
Parent Commit: a65d5da
Lines Changed: +87, -40

9 Modified Paths:

/source/blender/blenkernel/intern/collection.c (+4, -0) (Diff)
/source/blender/depsgraph/DEG_depsgraph_build.h (+7, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+1, -0) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+27, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_build.cc (+25, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph_tag.cc (+1, -0) (Diff)
/source/blender/makesdna/DNA_ID.h (+4, -2) (Diff)
/source/blender/modifiers/intern/MOD_boolean.cc (+1, -7) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+17, -31) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021