Explorar el Código

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

Use GDScript resource path over script path for `inst2dict`
Rémi Verschelde hace 5 años
padre
commit
76aa975460
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
 					d["@subpath"] = cp;
-					d["@path"] = p->path;
+					d["@path"] = p->get_path();
 
 					p = base.ptr();