diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-10-02 23:31:58 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2010-10-02 23:31:58 +0400 |
commit | 77b75e23ba87122c78a361011e3fd09202ef85d8 (patch) | |
tree | 175b1246912fe300c1a5e2079995a370ec39da4b /source/blender/editors/space_image/image_buttons.c | |
parent | a6e78239424fa735fd71dd03a4c9501aa6635d9a (diff) |
Fix #22348: disabled image editor curves on non-float images, this never
worked correct, only got enabled accidentally in 2.5 port.
Diffstat (limited to 'source/blender/editors/space_image/image_buttons.c')
-rw-r--r-- | source/blender/editors/space_image/image_buttons.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_buttons.c b/source/blender/editors/space_image/image_buttons.c index 9871b75fa42..840d4943c56 100644 --- a/source/blender/editors/space_image/image_buttons.c +++ b/source/blender/editors/space_image/image_buttons.c @@ -303,8 +303,15 @@ static void image_editvertex_buts(const bContext *C, uiBlock *block) static int image_panel_poll(const bContext *C, PanelType *pt) { SpaceImage *sima= CTX_wm_space_image(C); + ImBuf *ibuf; + void *lock; + int result; + + ibuf= ED_space_image_acquire_buffer(sima, &lock); + result= ibuf && ibuf->rect_float; + ED_space_image_release_buffer(sima, lock); - return ED_space_image_has_buffer(sima); + return result; } static void image_panel_curves(const bContext *C, Panel *pa) |