提交 0f6b0e6f 编写于 作者: M Mr.doob

MaterialLoader: Check if vertexColors is defined.

上级 e856c296
......@@ -43,7 +43,6 @@ THREE.MaterialLoader.prototype = {
material = new THREE.MeshBasicMaterial( {
color: json.color,
vertexColors: json.vertexColors,
opacity: json.opacity,
transparent: json.transparent,
wireframe: json.wireframe
......@@ -59,7 +58,6 @@ THREE.MaterialLoader.prototype = {
color: json.color,
ambient: json.ambient,
emissive: json.emissive,
vertexColors: json.vertexColors,
opacity: json.opacity,
transparent: json.transparent,
wireframe: json.wireframe
......@@ -77,7 +75,6 @@ THREE.MaterialLoader.prototype = {
emissive: json.emissive,
specular: json.specular,
shininess: json.shininess,
vertexColors: json.vertexColors,
opacity: json.opacity,
transparent: json.transparent,
wireframe: json.wireframe
......@@ -112,6 +109,8 @@ THREE.MaterialLoader.prototype = {
}
if ( json.vertexColors !== undefined ) material.vertexColors = json.vertexColors;
return material;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册