Blender Git Commit Log
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: https://developer.blender.org/D11597 |
Commit Details:
Full Hash: b9febb54a492ac6c93802fb0aa189d4c3fd99b0b
Parent Commit: c946fdb
Lines Changed: +237, -592
25 Modified Paths:
/release/scripts/startup/bl_operators/geometry_nodes.py (+2, -2) (Diff)
/release/scripts/startup/bl_ui/properties_data_curve.py (+0, -1) (Diff)
/source/blender/blenkernel/BKE_displist.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/displist.cc (+125, -203) (Diff)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+2, -0) (Diff)
/source/blender/blenkernel/intern/geometry_set.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+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/object_dupli.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.cc (+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/draw_cache_impl_curve.cc (+30, -123) (Diff)
/source/blender/editors/curve/editcurve_add.c (+0, -1) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+1, -1) (Diff)
/source/blender/io/alembic/intern/abc_reader_curves.cc (+1, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_curve.cc (+1, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_nurbs.cc (+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/MOD_nodes.cc (+4, -3) (Diff)
/release/scripts/startup/bl_ui/properties_data_curve.py (+0, -1) (Diff)
/source/blender/blenkernel/BKE_displist.h (+1, -1) (Diff)
/source/blender/blenkernel/intern/displist.cc (+125, -203) (Diff)
/source/blender/blenkernel/intern/geometry_component_curve.cc (+2, -0) (Diff)
/source/blender/blenkernel/intern/geometry_set.cc (+1, -1) (Diff)
/source/blender/blenkernel/intern/geometry_set_instances.cc (+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/object_dupli.cc (+1, -1) (Diff)
/source/blender/depsgraph/intern/eval/deg_eval_runtime_backup_object.cc (+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/draw_cache_impl_curve.cc (+30, -123) (Diff)
/source/blender/editors/curve/editcurve_add.c (+0, -1) (Diff)
/source/blender/editors/space_spreadsheet/space_spreadsheet.cc (+1, -1) (Diff)
/source/blender/io/alembic/intern/abc_reader_curves.cc (+1, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_curve.cc (+1, -1) (Diff)
/source/blender/io/usd/intern/usd_reader_nurbs.cc (+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/MOD_nodes.cc (+4, -3) (Diff)