Browse Source

minor tweaks

David Rose 23 years ago
parent
commit
c064413079
1 changed files with 4 additions and 1 deletions
  1. 4 1
      panda/src/testbed/test_texmem.cxx

+ 4 - 1
panda/src/testbed/test_texmem.cxx

@@ -23,6 +23,7 @@
 #include "mathNumbers.h"
 #include "mathNumbers.h"
 
 
 NodePath bogus_scene;
 NodePath bogus_scene;
+NodePath old_bogus_scene;
 
 
 void
 void
 event_T(CPT_Event, void *data) {
 event_T(CPT_Event, void *data) {
@@ -36,7 +37,9 @@ event_T(CPT_Event, void *data) {
 
 
   if (!bogus_scene.is_empty()) {
   if (!bogus_scene.is_empty()) {
     // We are undoing a previous shift-t.
     // We are undoing a previous shift-t.
-    bogus_scene.remove_node();
+    old_bogus_scene = bogus_scene;
+    old_bogus_scene.detach_node();
+    bogus_scene = NodePath();
     models.show();
     models.show();
     return;
     return;
   }
   }