mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
Added DIRECT_reparent_fWrt message with wrt information
This commit is contained in:
parent
e4917b05c0
commit
de5c96115f
@ -535,6 +535,7 @@ class DirectSession(DirectObject):
|
|||||||
taskMgr.add(t, 'followSelectedNodePath')
|
taskMgr.add(t, 'followSelectedNodePath')
|
||||||
# Send an message marking the event
|
# Send an message marking the event
|
||||||
messenger.send('DIRECT_selectedNodePath', [dnp])
|
messenger.send('DIRECT_selectedNodePath', [dnp])
|
||||||
|
messenger.send('DIRECT_selectedNodePath_fMulti_fTag', [dnp, fMultiSelect, fSelectTag])
|
||||||
|
|
||||||
def followSelectedNodePathTask(self, state):
|
def followSelectedNodePathTask(self, state):
|
||||||
mCoa2Render = state.dnp.mCoa2Dnp * state.dnp.getMat(render)
|
mCoa2Render = state.dnp.mCoa2Dnp * state.dnp.getMat(render)
|
||||||
@ -585,6 +586,9 @@ class DirectSession(DirectObject):
|
|||||||
# Alert everyone else
|
# Alert everyone else
|
||||||
messenger.send('DIRECT_reparent',
|
messenger.send('DIRECT_reparent',
|
||||||
[nodePath, oldParent, self.activeParent])
|
[nodePath, oldParent, self.activeParent])
|
||||||
|
# [gjeon] for others who needs fWrt information
|
||||||
|
messenger.send('DIRECT_reparent_fWrt',
|
||||||
|
[nodePath, oldParent, self.activeParent, fWrt])
|
||||||
|
|
||||||
def isNotCycle(self, nodePath, parent):
|
def isNotCycle(self, nodePath, parent):
|
||||||
if nodePath.id() == parent.id():
|
if nodePath.id() == parent.id():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user