You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
(Fix) script will not be able to extend itself
This commit is contained in:
@@ -1689,7 +1689,7 @@ bool GDScript::_update_exports() {
|
||||
}
|
||||
|
||||
|
||||
if (c->extends_used && String(c->extends_file)!="") {
|
||||
if (c->extends_used && String(c->extends_file)!="" && String(c->extends_file) != get_path()) {
|
||||
|
||||
String path = c->extends_file;
|
||||
if (path.is_rel_path()) {
|
||||
|
||||
Reference in New Issue
Block a user