oops, premature checkin

This commit is contained in:
David Rose 2002-03-06 22:46:04 +00:00
parent 8a38b1dcef
commit 8e9e7aa3ca

View File

@ -20,7 +20,7 @@
#include "qpeggLoader.h" #include "qpeggLoader.h"
#include "config_egg2pg.h" #include "config_egg2pg.h"
#include "qpnodePath.h" #include "nodeChain.h"
#include "renderState.h" #include "renderState.h"
#include "transformState.h" #include "transformState.h"
#include "textureAttrib.h" #include "textureAttrib.h"
@ -154,14 +154,14 @@ reparent_decals() {
PandaNode *node = (*di); PandaNode *node = (*di);
nassertv(node != (PandaNode *)NULL); nassertv(node != (PandaNode *)NULL);
// The qpNodePath interface is best for this. // The NodeChain interface is best for this.
qpNodePath parent(node); NodeChain parent(node);
// First, search for the GeomNode. // First, search for the GeomNode.
qpNodePath geom_parent; NodeChain geom_parent;
int num_children = parent.get_num_children(); int num_children = parent.get_num_children();
for (int i = 0; i < num_children; i++) { for (int i = 0; i < num_children; i++) {
qpNodePath child = parent.get_child(i); NodeChain child = parent.get_child(i);
if (child.node()->is_of_type(qpGeomNode::get_class_type())) { if (child.node()->is_of_type(qpGeomNode::get_class_type())) {
if (!geom_parent.is_empty()) { if (!geom_parent.is_empty()) {
@ -187,7 +187,7 @@ reparent_decals() {
// list. // list.
int i = 0; int i = 0;
while (i < num_children) { while (i < num_children) {
qpNodePath child = parent.get_child(i); NodeChain child = parent.get_child(i);
if (child.node()->is_of_type(qpGeomNode::get_class_type())) { if (child.node()->is_of_type(qpGeomNode::get_class_type())) {
i++; i++;