提交 872bf279 编写于 作者: M Mr.doob

Editor: Using color.getHexString()

上级 0baabe37
......@@ -478,25 +478,25 @@ Sidebar.Material = function ( signals ) {
if ( material.color !== undefined ) {
materialColor.setValue( '#' + material.color.getHex().toString( 16 ) );
materialColor.setValue( '#' + material.color.getHexString() );
}
if ( material.ambient !== undefined ) {
materialAmbient.setValue( '#' + material.ambient.getHex().toString( 16 ) );
materialAmbient.setValue( '#' + material.ambient.getHexString() );
}
if ( material.emissive !== undefined ) {
materialEmissive.setValue( '#' + material.emissive.getHex().toString( 16 ) );
materialEmissive.setValue( '#' + material.emissive.getHexString() );
}
if ( material.specular !== undefined ) {
materialSpecular.setValue( '#' + material.specular.getHex().toString( 16 ) );
materialSpecular.setValue( '#' + material.specular.getHexString() );
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册