Tensors remember last parent

This commit is contained in:
Luis Fernando Molina committed 2019-07-08 12:41:12 +02:00
1 parent 1725e388b9
commit 635b7cb087
1 file changed
+8
+8
View File
@@ -63,6 +63,7 @@ function newFloatingObject () {
let selfMouseClickEventSubscriptionId
let spaceMouseOverEventSubscriptionId
let spaceFocusAquiredEventSubscriptionId
let lastParentAngle
return thisObject
@@ -189,6 +190,13 @@ function newFloatingObject () {
axisCount++
axisIndex++
baseAngle = parent.payload.angle + 180
lastParentAngle = parent.payload.angle
} else {
if (lastParentAngle !== undefined) {
axisCount++
axisIndex++
baseAngle = lastParentAngle + 180
}
}
let angleStep = 360 / axisCount