HUGE BUG fixed, duplicating the creation of UI Objects

This commit is contained in:
Luis Fernando Molina committed 2019-12-24 17:17:56 +01:00
1 parent b6ca74d433
commit a595d3f0a8
10 files changed
+150 -895

No files matched your search

+6 -3
View File
@@ -188,8 +188,12 @@ function newFloatingObject () {
if (thisObject.frozenManually !== false) { return }
if (thisObject.payload === undefined) { return }
let parent = thisObject.payload.chainParent
if (parent !== undefined && parent.payload !== undefined) {
thisObject.isFrozen = parent.payload.floatingObject.isFrozen
if (parent !== undefined) {
if (parent.payload !== undefined) {
if (parent.payload.floatingObject !== undefined) {
thisObject.isFrozen = parent.payload.floatingObject.isFrozen
}
}
}
}
@@ -479,4 +483,3 @@ function newFloatingObject () {
function updateRadius () {
}
}