From 430abbeaa08b161f5ccac0f8c5045c064b0c02c7 Mon Sep 17 00:00:00 2001 From: David Rose Date: Mon, 25 Jul 2005 22:18:26 +0000 Subject: [PATCH] copy PortalNodes --- panda/src/pgraph/portalNode.cxx | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/panda/src/pgraph/portalNode.cxx b/panda/src/pgraph/portalNode.cxx index 6e925870ca..9664a9b896 100755 --- a/panda/src/pgraph/portalNode.cxx +++ b/panda/src/pgraph/portalNode.cxx @@ -49,8 +49,6 @@ PortalNode(const string &name) : _into_portal_mask(PortalMask::all_on()), _flags(0) { - _cell_in = NULL; - _cell_out = NULL; _visible = true; } @@ -72,8 +70,6 @@ PortalNode(const string &name, LPoint3f pos, float scale) : add_vertex(LPoint3f(pos[0]+1.0*scale, pos[1], pos[2]+1.0*scale)); add_vertex(LPoint3f(pos[0]-1.0*scale, pos[1], pos[2]+1.0*scale)); - _cell_in = NULL; - _cell_out = NULL; _visible = true; } @@ -87,11 +83,12 @@ PortalNode(const PortalNode ©) : PandaNode(copy), _from_portal_mask(copy._from_portal_mask), _into_portal_mask(copy._into_portal_mask), - _flags(copy._flags) + _flags(copy._flags), + _vertices(copy._vertices), + _cell_in(copy._cell_in), + _cell_out(copy._cell_out), + _visible(copy._visible) { - _cell_in = copy._cell_in; - _cell_out = copy._cell_in; - _visible = copy._visible; } ////////////////////////////////////////////////////////////////////