fix a null position component bug
This commit is contained in:
@@ -35,11 +35,12 @@
|
|||||||
(when _playgroundKey
|
(when _playgroundKey
|
||||||
(super.process archive ui)
|
(super.process archive ui)
|
||||||
(doFor e (entries.iterator)
|
(doFor e (entries.iterator)
|
||||||
(let [pos (dictGet (readComponent e Positions) _playgroundKey)]
|
(when (hasComponent e Positions)
|
||||||
(doFor =>e2id _ (readComponentOr e Connections (new Map<String,Int>))
|
(let [pos (dictGet (readComponent e Positions) _playgroundKey)]
|
||||||
(whenLet [e2 (dictGet archive.entries e2id)
|
(doFor =>e2id _ (readComponentOr e Connections (new Map<String,Int>))
|
||||||
pos2 (dictGet (readComponent e2 Positions) _playgroundKey)]
|
(whenLet [e2 (dictGet archive.entries e2id)
|
||||||
(connectionProcessor archive e pos e2 pos2 ui)))))))
|
pos2 (dictGet (readComponent e2 Positions) _playgroundKey)]
|
||||||
|
(connectionProcessor archive e pos e2 pos2 ui))))))))
|
||||||
|
|
||||||
(method defaultPosition [:Entry e]
|
(method defaultPosition [:Entry e]
|
||||||
(object x 0.0 y 0.0 z 0.0))
|
(object x 0.0 y 0.0 z 0.0))
|
||||||
|
|||||||
Reference in New Issue
Block a user