fix proporder duplicates
This commit is contained in:
@@ -1420,6 +1420,9 @@
|
|||||||
(let [name (FuzzyMapTools.bestMatch props name)
|
(let [name (FuzzyMapTools.bestMatch props name)
|
||||||
prop (dictGet props name)
|
prop (dictGet props name)
|
||||||
position (resolvePosition position (Prop name))]
|
position (resolvePosition position (Prop name))]
|
||||||
|
// Very weird fix for a not wholly understood bug:
|
||||||
|
(when (.contains .propOrder (_currentScene) name)
|
||||||
|
(.remove .propOrder (_currentScene) name))
|
||||||
(.push .propOrder (_currentScene) name)
|
(.push .propOrder (_currentScene) name)
|
||||||
(dictSet .props (_currentScene) name (objectWith position prop))
|
(dictSet .props (_currentScene) name (objectWith position prop))
|
||||||
(_updateLighting)
|
(_updateLighting)
|
||||||
|
Reference in New Issue
Block a user