|
@@ -886,6 +886,8 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ state.initAttributes();
|
|
|
+
|
|
|
var geometryAttributes = geometry.attributes;
|
|
|
|
|
|
var programAttributes = program.getAttributes();
|
|
@@ -964,6 +966,7 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
} else if ( materialDefaultAttributeValues !== undefined ) {
|
|
|
|
|
|
var value = materialDefaultAttributeValues[ name ];
|
|
|
+
|
|
|
if ( value !== undefined ) {
|
|
|
|
|
|
switch ( value.length ) {
|
|
@@ -1017,12 +1020,6 @@ THREE.WebGLRenderer = function ( parameters ) {
|
|
|
|
|
|
}
|
|
|
|
|
|
- if ( updateBuffers ) {
|
|
|
-
|
|
|
- state.initAttributes();
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
// morph targets
|
|
|
|
|
|
var morphTargetInfluences = object.morphTargetInfluences;
|