Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2012-07-30 21:02:28 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-07-30 21:02:28 +0400
commitb43699aa126db985033fd66d98658a7ab56cf5f7 (patch)
treee90e1320ac40d36d222dd5eb69c4e5fdfdbdc537 /source/blender/editors/space_image
parent82fc02fb48e6015373f3c5c1425ffc8b80b16a05 (diff)
fix own mistake getting an image for the image open file selector.
Diffstat (limited to 'source/blender/editors/space_image')
-rw-r--r--source/blender/editors/space_image/image_ops.c2
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;
}
}