diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-07-30 21:02:28 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-07-30 21:02:28 +0400 |
commit | b43699aa126db985033fd66d98658a7ab56cf5f7 (patch) | |
tree | e90e1320ac40d36d222dd5eb69c4e5fdfdbdc537 | |
parent | 82fc02fb48e6015373f3c5c1425ffc8b80b16a05 (diff) |
fix own mistake getting an image for the image open file selector.
-rw-r--r-- | source/blender/editors/space_image/image_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index d34f734c6c2..8376a0bf0d3 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -919,7 +919,7 @@ static int image_open_invoke(bContext *C, wmOperator *op, wmEvent *UNUSED(event) oldptr = RNA_property_pointer_get(&ptr, prop); oldima = (Image *)oldptr.id.data; /* unlikely to fail but better avoid strange crash */ - if (oldima && GS(oldima->id.name) != ID_IM) { + if (oldima && GS(oldima->id.name) == ID_IM) { ima = oldima; } } |