mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-02 09:52:27 -04:00
oops, premature checkin
This commit is contained in:
parent
8a38b1dcef
commit
8e9e7aa3ca
@ -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++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user