2
0
Эх сурвалжийг харах

Editor: More color widget instances using setHexValue.

Mr.doob 11 жил өмнө
parent
commit
0940321b4d

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

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