Skip to content

Commit

Permalink
GH-568 Relax property validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Naros committed Jul 22, 2024
1 parent e8d2388 commit 6647c3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/script/nodes/properties/property.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ void OScriptNodeProperty::validate_node_during_build(BuildLog& p_log) const
const Ref<OScriptTargetObject> target_object = source->resolve_target();
if (!target_object.is_valid() || !target_object->has_target())
{
p_log.error(this, "No valid target was found.");
if (!_property_exists(ClassDB::class_get_property_list(target->get_property_info().class_name)))
p_log.error(this, vformat("No property name '%s' found in class '%s'", _property.name, _property.class_name));
}
else
{
Expand Down

0 comments on commit 6647c3a

Please sign in to comment.