diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-01-15 16:06:39 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-01-15 16:16:54 +0300 |
commit | 7ba07b7e64c884bf69aa3c31d771e0275d39c1c3 (patch) | |
tree | e2da831e166f213ebb381f3d196da7370726f912 /source/blender/editors/manipulator_library/manipulator_types | |
parent | 5cb43b0f2037c903c635609c75ebf0c3a23ad146 (diff) |
GPU_batch_from_poly_2d_encoded: optional rctf arg
Also use compiler attributes
Diffstat (limited to 'source/blender/editors/manipulator_library/manipulator_types')
-rw-r--r-- | source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c b/source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c index 6d5b6332ec5..a60204b5f0a 100644 --- a/source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c +++ b/source/blender/editors/manipulator_library/manipulator_types/button2d_manipulator.c @@ -114,7 +114,7 @@ static void button2d_draw_intern( /* We shouldn't need the +1, but a NULL char is set. */ char *polys = MEM_mallocN(polys_len + 1, __func__); RNA_property_string_get(mpr->ptr, prop, polys); - button->shape_batch = GPU_batch_from_poly_2d_encoded((uchar *)polys, polys_len, -1.0f, 1.0f); + button->shape_batch = GPU_batch_from_poly_2d_encoded((uchar *)polys, polys_len, NULL); MEM_freeN(polys); } } |