mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
*** empty log message ***
This commit is contained in:
parent
d7857a6f5a
commit
600ed23ca7
@ -2666,9 +2666,9 @@ class LevelStyleManager:
|
|||||||
center = bounds.getCenter()
|
center = bounds.getCenter()
|
||||||
center = center * (sf * node.getScale()[0])
|
center = center * (sf * node.getScale()[0])
|
||||||
# Reposition it
|
# Reposition it
|
||||||
node.setXY((radius * math.cos(i * angle)) - center[0],
|
node.setPos((radius * math.cos(i * angle)) - center[0],
|
||||||
(radius * aspectRatio * math.sin(i * angle)) -
|
(radius * aspectRatio * math.sin(i * angle)) -
|
||||||
center[2])
|
center[2])
|
||||||
node.setScale(node.getScale() * sf)
|
node.setScale(node.getScale() * sf)
|
||||||
# Add it to the wallColorMenu
|
# Add it to the wallColorMenu
|
||||||
node.reparentTo(newColorMenu)
|
node.reparentTo(newColorMenu)
|
||||||
@ -2774,9 +2774,9 @@ class LevelStyleManager:
|
|||||||
bounds = node.getBounds()
|
bounds = node.getBounds()
|
||||||
center = bounds.getCenter()
|
center = bounds.getCenter()
|
||||||
center = center * (sf * node.getScale()[0])
|
center = center * (sf * node.getScale()[0])
|
||||||
node.setXY(radius * math.cos(i * angle) - center[0],
|
node.setPos(radius * math.cos(i * angle) - center[0],
|
||||||
((radius * aspectRatio * math.sin(i * angle)) -
|
((radius * aspectRatio * math.sin(i * angle)) -
|
||||||
center[2]))
|
center[2]))
|
||||||
node.setScale(node.getScale() * sf)
|
node.setScale(node.getScale() * sf)
|
||||||
# Add it to the newMenu
|
# Add it to the newMenu
|
||||||
node.reparentTo(newMenu)
|
node.reparentTo(newMenu)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user