2
0
David Rose 16 жил өмнө
parent
commit
68228e9198

+ 4 - 0
direct/src/plugin_npapi/ppPandaObject.cxx

@@ -216,6 +216,10 @@ bool PPPandaObject::
 has_property(NPIdentifier name) {
   string property_name = identifier_to_string(name);
   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()
   // will never be called.  So we always say we *do* have any