Blender Git Loki

Git Commits -> Revision b9febb5

Revision b9febb5 by Hans Goudey (master)
September 11, 2021, 18:54 (GMT)
Geometry Nodes: Support modifier on curve objects

With this commit, curve objects support the geometry nodes modifier.

Curves objects now evaluate to `CurveEval` unless there was a previous
implicit conversion (tessellating modifiers, mesh modifiers, or the
settings in the curve "Geometry" panel). In the new code, curves are
only considered to be the wire edges-- any generated surface is a mesh
instead, stored in the evaluated geometry set.

The consolidation of concepts mentioned above allows remove a lot of
code that had to do with maintaining the `DispList` type temporarily
for modifiers and rendering. Instead, render engines see a separate
object for the mesh from the mesh geometry component, and when the
curve object evaluates to a curve, the `CurveEval` is always used for
drawing wire edges.

However, currently the `DispList` type is still maintained and used as
an intermediate step in implicit mesh conversion. In the future, more
uses of it could be changed to use `CurveEval` and `Mesh` instead.

This is mostly not changed behavior, it is just a formalization of
existing logic after recent fixes for 2.8 versions last year and two
years ago. Also, in the future more functionality can be converted
to nodes, removing cases of implicit conversions. For more discussion
on that topic, see T89676.

The `use_fill_deform` option is removed. It has not worked properly
since 2.62, and the choice for filling a curve before or after
deformation will work much better and be clearer with a node system.

Applying the geometry nodes modifier to generate a curve is not
implemented with this commit, so applying the modifier won't work
at all. This is a separate technical challenge, and should be solved
in a separate step.

Differential Revision:

Commit Details:

Full Hash: b9febb54a492ac6c93802fb0aa189d4c3fd99b0b
Parent Commit: c946fdb
Lines Changed: +237, -592

25 Modified Paths:

/release/scripts/startup/bl_operators/ (+2, -2) (Diff)
/release/scripts/startup/bl_ui/ (+0, -1) (Diff)
/source/blender/blenkernel/BKE_displist.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/ (+125, -203) (Diff)
/source/blender/blenkernel/intern/ (+2, -0) (Diff)
/source/blender/blenkernel/intern/ (+1, -1) (Diff)
/source/blender/blenkernel/intern/ (+0, -13) (Diff)
/source/blender/blenkernel/intern/mesh_convert.c (+24, -12) (Diff)
/source/blender/blenkernel/intern/object.c (+5, -0) (Diff)
/source/blender/blenkernel/intern/ (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/ (+6, -4) (Diff)
/source/blender/draw/engines/overlay/overlay_edit_text.c (+3, -10) (Diff)
/source/blender/draw/engines/overlay/overlay_wireframe.c (+1, -9) (Diff)
/source/blender/draw/intern/draw_cache.c (+21, -178) (Diff)
/source/blender/draw/intern/draw_cache.h (+0, -14) (Diff)
/source/blender/draw/intern/ (+30, -123) (Diff)
/source/blender/editors/curve/editcurve_add.c (+0, -1) (Diff)
/source/blender/editors/space_spreadsheet/ (+1, -1) (Diff)
/source/blender/io/alembic/intern/ (+1, -1) (Diff)
/source/blender/io/usd/intern/ (+1, -1) (Diff)
/source/blender/io/usd/intern/ (+1, -1) (Diff)
/source/blender/makesdna/DNA_curve_types.h (+6, -4) (Diff)
/source/blender/makesdna/DNA_object_types.h (+1, -2) (Diff)
/source/blender/makesrna/intern/rna_curve.c (+0, -6) (Diff)
/source/blender/modifiers/intern/ (+4, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021