|
@@ -87,8 +87,6 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- //
|
|
|
-
|
|
|
var attributes = geometry.attributes;
|
|
|
|
|
|
for ( var name in attributes ) {
|
|
@@ -97,6 +95,16 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ // morph targets
|
|
|
+
|
|
|
+ var morphAttributes = geometry.morphAttributes;
|
|
|
+
|
|
|
+ for ( var i = 0, l = morphAttributes.length; i < l; i ++ ) {
|
|
|
+
|
|
|
+ updateAttribute( morphAttributes[ i ], i );
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
function updateAttribute( attribute, name ) {
|
|
@@ -196,8 +204,6 @@ THREE.WebGLObjects = function ( gl, properties, info ) {
|
|
|
|
|
|
};
|
|
|
|
|
|
- this.updateAttribute = updateAttribute;
|
|
|
-
|
|
|
this.clear = function () {
|
|
|
|
|
|
objects = {};
|