I get an assertion error (traceback at the end of this post) now and then. It seems a simple setPos causes it (tracking and target are both NodePath instances), but I’m not 100% sure:
self.tracking.setPos( self.target, 0, 0, 0 )
This seems to be a workaround, that is, if I replace the above line with these two lines the assertion error seems to be gone:
t = self.target.getTransform( self.tracking )
self.tracking.setPos( self.tracking, t.getPos( ) )
Does anybody have a clue what is going wrong?
enn0x
EDIT: I use Panda 1.3.2 distribution on Windows.
Assertion failed: _states->find(this) == _saved_entry at line 101 of c:\temp\mkpr\panda3d-1.3.2\panda\src\pgraph\transformState.cxx
Traceback (most recent call last):
File "TestC.py", line 440, in ?
base.run( )
File "C:\Programme\Panda3D-1.3.2\direct\src\showbase\ShowBase.py", line 2028, in run
self.taskMgr.run()
File "C:\Programme\Panda3D-1.3.2\direct\src\task\Task.py", line 839, in run
self.step()
File "C:\Programme\Panda3D-1.3.2\direct\src\task\Task.py", line 787, in step
self.__stepThroughList(taskPriList)
File "C:\Programme\Panda3D-1.3.2\direct\src\task\Task.py", line 721, in __stepThroughList
ret = self.__executeTask(task)
File "C:\Programme\Panda3D-1.3.2\direct\src\task\Task.py", line 646, in __executeTask
endTime = self.trueClock.getShortTime()
AssertionError: _states->find(this) == _saved_entry at line 101 of c:\temp\mkpr\panda3d-1.3.2\panda\src\pgraph\transformState.cxx
shell returned 1
enn0x