2
0
Эх сурвалжийг харах

Updated webgl_animation_skinning_morph example.

Press play on tape.
tschw 9 жил өмнө
parent
commit
87302b8604

+ 3 - 6
examples/webgl_animation_skinning_morph.html

@@ -514,12 +514,7 @@
 
 
 								rootName = value;
 								rootName = value;
 								root = rootObjects[ rootNames.indexOf( rootName ) ];
 								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, 'repetitions', 0, Infinity );
 					folder.add( API, 'local root', rootNames );
 					folder.add( API, 'local root', rootNames );
 
 
+					API[ 'play()' ]();
+
 				}; // function clipControl
 				}; // function clipControl
 
 
 				// one folder per clip
 				// one folder per clip