better normals color in dark mode
This commit is contained in:
parent
35c10cfc8a
commit
69de33109e
2 changed files with 9 additions and 5 deletions
|
|
@ -464,8 +464,9 @@ function object_destroy(id) {
|
|||
|
||||
// listen for changes like dark mode toggle
|
||||
function set_darkmode(dark) {
|
||||
let { prefs } = mesh.api;
|
||||
let { prefs, selection, model } = mesh.api;
|
||||
let { sky, platform } = moto.Space;
|
||||
prefs.map.space.dark = dark;
|
||||
if (dark) {
|
||||
mesh.material.wireframe.color.set(0xeeeeee);
|
||||
} else {
|
||||
|
|
@ -481,7 +482,9 @@ function set_darkmode(dark) {
|
|||
colorMinor: 0xeeeeee,
|
||||
},
|
||||
});
|
||||
prefs.map.space.dark = dark;
|
||||
for (let m of model.list()) {
|
||||
m.normals({ refresh: true });
|
||||
}
|
||||
prefs.save();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue