|
@@ -746,9 +746,15 @@ Sidebar.Material = function ( editor ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- if ( material.reflectivity !== materialReflectivity.getValue() ) {
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if ( material.reflectivity !== undefined ) {
|
|
|
|
+
|
|
|
|
+ var reflectivity = materialReflectivity.getValue();
|
|
|
|
+
|
|
|
|
+ if ( material.reflectivity !== reflectivity ) {
|
|
|
|
|
|
- editor.execute( new SetMaterialValueCommand( currentObject, 'reflectivity', materialReflectivity.getValue() ) );
|
|
|
|
|
|
+ editor.execute( new SetMaterialValueCommand( currentObject, 'reflectivity', reflectivity ) );
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1126,6 +1132,10 @@ Sidebar.Material = function ( editor ) {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if ( material.reflectivity !== undefined ) {
|
|
|
|
+
|
|
materialReflectivity.setValue( material.reflectivity );
|
|
materialReflectivity.setValue( material.reflectivity );
|
|
|
|
|
|
}
|
|
}
|