filter shadow slivers on high poly models, add W ghost/wire hotkeys
This commit is contained in:
parent
24c0316cf8
commit
c3638262d0
5 changed files with 36 additions and 17 deletions
|
|
@ -258,6 +258,7 @@ class KeyboardControl {
|
|||
switch (evt.key) {
|
||||
// case 'g': return this.#api.group.merge();
|
||||
// case 'u': return this.#api.group.split();
|
||||
case 'w': return $('render-edges').onclick();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -366,9 +367,6 @@ class KeyboardControl {
|
|||
case this.#cca('o'): // tools
|
||||
this.#api.show.tools();
|
||||
break;
|
||||
case this.#cca('c'): // local devices
|
||||
this.#api.show.local();
|
||||
break;
|
||||
case this.#cca('v'): // toggle single slice view mode
|
||||
if (this.#api.view.get() === this.#VIEWS.ARRANGE) {
|
||||
this.#api.space.set_focus(this.#selection.widgets());
|
||||
|
|
@ -399,6 +397,12 @@ class KeyboardControl {
|
|||
this.#api.view.set(this.#VIEWS.ARRANGE);
|
||||
}
|
||||
break;
|
||||
case this.#cca('w'): // set ghost
|
||||
$('render-ghost').onclick();
|
||||
break;
|
||||
case this.#cca('W'): // set wireframe
|
||||
$('render-wire').onclick();
|
||||
break;
|
||||
default:
|
||||
this.#onUnhandledKey(evt);
|
||||
handled = false;
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ function setVisibleLayer(h, l) {
|
|||
* @param {number} [opacity] - Optional wireframe opacity
|
||||
*/
|
||||
function setWireframe(bool, color, opacity) {
|
||||
api.widgets.each(function(w) { w.setWireframe(bool, color, opacity) });
|
||||
api.widgets.each((w) => { w.setWireframe(bool, color, opacity) });
|
||||
space.update();
|
||||
}
|
||||
|
||||
|
|
@ -303,19 +303,19 @@ function updateStats(add) {
|
|||
}
|
||||
|
||||
export const visuals = {
|
||||
set_progress: setProgress,
|
||||
set_wireframe: setWireframe,
|
||||
set_edges: setEdges,
|
||||
unit_scale: unitScale,
|
||||
update_speeds: updateSpeeds,
|
||||
update_slider: updateSlider,
|
||||
update_slider_max: updateSliderMax,
|
||||
update_stack_labels: updateStackLabelState,
|
||||
update_stats: updateStats,
|
||||
show_slices: showSlices,
|
||||
hide_slices: hideSlices,
|
||||
show_slider: showSlider,
|
||||
hide_slider: hideSlider,
|
||||
set_edges: setEdges,
|
||||
set_progress: setProgress,
|
||||
set_visible_layer: setVisibleLayer,
|
||||
set_widget_visibility: setWidgetVisibility
|
||||
set_widget_visibility: setWidgetVisibility,
|
||||
set_wireframe: setWireframe,
|
||||
show_slices: showSlices,
|
||||
show_slider: showSlider,
|
||||
unit_scale: unitScale,
|
||||
update_slider_max: updateSliderMax,
|
||||
update_slider: updateSlider,
|
||||
update_speeds: updateSpeeds,
|
||||
update_stack_labels: updateStackLabelState,
|
||||
update_stats: updateStats
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue