Update UiObject.js

This commit is contained in:
Luis Fernando Molina committed 2020-09-03 11:46:35 +02:00
1 parent 5fc32f9afd
commit 51c584f437
1 file changed
+1 -1
+1 -1
View File
@@ -617,7 +617,7 @@ function newUiObject() {
let distance = nearby[0]
let floatingObject = nearby[1]
let nearbyNode = floatingObject.payload.node
if (compatibleTypes.indexOf('->' + nearbyNode.type + '->') >= 0) {
if (compatibleTypes.indexOf('->' + nearbyNode.type + '->') >= 0 || compatibleTypes === "->*Any Node*->" ) {
if (foundCompatible === false) {
if (distance < thisObject.payload.floatingObject.container.frame.radius * 1.5 + floatingObject.container.frame.radius * 1.5) {
nearbyNode.payload.uiObject.getReadyToReferenceAttach()