Ethosa 3 anni fa
parent
commit
09a357084b
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      src/nodesnim/runtime/scene_loader.nim

+ 2 - 2
src/nodesnim/runtime/scene_loader.nim

@@ -57,8 +57,8 @@ macro mkparse*(nodes: varargs[untyped]): untyped =
 
 
 var
-  parsable* = newTable[system.string, proc (name: string): NodeRef]()
-  attrs* = newTable[system.string, proc (node: NodeRef, value: string)]()
+  parsable* = newOrderedTable[system.string, proc (name: string): NodeRef]()
+  attrs* = newOrderedTable[system.string, proc (node: NodeRef, value: string)]()
 
 mkparse(Node, Scene, AudioStreamPlayer, AnimationPlayer)
 mkparse(Control, Box, VBox, HBox, ColorRect, Label, SubWindow, ToolTip,