Update FloatingObject.js

This commit is contained in:
Luis Fernando Molina committed 2021-10-11 12:16:56 +02:00
1 parent 069e9ade9a
commit 423a36c1b0
1 file changed
+1 -1
@@ -359,7 +359,7 @@ function newFloatingObject() {
if (parent.payload === undefined) { return }
if (parent.payload.position === undefined) { return }
distanceToParent = Math.sqrt(Math.pow(parent.payload.position.x - thisObject.container.frame.position.x, 2) + Math.pow(parent.payload.position.y - thisObject.container.frame.position.y, 2)) // ... we calculate the distance ...
parentChildren = UI.projects.foundations.functionLibraries.nodeChildren.childrenCount(parent, thisObject.payload.node)
parentChildren = UI.projects.visualScripting.functionLibraries.nodeChildren.childrenCount(parent, thisObject.payload.node)
parentDistanceToGarndParent = parent.payload.distance
}