Now the scene converter will add node script resource paths as a comment.

This commit is contained in:
Relintai 2022-06-04 23:58:38 +02:00
parent 8130ba6b7a
commit e4f007a3f1

View File

@ -25,6 +25,11 @@ class GDSSceneParser:
nn = nn.get_parent()
node_name = node_name.to_lower()
var nscript : Script = node.get_script()
if nscript:
result += "//Script: " + nscript.resource_path + "\n"
result += node.get_class() + " *" + node_name + " = memnew(" + node.get_class() + ");\n"
result += node_name + "->set_name(\"" + node.get_name() + "\");\n"