fix line width override in preview. add more lighting debug
This commit is contained in:
parent
bcea87dbe6
commit
1a7e97462b
6 changed files with 19 additions and 13 deletions
|
|
@ -265,6 +265,7 @@ function preparePreview(callback, scale = 1, offset = 0) {
|
|||
hide.slider(true);
|
||||
|
||||
const isCam = mode.is_cam(), pMode = settings.mode;
|
||||
const isDark = api.space.is_dark();
|
||||
const isBelt = device.bedBelt || false;
|
||||
|
||||
view.set_preview();
|
||||
|
|
@ -272,7 +273,7 @@ function preparePreview(callback, scale = 1, offset = 0) {
|
|||
event.emit('preview.begin', pMode);
|
||||
|
||||
if (isCam) {
|
||||
api.widgets.opacity(COLOR.cam_preview_opacity);
|
||||
api.widgets.opacity(isDark ? COLOR.cam_preview_opacity_dark : COLOR.cam_preview_opacity);
|
||||
api.widgets.each(widget => {
|
||||
widget.setColor(COLOR.cam_preview);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue