Fixed issue #902.

This commit is contained in:
Branimir Karadžić
2016-09-06 19:13:13 -07:00
parent 0acb371d61
commit b49fb810ff
2 changed files with 2 additions and 2 deletions

View File

@@ -1268,7 +1268,7 @@ namespace ImGuizmo
float validScale[3];
for (int i = 0; i < 3; i++)
{
if (fabsf(scale[i] < FLT_EPSILON))
if (fabsf(scale[i]) < FLT_EPSILON)
validScale[i] = 0.001f;
else
validScale[i] = scale[i];

View File

@@ -570,7 +570,7 @@ void drawThumbnails(struct NVGcontext* vg, float x, float y, float w, float h, c
ix = -(iw-thumb)*0.5f;
iy = 0;
}
imgPaint = nvgImagePattern(vg, tx+ix, ty+iy, iw,ih, 0.0f/180.0f*NVG_PI, images[i], 0);
imgPaint = nvgImagePattern(vg, tx+ix, ty+iy, iw,ih, 0.0f/180.0f*NVG_PI, images[i], 1.0f);
nvgBeginPath(vg);
nvgRoundedRect(vg, tx,ty, thumb,thumb, 5);
nvgFillPaint(vg, imgPaint);