mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
don't crash if assertion fails
This commit is contained in:
parent
083d9bd0a6
commit
c3e20f1a70
@ -1045,7 +1045,10 @@ unstash() {
|
|||||||
INLINE bool NodePath::
|
INLINE bool NodePath::
|
||||||
stash() {
|
stash() {
|
||||||
nassertr(!is_singleton(), false);
|
nassertr(!is_singleton(), false);
|
||||||
return get_parent().node()->stash_child(node());
|
PandaNode *parent_node = get_parent().node();
|
||||||
|
PandaNode *this_node = node();
|
||||||
|
nassertr(parent_node != (PandaNode *)NULL && this_node != (PandaNode *)NULL, false);
|
||||||
|
return parent_node->stash_child(this_node);
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user