From 41dc55874742e8ee9d1361d729bec25514e1e3ae Mon Sep 17 00:00:00 2001 From: Jarrett Johnson Date: Fri, 15 Oct 2021 16:33:27 -0500 Subject: 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 --- source/blender/nodes/function/nodes/node_fn_rotate_euler.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/nodes/function') 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 point_euler_rot{ - "Rotate Euler by Euler/Point", [](const float3 &input, const float3 &rotation) { + static fn::CustomMF_SI_SI_SO 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 point_AA_rot{ - "Rotate Euler by AxisAngle/Point", [](const float3 &input, const float3 &axis, float angle) { + static fn::CustomMF_SI_SI_SI_SO 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; -- cgit v1.2.3