mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 18:03:56 -04:00
clear pointer on reading bam
This commit is contained in:
parent
0e03b75c0e
commit
17997c0541
@ -63,6 +63,7 @@ void SheetNode::CData::
|
|||||||
fillin(DatagramIterator &scan, BamReader *reader) {
|
fillin(DatagramIterator &scan, BamReader *reader) {
|
||||||
// For now, we skip over the NULL pointer that we wrote out.
|
// For now, we skip over the NULL pointer that we wrote out.
|
||||||
reader->skip_pointer(scan);
|
reader->skip_pointer(scan);
|
||||||
|
_surface.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
@ -188,7 +189,12 @@ output(ostream &out) const {
|
|||||||
void SheetNode::
|
void SheetNode::
|
||||||
write(ostream &out, int indent_level) const {
|
write(ostream &out, int indent_level) const {
|
||||||
PandaNode::write(out, indent_level);
|
PandaNode::write(out, indent_level);
|
||||||
indent(out, indent_level) << get_surface() << "\n";
|
NurbsSurfaceEvaluator *surface = get_surface();
|
||||||
|
if (surface != (NurbsSurfaceEvaluator *)NULL) {
|
||||||
|
indent(out, indent_level + 2) << *surface << "\n";
|
||||||
|
} else {
|
||||||
|
indent(out, indent_level + 2) << "(no surface)\n";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////
|
||||||
|
Loading…
x
Reference in New Issue
Block a user