mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-18 12:43:44 -04:00
Moved update of selected object's position to cluster network layer
This commit is contained in:
parent
edabd48a6f
commit
0d1b70edee
@ -173,17 +173,6 @@ class SelectedNodePaths(PandaObject):
|
|||||||
|
|
||||||
def moveWrtWidgetAll(self):
|
def moveWrtWidgetAll(self):
|
||||||
self.forEachSelectedNodePathDo(self.moveWrtWidget)
|
self.forEachSelectedNodePathDo(self.moveWrtWidget)
|
||||||
# Update cluster if current display is a cluster client
|
|
||||||
if (direct.clusterMode == 'client') and (last is not None):
|
|
||||||
pos = Point3(0)
|
|
||||||
hpr = VBase3(0)
|
|
||||||
scale = VBase3(1)
|
|
||||||
decomposeMatrix(last.getMat(), scale, hpr, pos)
|
|
||||||
direct.cluster.cmd(
|
|
||||||
'last.setPosHprScale(%f,%f,%f,%f,%f,%f,%f,%f,%f)' %
|
|
||||||
(pos[0], pos[1], pos[2],
|
|
||||||
hpr[0], hpr[1], hpr[2],
|
|
||||||
scale[0], scale[1], scale[2]))
|
|
||||||
|
|
||||||
def moveWrtWidget(self, nodePath):
|
def moveWrtWidget(self, nodePath):
|
||||||
nodePath.setMat(direct.widget, nodePath.mDnp2Widget)
|
nodePath.setMat(direct.widget, nodePath.mDnp2Widget)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user