diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-09-11 09:35:05 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-09-11 09:35:05 +0300 |
commit | 4212b6528afb07d9b2962566ae9c4251282d387f (patch) | |
tree | 39038c31aa6a7ea9e08845a9ed15bba79f8729b9 /source/blender/editors/space_image | |
parent | d6525e8d133b787655bdb2c2fcef218591a457c3 (diff) |
Image Editor: Enable New Drawing
This patch reverses use draw manager for image editor the
experimental feature. Now the new drawing is enabled by default.
Inside the experimental tab in the user preferences there is now an
option to revert back to the old drawing method.
Using this option we can easilly check if all drawing features have been
migrated over. The plan is to remove the legacy drawing before BCon 3.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r-- | source/blender/editors/space_image/space_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/space_image.c b/source/blender/editors/space_image/space_image.c index 032196b33bd..f1becd5f027 100644 --- a/source/blender/editors/space_image/space_image.c +++ b/source/blender/editors/space_image/space_image.c @@ -666,7 +666,7 @@ static void image_main_region_draw(const bContext *C, ARegion *region) } /* we draw image in pixelspace */ - if (U.experimental.use_drw_image_editor) { + if (!U.experimental.use_image_editor_legacy_drawing) { DRW_draw_view(C); draw_image_main_helpers(C, region); @@ -750,7 +750,7 @@ static void image_main_region_draw(const bContext *C, ARegion *region) C); } - if ((show_uvedit || mask || show_curve) && !U.experimental.use_drw_image_editor) { + if ((show_uvedit || mask || show_curve) && U.experimental.use_image_editor_legacy_drawing) { UI_view2d_view_ortho(v2d); ED_image_draw_cursor(region, sima->cursor); UI_view2d_view_restore(C); |