Fix #147157: Scale node X input has no label

The scale node X input has no label, while Y does. This is due to the
`.optional_label()` statement which seems to have accidentally been
added in 149a47ba57. To fix this, we just remove the statement.

Pull Request: https://projects.blender.org/blender/blender/pulls/147178
This commit is contained in:
YimingWu
2025-10-07 11:28:54 +02:00
committed by Omar Emara
parent 7d6b55ab3f
commit 0efc88bacd

View File

@@ -64,7 +64,6 @@ static void cmp_node_scale_declare(NodeDeclarationBuilder &b)
.min(0.0001f)
.max(CMP_SCALE_MAX)
.structure_type(StructureType::Dynamic)
.optional_label()
.usage_by_menu("Type", {CMP_NODE_SCALE_RELATIVE, CMP_NODE_SCALE_ABSOLUTE});
b.add_input<decl::Float>("Y")
.default_value(1.0f)