Update UiObject.js

This commit is contained in:
Luis Fernando Molina committed 2020-04-04 15:09:10 +02:00
1 parent ca9a7fecca
commit 0bdc3778a0
1 file changed
+2 -2
+2 -2
View File
@@ -1113,11 +1113,11 @@ function newUiObject () {
}
function drawReferenceLine () {
if (canvas.floatingSpace.drawReferenceLines === false) { return }
if (canvas.floatingSpace.drawReferenceLines === false && thisObject.isOnFocus === false) { return }
if (thisObject.payload.referenceParent === undefined) { return }
if (thisObject.payload.referenceParent.payload === undefined) { return }
if (thisObject.payload.referenceParent.payload.floatingObject === undefined) { return }
if (thisObject.payload.referenceParent.payload.floatingObject.isParentCollapsed === true) { return }
if (thisObject.payload.referenceParent.payload.floatingObject.isParentCollapsed === true && thisObject.isOnFocus === false) { return }
let targetPoint = {
x: thisObject.payload.referenceParent.payload.position.x,