diff options
author | Hans Goudey <h.goudey@me.com> | 2021-11-29 17:11:51 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-11-29 17:11:51 +0300 |
commit | f9add2d63e57e883e6befc5f6c8beffa869905ce (patch) | |
tree | dc64015982c879eb1825c18c45864404c890e65d | |
parent | e5e8db73df86ee04260c5f2bd2c61dfa8eb7943f (diff) |
Fix: Missing min value for set spline resolution node
-rw-r--r-- | source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc b/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc index 4280372faa6..8f3e26ac27b 100644 --- a/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc +++ b/source/blender/nodes/geometry/nodes/node_geo_set_spline_resolution.cc @@ -24,7 +24,7 @@ static void node_declare(NodeDeclarationBuilder &b) { b.add_input<decl::Geometry>(N_("Geometry")).supported_type(GEO_COMPONENT_TYPE_CURVE); b.add_input<decl::Bool>(N_("Selection")).default_value(true).hide_value().supports_field(); - b.add_input<decl::Int>(N_("Resolution")).default_value(12).supports_field(); + b.add_input<decl::Int>(N_("Resolution")).min(1).default_value(12).supports_field(); b.add_output<decl::Geometry>(N_("Geometry")); } |