Blender Git Loki
Git Commits -> Revision 1ec9ac2
Revision 1ec9ac2 by Hans Goudey (master) April 8, 2021, 17:19 (GMT) |
Geometry Nodes: Support instances in attribute search Previously only attributes of "real" geometry were displayed in attribute search. This commit adds code to look through attributes on instances and add those to the search drop-down too. This required implementing the same sort of recursive traversal as the realize instances code. The situation is a bit different though, this can return early and doesn't need to keep track of transforms. I added a limit so that it doesn't look through the attributes of too many instanced geometry sets. I think this is important, since this isn't a trivial operation and it could potentially happen for every node in a large node tree. Currently the limit is set at 8 geometry sets, which I expect will be enough, since the set of attributes is mostly not very unique anyway. Fixes T86282 Diffrential Revision: https://developer.blender.org/D10919 |
Commit Details:
Full Hash: 1ec9ac201652be6031379e39e98e7dd9dc4a2375
Parent Commit: fd414b4
Lines Changed: +145, -19
5 Modified Paths:
/source/blender/blenkernel/BKE_geometry_set.hh (+1, -1) (Diff)
/source/blender/blenkernel/BKE_geometry_set_instances.hh (+4, -0) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+10, -4) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+116, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+14, -14) (Diff)
/source/blender/blenkernel/BKE_geometry_set_instances.hh (+4, -0) (Diff)
/source/blender/blenkernel/intern/attribute_access.cc (+10, -4) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+116, -0) (Diff)
/source/blender/modifiers/intern/MOD_nodes.cc (+14, -14) (Diff)