mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 09:23:03 -04:00
fix track-memory-usage
This commit is contained in:
parent
9f89b56c0b
commit
7d12427481
@ -118,7 +118,7 @@ determine_dynamic_type() {
|
||||
_dynamic_type = _static_type;
|
||||
_flags &= ~F_reconsider_dynamic_type;
|
||||
|
||||
nassert_raise("Unregistered type.");
|
||||
//nassert_raise("Unregistered type");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -133,7 +133,7 @@ determine_dynamic_type() {
|
||||
}
|
||||
|
||||
} else {
|
||||
express_cat.error()
|
||||
express_cat.warning()
|
||||
<< "Pointer " << (void *)_ref_ptr << " previously indicated as type "
|
||||
<< orig_type << " is now type " << got_type << "!\n";
|
||||
}
|
||||
|
@ -145,9 +145,9 @@ init_type() {
|
||||
|
||||
TypeHandle base_type = register_dynamic_type(base_name);
|
||||
|
||||
CachedTypedWritableReferenceCount::init_type();
|
||||
CopyOnWriteObject::init_type();
|
||||
_type_handle =
|
||||
register_dynamic_type("CopyOnWriteObj<" + base_name + ">",
|
||||
base_type,
|
||||
CachedTypedWritableReferenceCount::get_class_type());
|
||||
CopyOnWriteObject::get_class_type());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user