Skip to content

Commit

Permalink
fixed drawBounds does not use oneTimeTransform (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
r888800009 authored Sep 14, 2024
1 parent 712f3ef commit 5fd7ea6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion source/inochi2d/core/nodes/drawable.d
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,10 @@ public:
vec3(bounds.x, bounds.y, 0),
]);
inDbgLineWidth(3);
inDbgDrawLines(vec4(.5, .5, .5, 1));
if (oneTimeTransform !is null)
inDbgDrawLines(vec4(.5, .5, .5, 1), (*oneTimeTransform));
else
inDbgDrawLines(vec4(.5, .5, .5, 1));
inDbgLineWidth(1);
}

Expand Down
5 changes: 4 additions & 1 deletion source/inochi2d/core/nodes/package.d
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,10 @@ public:
vec3(bounds.x, bounds.y, 0),
]);
inDbgLineWidth(3);
inDbgDrawLines(vec4(.5, .5, .5, 1));
if (oneTimeTransform !is null)
inDbgDrawLines(vec4(.5, .5, .5, 1), (*oneTimeTransform));
else
inDbgDrawLines(vec4(.5, .5, .5, 1));
inDbgLineWidth(1);
}

Expand Down

0 comments on commit 5fd7ea6

Please sign in to comment.