Blender Git Loki

Git Commits -> Revision 8b777ee

Revision 8b777ee by Dalai Felinto (master)
January 19, 2021, 16:30 (GMT)
Geometry Nodes - Object Info: option to apply obj transform to the geometry

By design the modified object transformations should still work and
affect the geometry nodes results. The current behaviour, however, would
make the geometry from the object info to not be affected by the
modified object transformations. This patch changes that by default.

In a similar fashion the Location, Rotation and Scale sockets outputs
should be aware of whether the output should be in the global space or in the
space of the nodetree.

To solve this, the patch introduces a new transformation space "enum"
where users can pick "Original" or "Relative" space.

Original
--------
Output the geometry relative to the input object transform, and the
location, rotation and scale relative to the world origin.

Relative
--------
Bring the input object geometry, location, rotation and scale into the
modified object maintaining the relative position between the two objects in
the scene.

Relative space violates a bit the design of the nodetree. The geometry in this
case is transformed so that moving the modified object doesn't interfere with
the geometry. This is particularly useful for the boolean node for instance.

"Original" is the default space, but old files are set to "Relative" for
backwards compatibility.

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

Commit Details:

Full Hash: 8b777ee6d69d4805c64756cf6a33db894160ce29
Parent Commit: a9203e2
Lines Changed: +96, -5

7 Modified Paths:

/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenloader/intern/versioning_290.c (+17, -0) (Diff)
/source/blender/editors/space_node/drawnode.c (+8, -0) (Diff)
/source/blender/makesdna/DNA_node_types.h (+12, -0) (Diff)
/source/blender/makesrna/intern/rna_nodetree.c (+30, -0) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_object_info.cc (+27, -3) (Diff)
/source/blender/nodes/NOD_static_types.h (+1, -1) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021