Skip to content
Snippets Groups Projects
Commit 9ecf73f7 authored by Antony Riakiotakis's avatar Antony Riakiotakis
Browse files

Follow up to the offset scale fix for texture painting: texture mask had

the same issue.
parent 976fd680
No related branches found
No related tags found
No related merge requests found
......@@ -684,11 +684,8 @@ float BKE_brush_sample_masktex(const Scene *scene, Brush *br,
x /= (br->mask_stencil_dimension[0]);
y /= (br->mask_stencil_dimension[1]);
x *= mtex->size[0];
y *= mtex->size[1];
co[0] = x + mtex->ofs[0];
co[1] = y + mtex->ofs[1];
co[0] = x;
co[1] = y;
co[2] = 0.0f;
externtex(mtex, co, &intensity,
......@@ -744,11 +741,8 @@ float BKE_brush_sample_masktex(const Scene *scene, Brush *br,
y = flen * sinf(angle);
}
x *= mtex->size[0];
y *= mtex->size[1];
co[0] = x + mtex->ofs[0];
co[1] = y + mtex->ofs[1];
co[0] = x;
co[1] = y;
co[2] = 0.0f;
externtex(mtex, co, &intensity,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment