From 1478d5676b634a1953f98014a547320ac9dd99ad Mon Sep 17 00:00:00 2001 From: Grillo del Mal Date: Sun, 4 Feb 2024 16:06:01 -0300 Subject: [PATCH] Change icons for Drag mode and Flow Mode --- source/creator/viewport/common/mesheditor/tools/brush.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/creator/viewport/common/mesheditor/tools/brush.d b/source/creator/viewport/common/mesheditor/tools/brush.d index d76d0debc..f0442aa15 100644 --- a/source/creator/viewport/common/mesheditor/tools/brush.d +++ b/source/creator/viewport/common/mesheditor/tools/brush.d @@ -226,7 +226,7 @@ class ToolInfoImpl(T: BrushTool) : ToolInfoBase!(T) { igPushStyleVar(ImGuiStyleVar.WindowPadding, ImVec2(4, 4)); auto brushTool = cast(BrushTool)(editors.length == 0 ? null: editors.values()[0].getTool()); igBeginGroup(); - if (incButtonColored("", ImVec2(0, 0), (brushTool !is null && !brushTool.getFlow())? ImVec4.init : ImVec4(0.6, 0.6, 0.6, 1))) { // path definition + if (incButtonColored("", ImVec2(0, 0), (brushTool !is null && !brushTool.getFlow())? ImVec4.init : ImVec4(0.6, 0.6, 0.6, 1))) { // path definition foreach (e; editors) { auto bt = cast(BrushTool)(e.getTool()); if (bt) @@ -236,7 +236,7 @@ class ToolInfoImpl(T: BrushTool) : ToolInfoBase!(T) { incTooltip(_("Drag mode")); igSameLine(0, 0); - if (incButtonColored("", ImVec2(0, 0), (brushTool !is null && brushTool.getFlow())? ImVec4.init : ImVec4(0.6, 0.6, 0.6, 1))) { // path definition + if (incButtonColored("", ImVec2(0, 0), (brushTool !is null && brushTool.getFlow())? ImVec4.init : ImVec4(0.6, 0.6, 0.6, 1))) { // path definition foreach (e; editors) { auto bt = cast(BrushTool)(e.getTool()); if (bt)