Skip to content

Commit

Permalink
GH-642 Allow Object to connect to Boolean pins
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Aug 2, 2024
1 parent d8e90c9 commit 461792b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/script/node_pin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,10 @@ bool OScriptNodePin::can_accept(const Ref<OScriptNodePin>& p_pin) const
if (PropertyUtils::is_variant(_property) || PropertyUtils::is_variant(p_pin->get_property_info()))
return true;

// Allow Object to boolean for conditional tests
if (_property.type == Variant::BOOL && p_pin->get_property_info().type == Variant::OBJECT)
return true;

return false;
}

Expand Down

0 comments on commit 461792b

Please sign in to comment.