Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2016-02-19 22:55:16 +0300
committerCampbell Barton <ideasman42@gmail.com>2016-02-19 22:58:03 +0300
commitb5b156f08973a5130d68788da9860747f7e459c8 (patch)
treec8575685ea7fc220264405b171c2d2eb49b8a8eb /source/blender/editors/space_api
parentaed2a97a869b2c437cccafd12d398b740c5c68f2 (diff)
Set line-width, point size when running callbacks
Since 2.76 Blender no longer resets these after use, this may break add-ons, so reset before calling region callbacks.
Diffstat (limited to 'source/blender/editors/space_api')
-rw-r--r--source/blender/editors/space_api/spacetypes.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/blender/editors/space_api/spacetypes.c b/source/blender/editors/space_api/spacetypes.c
index 01f0d1ae54f..590bf5d702e 100644
--- a/source/blender/editors/space_api/spacetypes.c
+++ b/source/blender/editors/space_api/spacetypes.c
@@ -249,8 +249,10 @@ void ED_region_draw_cb_draw(const bContext *C, ARegion *ar, int type)
RegionDrawCB *rdc;
for (rdc = ar->type->drawcalls.first; rdc; rdc = rdc->next) {
- if (rdc->type == type)
+ if (rdc->type == type) {
+ UI_reinit_gl_state();
rdc->draw(C, ar, rdc->customdata);
+ }
}
}