David Rose 22 years ago
parent
commit
08ae030917
1 changed files with 1 additions and 8 deletions
  1. 1 8
      panda/src/pgraph/pandaNode.cxx

+ 1 - 8
panda/src/pgraph/pandaNode.cxx

@@ -1026,15 +1026,8 @@ stash_child(int child_index) {
   nassertv(child_index >= 0 && child_index < get_num_children());
   nassertv(child_index >= 0 && child_index < get_num_children());
   PT(PandaNode) child_node = get_child(child_index);
   PT(PandaNode) child_node = get_child(child_index);
   int sort = get_child_sort(child_index);
   int sort = get_child_sort(child_index);
-
-  cerr << "  a: " << this << ":" << get_ref_count() << ", " << child_node
-       << "  " << *this << " stashes " << *child_node << "\n";
-
-  PT(PandaNode) self = this;
   
   
   remove_child(child_index);
   remove_child(child_index);
-
-  cerr << "  b\n";
   
   
   CDWriter cdata(_cycler);
   CDWriter cdata(_cycler);
   CDWriter cdata_child(child_node->_cycler);
   CDWriter cdata_child(child_node->_cycler);
@@ -1049,7 +1042,7 @@ stash_child(int child_index) {
 
 
   // Call callback hooks.
   // Call callback hooks.
   children_changed();
   children_changed();
-  cerr << "stash done.\n";
+  child_node->parents_changed();
 }
 }
 
 
 ////////////////////////////////////////////////////////////////////
 ////////////////////////////////////////////////////////////////////