fix loading to use and return layer tree
This commit is contained in:
@@ -25,12 +25,15 @@ struct
|
||||
val () = TextIO.closeIn io
|
||||
in
|
||||
case Parser.parse str of
|
||||
SOME (canvasWidth, canvasHeight, grid) =>
|
||||
Mailbox.send (inputMailbox, USE_SQUARES
|
||||
{ squares = grid
|
||||
, canvasWidth = canvasWidth
|
||||
, canvasHeight = canvasHeight
|
||||
})
|
||||
SOME (canvasWidth, canvasHeight, tree) =>
|
||||
Mailbox.send
|
||||
( inputMailbox
|
||||
, USE_LAYERS
|
||||
{ tree = tree
|
||||
, canvasWidth = canvasWidth
|
||||
, canvasHeight = canvasHeight
|
||||
}
|
||||
)
|
||||
| NONE => ()
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user