diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-10-19 04:22:06 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-10-19 04:50:07 +0300 |
commit | b74f2c7d74dc18ab9afa105a2cfe547fabb42d57 (patch) | |
tree | 71f8f9e3cc325a06990b8638b3947ca2d6cd949e /source/blender/editors/space_image/image_edit.c | |
parent | a3457704fb63a59045b093dc4499b43f6676fabb (diff) |
Fix image cache margin calculation
This margin was inconsistently calculated: only taking the
visible region and interface scale into account in some cases.
Diffstat (limited to 'source/blender/editors/space_image/image_edit.c')
-rw-r--r-- | source/blender/editors/space_image/image_edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_image/image_edit.c b/source/blender/editors/space_image/image_edit.c index 594baf67aaf..c1aa2da9e00 100644 --- a/source/blender/editors/space_image/image_edit.c +++ b/source/blender/editors/space_image/image_edit.c @@ -52,7 +52,7 @@ #include "WM_types.h" /* NOTE: image_panel_properties() uses pointer to sima->image directly. */ -Image *ED_space_image(SpaceImage *sima) +Image *ED_space_image(const SpaceImage *sima) { return sima->image; } @@ -113,7 +113,7 @@ void ED_space_image_auto_set(const bContext *C, SpaceImage *sima) } } -Mask *ED_space_image_get_mask(SpaceImage *sima) +Mask *ED_space_image_get_mask(const SpaceImage *sima) { return sima->mask_info.mask; } |