mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -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);
|
nassertv(_error_type == ET_ok);
|
||||||
|
|
||||||
|
NxControllerManager *cm = get_actor()->get_scene()->cm();
|
||||||
unlink();
|
unlink();
|
||||||
get_actor()->get_scene()->cm()->releaseController(*ptr());
|
cm->releaseController(*ptr());
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user