Nodes: Make spacings unitless in String to Curves node
The String to Curves node allows selecting various metrics for the characters. Size is the absolute height between two lines, and is correctly marked as a distance. Character, Word and Line Spacing, on the other hand, do not represent any distance, but are proportional to the base size and should not have distance units. This commit simply removes the properties' `PROP_DISTANCE` subtype. Pull Request: https://projects.blender.org/blender/blender/pulls/106660
This commit is contained in:
committed by
Erik Abrahamsson
parent
aeb15e4e76
commit
4f08eeae9c
@@ -28,18 +28,9 @@ static void node_declare(NodeDeclarationBuilder &b)
|
||||
{
|
||||
b.add_input<decl::String>(N_("String"));
|
||||
b.add_input<decl::Float>(N_("Size")).default_value(1.0f).min(0.0f).subtype(PROP_DISTANCE);
|
||||
b.add_input<decl::Float>(N_("Character Spacing"))
|
||||
.default_value(1.0f)
|
||||
.min(0.0f)
|
||||
.subtype(PROP_DISTANCE);
|
||||
b.add_input<decl::Float>(N_("Word Spacing"))
|
||||
.default_value(1.0f)
|
||||
.min(0.0f)
|
||||
.subtype(PROP_DISTANCE);
|
||||
b.add_input<decl::Float>(N_("Line Spacing"))
|
||||
.default_value(1.0f)
|
||||
.min(0.0f)
|
||||
.subtype(PROP_DISTANCE);
|
||||
b.add_input<decl::Float>(N_("Character Spacing")).default_value(1.0f).min(0.0f);
|
||||
b.add_input<decl::Float>(N_("Word Spacing")).default_value(1.0f).min(0.0f);
|
||||
b.add_input<decl::Float>(N_("Line Spacing")).default_value(1.0f).min(0.0f);
|
||||
b.add_input<decl::Float>(N_("Text Box Width"))
|
||||
.default_value(0.0f)
|
||||
.min(0.0f)
|
||||
|
||||
Reference in New Issue
Block a user