Sfoglia il codice sorgente

Updated webgl_animation_skinning_morph example.

Press play on tape.
tschw 9 anni fa
parent
commit
87302b8604
1 ha cambiato i file con 3 aggiunte e 6 eliminazioni
  1. 3 6
      examples/webgl_animation_skinning_morph.html

+ 3 - 6
examples/webgl_animation_skinning_morph.html

@@ -514,12 +514,7 @@
 
 								rootName = value;
 								root = rootObjects[ rootNames.indexOf( rootName ) ];
-
-								if ( action !== null ) {
-
-								// TODO
-
-								}
+								action = mixer.clipAction( clip, root );
 
 							}
 
@@ -549,6 +544,8 @@
 					folder.add( API, 'repetitions', 0, Infinity );
 					folder.add( API, 'local root', rootNames );
 
+					API[ 'play()' ]();
+
 				}; // function clipControl
 
 				// one folder per clip