diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-01-09 09:50:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-01-09 09:50:52 +0300 |
commit | f681e9ea4988940e0d23ec818f21f3af5e9a7222 (patch) | |
tree | 12f36e602fde408f95c5d0bfc015766469aa0373 /source/blender/editors/include/ED_uvedit.h | |
parent | ce5a5b553d382f269e35d12d1ff9f92be8190a34 (diff) |
Fix UV gizmos poll failing with multiple objects
Only the active objects UV selection was checked.
This also avoids checking UV selection for every poll call,
now this is only done on refresh.
Diffstat (limited to 'source/blender/editors/include/ED_uvedit.h')
-rw-r--r-- | source/blender/editors/include/ED_uvedit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/include/ED_uvedit.h b/source/blender/editors/include/ED_uvedit.h index 1debdee53e9..c912778afd8 100644 --- a/source/blender/editors/include/ED_uvedit.h +++ b/source/blender/editors/include/ED_uvedit.h @@ -65,6 +65,12 @@ bool ED_uvedit_center_multi(const struct Scene *scene, float r_cent[2], char mode); +bool ED_uvedit_center_from_pivot_ex(struct SpaceImage *sima, + struct Scene *scene, + struct ViewLayer *view_layer, + float r_center[2], + char mode, + bool *r_has_select); bool ED_uvedit_center_from_pivot(struct SpaceImage *sima, struct Scene *scene, struct ViewLayer *view_layer, |