Blender Git Commit Log
Git Commits -> Revision 2309fa2
Revision 2309fa2 by Hans Goudey (master) December 7, 2021, 14:09 (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: 2309fa20af416d479fc220d0841483eb3bcf55b0
Parent Commit: 6a9775e
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)
/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)