You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-24 15:26:15 +00:00
Make cyclic resource inclusion error message more helpful
This commit is contained in:
@@ -74,7 +74,7 @@ void Resource::set_path(const String &p_path, bool p_take_over) {
|
|||||||
bool exists = ResourceCache::resources.has(p_path);
|
bool exists = ResourceCache::resources.has(p_path);
|
||||||
ResourceCache::lock->read_unlock();
|
ResourceCache::lock->read_unlock();
|
||||||
|
|
||||||
ERR_EXPLAIN("Another resource is loaded from path: " + p_path);
|
ERR_EXPLAIN("Another resource is loaded from path: " + p_path + " (possible cyclic resource inclusion)");
|
||||||
ERR_FAIL_COND(exists);
|
ERR_FAIL_COND(exists);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user