diff --git a/paint/sources/box_preferences.ts b/paint/sources/box_preferences.ts index f0347031..ccf094b4 100644 --- a/paint/sources/box_preferences.ts +++ b/paint/sources/box_preferences.ts @@ -347,7 +347,7 @@ function box_preferences_usage_tab() { } let hfov: ui_handle_t = ui_handle(__ID__); - hfov.f = config_raw.camera_fov; + hfov.f = config_raw.camera_fov; config_raw.camera_fov = ui_slider(hfov, tr("Default Camera FoV"), 0.3, 1.4, true); let hspeed: ui_handle_t = ui_handle(__ID__); diff --git a/paint/sources/config.ts b/paint/sources/config.ts index 062a5e9a..1e7164bb 100644 --- a/paint/sources/config.ts +++ b/paint/sources/config.ts @@ -1,9 +1,9 @@ let config_raw: config_t = null; let config_keymap: map_t; -let config_loaded: bool = false; -let config_button_align: ui_align_t = ui_align_t.LEFT; -let config_button_spacing: string = " "; +let config_loaded: bool = false; +let config_button_align: ui_align_t = ui_align_t.LEFT; +let config_button_spacing: string = " "; function config_load() { let path: string = ""; @@ -440,7 +440,7 @@ function config_load_theme(theme: string, tag_redraw: bool = true) { base_theme.CHECK_SELECT_SIZE = 8 + 2; } else { - base_theme.FULL_TABS = false; + base_theme.FULL_TABS = false; } } diff --git a/paint/sources/enums.ts b/paint/sources/enums.ts index 28c4f0bf..1368f5e8 100644 --- a/paint/sources/enums.ts +++ b/paint/sources/enums.ts @@ -277,7 +277,7 @@ enum layout_size_t { enum neural_backend_t { CPU = 0, VULKAN = 1, - CUDA = 2, + CUDA = 2, } enum preference_tab_t { diff --git a/paint/sources/make_paint.ts b/paint/sources/make_paint.ts index ecb79b65..674f421b 100644 --- a/paint/sources/make_paint.ts +++ b/paint/sources/make_paint.ts @@ -271,7 +271,8 @@ function make_paint_run(data: material_t, matcon: material_context_t): node_shad if (context_raw.material.paint_subs) { node_shader_write_frag(kong, "var subs: float = " + subs + ";"); } - if (!make_material_opac_used && parse_float(opac) != 1.0 && context_raw.viewport_mode == viewport_mode_t.PATH_TRACE && config_raw.pathtrace_mode == pathtrace_mode_t.QUALITY) { + if (!make_material_opac_used && parse_float(opac) != 1.0 && context_raw.viewport_mode == viewport_mode_t.PATH_TRACE && + config_raw.pathtrace_mode == pathtrace_mode_t.QUALITY) { make_material_opac_used = true; return make_paint_run(data, matcon); } diff --git a/paint/sources/make_sculpt.ts b/paint/sources/make_sculpt.ts index 3cf061fb..bc3561e4 100644 --- a/paint/sources/make_sculpt.ts +++ b/paint/sources/make_sculpt.ts @@ -81,10 +81,10 @@ function sculpt_make_sculpt_run(data: material_t, matcon: material_context_t): n kong, "var wposition: float3 = (constants.W * texpaint_sculpt_undo[uint2(uint(tex_coord.x * 2048.0), uint(tex_coord.y * 2048.0))]).xyz;"); } - parser_material_parse_height = true; + parser_material_parse_height = true; parser_material_parse_height_as_channel = true; - let sout: shader_out_t = parser_material_parse(context_raw.material.canvas, con_paint, kong, matcon); - let height: string = sout.out_height; + let sout: shader_out_t = parser_material_parse(context_raw.material.canvas, con_paint, kong, matcon); + let height: string = sout.out_height; node_shader_write_frag(kong, "var height: float = " + height + ";"); if (kong.frag_bposition) {