mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
new complete_pointers() rules
This commit is contained in:
parent
f8d082a208
commit
09f8949ff4
@ -439,6 +439,10 @@ read_pointer(DatagramIterator &scan, TypedWritable *for_whom) {
|
|||||||
nassertv(_now_creating != _created_objs.end());
|
nassertv(_now_creating != _created_objs.end());
|
||||||
int requestor_id = (*_now_creating).first;
|
int requestor_id = (*_now_creating).first;
|
||||||
|
|
||||||
|
/*
|
||||||
|
On reflection, we'll let this go undetected for now. Maybe we
|
||||||
|
should remove the this pointer from read_pointer() altogether.
|
||||||
|
|
||||||
#ifndef NDEBUG
|
#ifndef NDEBUG
|
||||||
// A bit of sanity checking here: we look up the object ID, and
|
// A bit of sanity checking here: we look up the object ID, and
|
||||||
// assign the "this" pointer into the record if it's not there
|
// assign the "this" pointer into the record if it's not there
|
||||||
@ -452,6 +456,7 @@ read_pointer(DatagramIterator &scan, TypedWritable *for_whom) {
|
|||||||
nassertv(created_obj._ptr == for_whom);
|
nassertv(created_obj._ptr == for_whom);
|
||||||
}
|
}
|
||||||
#endif // NDEBUG
|
#endif // NDEBUG
|
||||||
|
*/
|
||||||
|
|
||||||
// Read the object ID, and associate it with the requesting object.
|
// Read the object ID, and associate it with the requesting object.
|
||||||
int object_id = scan.get_uint16();
|
int object_id = scan.get_uint16();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user