Blender Git Loki

Git Commits -> Revision 4e2b05f

Revision 4e2b05f by Hans Goudey (lineart-shadow)
December 8, 2021, 06:53 (GMT)
Cleanup: Add macro and functions for node storage

The `node_storage` functions to retrieve const and mutable structs
from a node are generated by a short macro that can be placed at the
top of each relevant file. I use this in D8286 to make code snippets
in the socket declarations much shorter, but I thought it would be
good to use it consistently everywhere else too.

The functions are also useful to avoid copy and paste errors,
like the one corrected in the cylinder node in this commit.

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

Commit Details:

Full Hash: 4e2b05f23ec0d2454063bf1a218e79d27f54f434
Parent Commit: 10e1049
Committed By: YimingWu
Lines Changed: +250, -206

39 Modified Paths:

/source/blender/blenkernel/BKE_node.h (+10, -0) (Diff)
/source/blender/nodes/function/nodes/node_fn_random_value.cc (+4, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc (+4, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_collection_info.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_fill.cc (+3, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc (+6, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_handle_type_selection.cc (+5, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_bezier_segment.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc (+7, -8) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_line.cc (+6, -9) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_quadrilateral.cc (+6, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc (+6, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_sample.cc (+6, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_set_handles.cc (+5, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_spline_type.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_points.cc (+6, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc (+6, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_delete_geometry.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_image_texture.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_circle.cc (+5, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+9, -10) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+9, -11) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+8, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_to_points.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_object_info.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc (+6, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_proximity.cc (+3, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_raycast.cc (+7, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_separate_geometry.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_set_curve_handles.cc (+4, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc (+5, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_subdivision_surface.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_switch.cc (+8, -13) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_transfer_attribute.cc (+14, -12) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_viewer.cc (+3, -1) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc (+7, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+9, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+9, -8) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+30, -24) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021