mirror of
https://github.com/Relintai/broken_seals.git
synced 2024-11-13 20:47:19 +01:00
Now the scene converter will add node script resource paths as a comment.
This commit is contained in:
parent
8130ba6b7a
commit
e4f007a3f1
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user