mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
Fixed bug with releasing PhysxController (get_actor got called after unlink).
This commit is contained in:
parent
21405bd4c3
commit
39ffe108c3
@ -34,8 +34,9 @@ release() {
|
||||
|
||||
nassertv(_error_type == ET_ok);
|
||||
|
||||
NxControllerManager *cm = get_actor()->get_scene()->cm();
|
||||
unlink();
|
||||
get_actor()->get_scene()->cm()->releaseController(*ptr());
|
||||
cm->releaseController(*ptr());
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user