paint: cleanup

This commit is contained in:
luboslenco
2026-06-08 11:31:49 +02:00
parent 46973caf8e
commit 75f65da692
46 changed files with 4426 additions and 4288 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ void render_gizmo_update() {
bool is_decal = base_is_decal_layer();
object_t *gizmo = g_context->gizmo;
bool hide = operator_shortcut(any_map_get(config_keymap, "stencil_hide"), SHORTCUT_TYPE_DOWN);
bool hide = operator_shortcut(any_map_get(g_keymap, "stencil_hide"), SHORTCUT_TYPE_DOWN);
gizmo->visible = (is_object || is_decal) && !hide && g_config->workspace != WORKSPACE_PLAYER;
if (!gizmo->visible) {
return;
+1 -1
View File
@@ -453,7 +453,7 @@ void render_path_base_draw_gbuffer() {
render_path_draw_meshes("depth");
}
bool hide = operator_shortcut(any_map_get(config_keymap, "stencil_hide"), SHORTCUT_TYPE_DOWN) || keyboard_down("control");
bool hide = operator_shortcut(any_map_get(g_keymap, "stencil_hide"), SHORTCUT_TYPE_DOWN) || keyboard_down("control");
bool is_decal = base_is_decal_layer();
if (is_decal && !hide) {
line_draw_color = 0xff000000;
+4 -1
View File
@@ -622,7 +622,7 @@ void render_path_paint_commands_live_brush() {
i32 _pdirty = g_context->pdirty;
g_context->last_paint_vec_x = g_context->paint_vec.x;
g_context->last_paint_vec_y = g_context->paint_vec.y;
if (operator_shortcut(any_map_get(config_keymap, "brush_ruler"), SHORTCUT_TYPE_STARTED)) {
if (operator_shortcut(any_map_get(g_keymap, "brush_ruler"), SHORTCUT_TYPE_STARTED)) {
g_context->last_paint_vec_x = g_context->last_paint_x;
g_context->last_paint_vec_y = g_context->last_paint_y;
}
@@ -827,6 +827,9 @@ void render_path_paint_end() {
g_context->ddirty--;
g_context->rdirty--;
g_context->last_paint_vec_x = g_context->paint_vec.x;
g_context->last_paint_vec_y = g_context->paint_vec.y;
if (!render_path_paint_paint_enabled()) {
return;
}