Blender Git Loki
Git Commits -> Revision c2ab47e
Revision c2ab47e by Jacques Lucke (master) November 17, 2021, 10:11 (GMT) |
Cleanup: change node socket availability in a single place This cleans up part of the code that still set the flag manually. Also, this change helps with D13246 because it makes it easier to tag the node tree as changed when the availability of a socket changed. |
Commit Details:
Full Hash: c2ab47e7296a5fc7f9814153354567f608d41f00
Parent Commit: 473be23
Lines Changed: +379, -353
66 Modified Paths:
/source/blender/blenkernel/BKE_node.h (+3, -1) (Diff)
/source/blender/blenkernel/intern/node.cc (+3, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_image.cc (+3, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_scale.cc (+2, -7) (Diff)
/source/blender/nodes/function/nodes/node_fn_boolean_math.cc (+3, -3) (Diff)
/source/blender/nodes/function/nodes/node_fn_float_compare.cc (+4, -2) (Diff)
/source/blender/nodes/function/nodes/node_fn_random_value.cc (+13, -13) (Diff)
/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_clamp.cc (+9, -9) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_combine_xyz.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_compare.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_fill.cc (+6, -6) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_map_range.cc (+15, -12) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_math.cc (+4, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_mix.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_randomize.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_separate_xyz.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_vector_math.cc (+4, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_vector_rotate.cc (+6, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_curve_subdivide.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_curve_to_points.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_points_to_volume.cc (+8, -5) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_distribute.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_instance.cc (+9, -6) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_rotate.cc (+4, -1) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_scale.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_translate.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_raycast.cc (+6, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_volume_to_mesh.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc (+11, -11) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_statistic.cc (+20, -20) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_boolean.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc (+11, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_line.cc (+6, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_quadrilateral.cc (+18, -18) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_sample.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_points.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc (+9, -7) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc (+7, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_raycast.cc (+11, -11) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_switch.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_transfer_attribute.cc (+13, -13) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_viewer.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/node_geometry_util.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+2, -1) (Diff)
/source/blender/nodes/intern/node_util.c (+5, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.c (+12, -37) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.c (+3, -13) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mapping.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+7, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+3, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+13, -9) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc (+3, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+11, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_rotate.cc (+6, -4) (Diff)
/source/blender/blenkernel/intern/node.cc (+3, -1) (Diff)
/source/blender/nodes/composite/nodes/node_composite_image.cc (+3, -2) (Diff)
/source/blender/nodes/composite/nodes/node_composite_scale.cc (+2, -7) (Diff)
/source/blender/nodes/function/nodes/node_fn_boolean_math.cc (+3, -3) (Diff)
/source/blender/nodes/function/nodes/node_fn_float_compare.cc (+4, -2) (Diff)
/source/blender/nodes/function/nodes/node_fn_random_value.cc (+13, -13) (Diff)
/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_align_rotation_to_vector.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_clamp.cc (+9, -9) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_combine_xyz.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_compare.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_fill.cc (+6, -6) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_map_range.cc (+15, -12) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_math.cc (+4, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_mix.cc (+4, -4) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_randomize.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_separate_xyz.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_vector_math.cc (+4, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_attribute_vector_rotate.cc (+6, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_curve_subdivide.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_curve_to_points.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_points_to_volume.cc (+8, -5) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_distribute.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_instance.cc (+9, -6) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_rotate.cc (+4, -1) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_scale.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_point_translate.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_raycast.cc (+6, -2) (Diff)
/source/blender/nodes/geometry/nodes/legacy/node_geo_volume_to_mesh.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_capture.cc (+11, -11) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_attribute_statistic.cc (+20, -20) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_boolean.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_fillet.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_circle.cc (+11, -6) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_line.cc (+6, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_primitive_quadrilateral.cc (+18, -18) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_resample.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_sample.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_to_points.cc (+3, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_curve_trim.cc (+5, -5) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_distribute_points_on_faces.cc (+9, -7) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cone.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_cylinder.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_mesh_primitive_line.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_points_to_volume.cc (+7, -4) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_raycast.cc (+11, -11) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_string_to_curves.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_switch.cc (+7, -7) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_transfer_attribute.cc (+13, -13) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_viewer.cc (+2, -2) (Diff)
/source/blender/nodes/geometry/nodes/node_geo_volume_to_mesh.cc (+5, -3) (Diff)
/source/blender/nodes/geometry/node_geometry_util.cc (+3, -2) (Diff)
/source/blender/nodes/geometry/node_geometry_util.hh (+2, -1) (Diff)
/source/blender/nodes/intern/node_util.c (+5, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_hair_principled.c (+12, -37) (Diff)
/source/blender/nodes/shader/nodes/node_shader_bsdf_principled.c (+3, -13) (Diff)
/source/blender/nodes/shader/nodes/node_shader_mapping.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_map_range.cc (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_musgrave.cc (+7, -5) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_noise.cc (+3, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_sky.c (+2, -2) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_voronoi.cc (+13, -9) (Diff)
/source/blender/nodes/shader/nodes/node_shader_tex_white_noise.cc (+3, -3) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_math.cc (+11, -7) (Diff)
/source/blender/nodes/shader/nodes/node_shader_vector_rotate.cc (+6, -4) (Diff)