mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-05 03:15:07 -04:00
fix crash
This commit is contained in:
parent
4dd7ebec82
commit
68228e9198
@ -216,6 +216,10 @@ bool PPPandaObject::
|
|||||||
has_property(NPIdentifier name) {
|
has_property(NPIdentifier name) {
|
||||||
string property_name = identifier_to_string(name);
|
string property_name = identifier_to_string(name);
|
||||||
logfile << "has_property: " << this << ", " << property_name << "\n" << flush;
|
logfile << "has_property: " << this << ", " << property_name << "\n" << flush;
|
||||||
|
if (_p3d_object == NULL) {
|
||||||
|
// Not powered up yet.
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// If we say we don't have a given property, then set_property()
|
// If we say we don't have a given property, then set_property()
|
||||||
// will never be called. So we always say we *do* have any
|
// will never be called. So we always say we *do* have any
|
||||||
|
Loading…
x
Reference in New Issue
Block a user