提交 509b91b5 编写于 作者: M Mr.doob

Editor: envMap doesn't need UVs.

上级 f118cf95
......@@ -569,17 +569,9 @@ Sidebar.Material = function ( editor ) {
var envMapEnabled = materialEnvMapEnabled.getValue() === true;
if ( objectHasUvs ) {
material.envMap = envMapEnabled ? materialEnvMap.getValue() : null;
material.reflectivity = materialReflectivity.getValue();
material.needsUpdate = true;
} else {
if ( envMapEnabled ) textureWarning = true;
}
material.envMap = envMapEnabled ? materialEnvMap.getValue() : null;
material.reflectivity = materialReflectivity.getValue();
material.needsUpdate = true;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册