All template node schema now without "/" character

This commit is contained in:
Insality 2020-03-22 11:46:16 +03:00
parent 278a61b99d
commit d2d4ffcad4

View File

@ -96,10 +96,10 @@ function Component.get_node(self, node_or_name)
if nodes then
assert(type(node_or_name) == "strings", "You should pass node name instead of node")
return nodes[template_name .. node_or_name]
return nodes[template_name .. "/" .. node_or_name]
else
if type(node_or_name) == const.STRING then
return gui.get_node(template_name .. node_or_name)
return gui.get_node(template_name .. "/" .. node_or_name)
else
return node_or_name
end