Browse Source

Merge pull request #33266 from Xrayez/inst2dict-original-path

Use GDScript resource path over script path for `inst2dict`
Rémi Verschelde 5 years ago
parent
commit
76aa975460
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_functions.cpp

+ 1 - 1
modules/gdscript/gdscript_functions.cpp

@@ -1126,7 +1126,7 @@ void GDScriptFunctions::call(Function p_func, const Variant **p_args, int p_arg_
 
 
 					Dictionary d;
 					Dictionary d;
 					d["@subpath"] = cp;
 					d["@subpath"] = cp;
-					d["@path"] = p->path;
+					d["@path"] = p->get_path();
 
 
 					p = base.ptr();
 					p = base.ptr();