mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
disambiguate for()
This commit is contained in:
parent
4d35e9a9eb
commit
3a1f1399bc
@ -1034,13 +1034,14 @@ steal_children(PandaNode *other) {
|
||||
// the end.
|
||||
|
||||
int num_children = other->get_num_children();
|
||||
for (int i = 0; i < num_children; i++) {
|
||||
int i;
|
||||
for (i = 0; i < num_children; i++) {
|
||||
PandaNode *child_node = other->get_child(i);
|
||||
int sort = other->get_child_sort(i);
|
||||
add_child(child_node, sort);
|
||||
}
|
||||
int num_stashed = other->get_num_stashed();
|
||||
for (int i = 0; i < num_stashed; i++) {
|
||||
for (i = 0; i < num_stashed; i++) {
|
||||
PandaNode *child_node = other->get_stashed(i);
|
||||
int sort = other->get_stashed_sort(i);
|
||||
add_stashed(child_node, sort);
|
||||
@ -1062,13 +1063,14 @@ copy_children(PandaNode *other) {
|
||||
return;
|
||||
}
|
||||
int num_children = other->get_num_children();
|
||||
for (int i = 0; i < num_children; i++) {
|
||||
int i;
|
||||
for (i = 0; i < num_children; i++) {
|
||||
PandaNode *child_node = other->get_child(i);
|
||||
int sort = other->get_child_sort(i);
|
||||
add_child(child_node, sort);
|
||||
}
|
||||
int num_stashed = other->get_num_stashed();
|
||||
for (int i = 0; i < num_stashed; i++) {
|
||||
for (i = 0; i < num_stashed; i++) {
|
||||
PandaNode *child_node = other->get_stashed(i);
|
||||
int sort = other->get_stashed_sort(i);
|
||||
add_stashed(child_node, sort);
|
||||
|
Loading…
x
Reference in New Issue
Block a user