Skip to content

Commit

Permalink
Merge pull request #1 from grillo-delmal/brush-icons
Browse files Browse the repository at this point in the history
Change icons for Drag mode and Flow Mode
  • Loading branch information
seagetch authored Feb 5, 2024
2 parents 0152085 + 1478d56 commit 8cd41b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/creator/viewport/common/mesheditor/tools/brush.d
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,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)
Expand All @@ -256,7 +256,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)
Expand Down

0 comments on commit 8cd41b6

Please sign in to comment.