Geometry Nodes: treat rotation as vector data type in link-drag-search in some nodes
If there is implicit conversion between rotation and vector type, so these search items make sense. Pull Request: https://projects.blender.org/blender/blender/pulls/121754
This commit is contained in:
committed by
Jacques Lucke
parent
f181027f6b
commit
1904e2fc8d
@@ -99,6 +99,7 @@ static std::optional<eCustomDataType> node_type_from_other_socket(const bNodeSoc
|
||||
return CD_PROP_INT32;
|
||||
case SOCK_VECTOR:
|
||||
case SOCK_RGBA:
|
||||
case SOCK_ROTATION:
|
||||
return CD_PROP_FLOAT3;
|
||||
default:
|
||||
return {};
|
||||
|
||||
@@ -91,6 +91,7 @@ static std::optional<eCustomDataType> node_type_from_other_socket(const bNodeSoc
|
||||
return CD_PROP_INT32;
|
||||
case SOCK_VECTOR:
|
||||
case SOCK_RGBA:
|
||||
case SOCK_ROTATION:
|
||||
return CD_PROP_FLOAT3;
|
||||
default:
|
||||
return {};
|
||||
|
||||
@@ -63,6 +63,7 @@ static std::optional<eCustomDataType> node_type_from_other_socket(const bNodeSoc
|
||||
return CD_PROP_FLOAT;
|
||||
case SOCK_VECTOR:
|
||||
case SOCK_RGBA:
|
||||
case SOCK_ROTATION:
|
||||
return CD_PROP_FLOAT3;
|
||||
default:
|
||||
return {};
|
||||
|
||||
@@ -85,8 +85,7 @@ static void node_gather_link_searches(GatherLinkSearchOpParams ¶ms)
|
||||
return;
|
||||
}
|
||||
if (fixed_data_type == CD_PROP_QUATERNION) {
|
||||
/* Don't implement quaternion blurring for now. */
|
||||
return;
|
||||
fixed_data_type = CD_PROP_FLOAT3;
|
||||
}
|
||||
if (fixed_data_type == CD_PROP_FLOAT4X4) {
|
||||
/* Don't implement matrix blurring for now. */
|
||||
|
||||
Reference in New Issue
Block a user