Skip to content

Commit

Permalink
GH-643 Allow String to connect to StringName pins
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 2, 2024
1 parent 461792b commit e8cc368
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/script/node_pin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -518,6 +518,9 @@ bool OScriptNodePin::can_accept(const Ref<OScriptNodePin>& p_pin) const
return true;
}

if (_property.type == Variant::STRING_NAME && p_pin->get_property_info().type == Variant::STRING)
return true;

// Numeric conversions allows
if (_property.type == Variant::INT || _property.type == Variant::FLOAT)
if (p_pin->get_type() == Variant::INT || p_pin->get_type() == Variant::FLOAT)
Expand Down

0 comments on commit e8cc368

Please sign in to comment.