Calling MeshDrawer segment and link_segment Crashes Panda3D
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Panda3D |
Fix Released
|
Undecided
|
rdb |
Bug Description
At least on Windows 7 and XP using Panda3D versions from 1.8.0 to 1.9.3, calling the segment() or link_segment() functions of MeshDrawer crashes Panda but offers the following fatal error:
:express(error): Attempt to cast pointer from ModelNode to Camera
Forum Topic: http://
Example Code:
from direct.
from panda3d.core import MeshDrawer, NodePath
class Test(ShowBase):
def __init__(self):
self.drawer = MeshDrawer()
self.time = 0
def update_task(self, task):
self.time += globalClock.
# Test that segment and link_segment do not fatally crash.
# At least on Windows 7 and XP it crashes with the following error -
# :express(error): Attempt to cast pointer from ModelNode to Camera
return task.cont
test = Test()
test.run()
Changed in panda3d: | |
milestone: | none → 1.9.4 |
status: | Fix Committed → Fix Released |
I think it expects you to pass base.cam instead of camera. Does that resolve the crash?