changeset 1424:bd3d5ac8e748

DOn't display unnecessary elemnts.
author wycc
date Sat, 09 Apr 2011 03:39:57 +0800
parents d82a828e8e26
children 13e126941bdd
files nodejs/mbapp.js
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/nodejs/mbapp.js	Sat Apr 09 03:36:51 2011 +0800
+++ b/nodejs/mbapp.js	Sat Apr 09 03:39:57 2011 +0800
@@ -199,10 +199,10 @@
     src.hide();
     // Duplicate the group
     var nodes = src.children;
-    if (src.dup) {
-        src.dup.remove();
-        src.dup = null;
-    }
+    //if (src.dup) {
+    //    src.dup.remove();
+    //    src.dup = null;
+    //}
     if (src.dup == null) {
         var dup = this.mb_rt.coord_new(src.parent);
 	for (i in nodes) {
@@ -315,7 +315,7 @@
         try {
             this.get(scenes[i].ref).hide();
             if (nth >=scenes[i].start && nth <=scenes[i].end) {
-	        this.get(scenes[i].ref).show();
+	        //this.get(scenes[i].ref).show();
 	        if (this.get(scenes[i].ref).dup)
                     this.get(scenes[i].ref).dup.show();
 		if (scenes[i].type == 'normal' || i == scenes.length-1) {
@@ -328,7 +328,7 @@
 		        // If there is no second key frame defined, fall back to the normal
 	                this.get(scenes[i].ref).show();
 		    }
-		    this.get(scenes[i+1].ref).hide();
+		    //this.get(scenes[i+1].ref).hide();
 		}
 
 	    } else {