[Bf-blender-cvs] [cc1daa9b766] master: Cleanup: quiet nonnull-compare warning for GCC
Campbell Barton
noreply at git.blender.org
Wed Aug 3 23:55:31 CEST 2022
Commit: cc1daa9b766debbd79c1e6246f73a324039fc244
Author: Campbell Barton
Date: Thu Aug 4 07:31:42 2022 +1000
Branches: master
https://developer.blender.org/rBcc1daa9b766debbd79c1e6246f73a324039fc244
Cleanup: quiet nonnull-compare warning for GCC
All callers ensure this is not NULL.
===================================================================
M source/blender/blenkernel/intern/image.cc
===================================================================
diff --git a/source/blender/blenkernel/intern/image.cc b/source/blender/blenkernel/intern/image.cc
index 02545f73810..8af696b0088 100644
--- a/source/blender/blenkernel/intern/image.cc
+++ b/source/blender/blenkernel/intern/image.cc
@@ -917,7 +917,7 @@ int BKE_image_find_nearest_tile_with_offset(const Image *image,
zero_v2(r_uv_offset);
int tile_number_best = -1;
- if (!image || image->source != IMA_SRC_TILED) {
+ if (image->source != IMA_SRC_TILED) {
return tile_number_best;
}
More information about the Bf-blender-cvs
mailing list