Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJarrett Johnson <jarrett.johnson>2021-10-16 00:33:27 +0300
committerHans Goudey <h.goudey@me.com>2021-10-16 00:33:27 +0300
commit41dc55874742e8ee9d1361d729bec25514e1e3ae (patch)
treed59d1ec091799f93fc7c11bc76aa415232437f0e /source/blender/nodes/function/nodes/node_fn_rotate_euler.cc
parentc383397d072f3fdc10857bd4b0e484c0de469e2f (diff)
Geometry Nodes: Rotate Euler: Use "Local" instead of "Point"
Since points aren't relevant in function nodes, replace all mentions of it with "local" to illustrate rotations done in local-space instead. Differential Revision: https://developer.blender.org/D12881
Diffstat (limited to 'source/blender/nodes/function/nodes/node_fn_rotate_euler.cc')
-rw-r--r--source/blender/nodes/function/nodes/node_fn_rotate_euler.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc b/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc
index cbae1648663..7db566e96b5 100644
--- a/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc
+++ b/source/blender/nodes/function/nodes/node_fn_rotate_euler.cc
@@ -82,8 +82,8 @@ static const fn::MultiFunction *get_multi_function(bNode &bnode)
mat3_to_eul(result, mat_res);
return result;
}};
- static fn::CustomMF_SI_SI_SO<float3, float3, float3> point_euler_rot{
- "Rotate Euler by Euler/Point", [](const float3 &input, const float3 &rotation) {
+ static fn::CustomMF_SI_SI_SO<float3, float3, float3> local_euler_rot{
+ "Rotate Euler by Euler/Local", [](const float3 &input, const float3 &rotation) {
float input_mat[3][3];
eul_to_mat3(input_mat, input);
float rot_mat[3][3];
@@ -94,8 +94,8 @@ static const fn::MultiFunction *get_multi_function(bNode &bnode)
mat3_to_eul(result, mat_res);
return result;
}};
- static fn::CustomMF_SI_SI_SI_SO<float3, float3, float, float3> point_AA_rot{
- "Rotate Euler by AxisAngle/Point", [](const float3 &input, const float3 &axis, float angle) {
+ static fn::CustomMF_SI_SI_SI_SO<float3, float3, float, float3> local_AA_rot{
+ "Rotate Euler by AxisAngle/Local", [](const float3 &input, const float3 &axis, float angle) {
float input_mat[3][3];
eul_to_mat3(input_mat, input);
float rot_mat[3][3];
@@ -109,10 +109,10 @@ static const fn::MultiFunction *get_multi_function(bNode &bnode)
short type = bnode.custom1;
short space = bnode.custom2;
if (type == FN_NODE_ROTATE_EULER_TYPE_AXIS_ANGLE) {
- return space == FN_NODE_ROTATE_EULER_SPACE_OBJECT ? &obj_AA_rot : &point_AA_rot;
+ return space == FN_NODE_ROTATE_EULER_SPACE_OBJECT ? &obj_AA_rot : &local_AA_rot;
}
if (type == FN_NODE_ROTATE_EULER_TYPE_EULER) {
- return space == FN_NODE_ROTATE_EULER_SPACE_OBJECT ? &obj_euler_rot : &point_euler_rot;
+ return space == FN_NODE_ROTATE_EULER_SPACE_OBJECT ? &obj_euler_rot : &local_euler_rot;
}
BLI_assert_unreachable();
return nullptr;