spawn position bug fixed
This commit is contained in:
1 parent
59474ac38d
commit
e86fc67188
2 files changed
+2
-5
No files matched your search
@@ -226,8 +226,8 @@ function newWorkspace () {
|
||||
|
||||
/* It does not exist, so we recreeate it respecting the inner state of each object. */
|
||||
let positionOffset = {
|
||||
x: spawnPosition.x - droppedNode.savedPayload.targetPosition.x,
|
||||
y: spawnPosition.y - droppedNode.savedPayload.targetPosition.y
|
||||
x: spawnPosition.x - droppedNode.savedPayload.position.x,
|
||||
y: spawnPosition.y - droppedNode.savedPayload.position.y
|
||||
}
|
||||
|
||||
thisObject.workspaceNode.rootNodes.push(droppedNode)
|
||||
|
||||
@@ -46,9 +46,6 @@ function newUiObjectConstructor () {
|
||||
y: payload.node.savedPayload.position.y
|
||||
}
|
||||
|
||||
// if (position.x === undefined) { position.x = spawnPosition.x }
|
||||
// if (position.y === undefined) { position.y = spawnPosition.y }
|
||||
|
||||
floatingObject.setPosition(position)
|
||||
payload.node.savedPayload.position = undefined
|
||||
if (payload.node.savedPayload.floatingObject.isPinned === true) {
|
||||
|
||||
Reference in new issue
Block a user