aboutsummaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_script.cpp
diff options
context:
space:
mode:
authormostafahassan2015-03-31 21:34:50 +0200
committermostafahassan2015-03-31 21:34:50 +0200
commit73ff3ac2180f73610392831d437dd0a1862b8dd8 (patch)
tree7c0e74b0f7074e71c42aff0f400e0546f0ff32b7 /modules/gdscript/gd_script.cpp
parent7f8a0cddcfbd5744113de1826380310ad920360a (diff)
downloadgodot-73ff3ac2180f73610392831d437dd0a1862b8dd8.tar.gz
godot-73ff3ac2180f73610392831d437dd0a1862b8dd8.tar.zst
godot-73ff3ac2180f73610392831d437dd0a1862b8dd8.zip
Diffstat (limited to 'modules/gdscript/gd_script.cpp')
-rw-r--r--modules/gdscript/gd_script.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp
index 06c746c4f..f13b51c00 100644
--- a/modules/gdscript/gd_script.cpp
+++ b/modules/gdscript/gd_script.cpp
@@ -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()) {