[Bf-blender-cvs] [b39b552dedd] temp-geometry-nodes-extrude-and-scale: add descriptions

Jacques Lucke noreply at git.blender.org
Tue Jan 11 18:04:53 CET 2022


Commit: b39b552deddcd0f29966028bfb851748063e422e
Author: Jacques Lucke
Date:   Mon Jan 10 20:54:21 2022 +0100
Branches: temp-geometry-nodes-extrude-and-scale
https://developer.blender.org/rBb39b552deddcd0f29966028bfb851748063e422e

add descriptions

===================================================================

M	source/blender/nodes/geometry/nodes/node_geo_scale_elements.cc

===================================================================

diff --git a/source/blender/nodes/geometry/nodes/node_geo_scale_elements.cc b/source/blender/nodes/geometry/nodes/node_geo_scale_elements.cc
index 74a34bd8e2d..eb42b55f981 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_scale_elements.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_scale_elements.cc
@@ -40,9 +40,21 @@ static void node_declare(NodeDeclarationBuilder &b)
   b.add_input<decl::Vector>(N_("Scale"), "Scale_Vector")
       .default_value({1.0f, 1.0f, 1.0f})
       .supports_field();
-  b.add_input<decl::Vector>(N_("Pivot")).subtype(PROP_TRANSLATION).implicit_field();
-  b.add_input<decl::Vector>(N_("X Axis")).default_value({1.0f, 0.0f, 0.0f}).supports_field();
-  b.add_input<decl::Vector>(N_("Up")).default_value({0.0f, 0.0f, 1.0f}).supports_field();
+  b.add_input<decl::Vector>(N_("Pivot"))
+      .subtype(PROP_TRANSLATION)
+      .implicit_field()
+      .description(
+          N_("Origin of the scaling for each element. If multiple elements are scaled together, "
+             "their pivot is averaged"));
+  b.add_input<decl::Vector>(N_("X Axis"))
+      .default_value({1.0f, 0.0f, 0.0f})
+      .supports_field()
+      .description(N_("Direction which the x component of the scale input changes the element"));
+  b.add_input<decl::Vector>(N_("Up"))
+      .default_value({0.0f, 0.0f, 1.0f})
+      .supports_field()
+      .description(N_("Direction which the z component of the scale input changes the element (or "
+                      "approximate direction when not orthogonal to x axis)"));
   b.add_output<decl::Geometry>(N_("Geometry"));
 };



More information about the Bf-blender-cvs mailing list