瀏覽代碼

Merge remote-tracking branch 'upstream/dev' into documentation_updates2

Greg Tatum 11 年之前
父節點
當前提交
8faa50b7ca
共有 2 個文件被更改,包括 6 次插入6 次删除
  1. 4 4
      editor/js/Sidebar.Material.js
  2. 2 2
      editor/js/Sidebar.Object3D.js

+ 4 - 4
editor/js/Sidebar.Material.js

@@ -611,25 +611,25 @@ Sidebar.Material = function ( editor ) {
 
 			if ( material.color !== undefined ) {
 
-				materialColor.setValue( '#' + material.color.getHexString() );
+				materialColor.setHexValue( material.color.getHexString() );
 
 			}
 
 			if ( material.ambient !== undefined ) {
 
-				materialAmbient.setValue( '#' + material.ambient.getHexString() );
+				materialAmbient.setHexValue( material.ambient.getHexString() );
 
 			}
 
 			if ( material.emissive !== undefined ) {
 
-				materialEmissive.setValue( '#' + material.emissive.getHexString() );
+				materialEmissive.setHexValue( material.emissive.getHexString() );
 
 			}
 
 			if ( material.specular !== undefined ) {
 
-				materialSpecular.setValue( '#' + material.specular.getHexString() );
+				materialSpecular.setHexValue( material.specular.getHexString() );
 
 			}
 

+ 2 - 2
editor/js/Sidebar.Object3D.js

@@ -541,13 +541,13 @@ Sidebar.Object3D = function ( editor ) {
 
 			if ( object.color !== undefined ) {
 
-				objectColor.setValue( '#' + object.color.getHexString() );
+				objectColor.setHexValue( object.color.getHexString() );
 
 			}
 
 			if ( object.groundColor !== undefined ) {
 
-				objectGroundColor.setValue( '#' + object.groundColor.getHexString() );
+				objectGroundColor.setHexValue( object.groundColor.getHexString() );
 
 			}