提交 31b77223 编写于 作者: M Mr.doob

Material: Remove unnecessary conditional branch. From @cjshannon.

Sorry, I couldn't merge cleanly nor cherry-pick.
上级 5cb72ed9
......@@ -65,11 +65,7 @@ THREE.Material.prototype = {
var currentValue = this[ key ];
if ( currentValue instanceof THREE.Color && newValue instanceof THREE.Color ) {
currentValue.copy( newValue );
} else if ( currentValue instanceof THREE.Color ) {
if ( currentValue instanceof THREE.Color ) {
currentValue.set( newValue );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册