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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-19 18:49:39 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-06-19 18:49:39 +0300
commitccf06c1ff218971d6844b7a8e6ad021cdc90ea3d (patch)
tree00e4dcd76a3c02a8d6f3fc6f2eaaadca7555ac2f /source/blender/blenkernel/intern/image.c
parentda68f3163030a1858f530e25561f60bdfd7deaf1 (diff)
Fix T65780: unnecessary GPU image texture reloads after recent changes
Diffstat (limited to 'source/blender/blenkernel/intern/image.c')
-rw-r--r--source/blender/blenkernel/intern/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/image.c b/source/blender/blenkernel/intern/image.c
index b90cd9f15f8..5c23987a8d9 100644
--- a/source/blender/blenkernel/intern/image.c
+++ b/source/blender/blenkernel/intern/image.c
@@ -4812,7 +4812,7 @@ void BKE_image_user_frame_calc(Image *ima, ImageUser *iuser, int cfra)
iuser->framenr = framenr;
- if (ima && ima->gpuframenr != framenr) {
+ if (ima && BKE_image_is_animated(ima) && ima->gpuframenr != framenr) {
/* Note: a single texture and refresh doesn't really work when
* multiple image users may use different frames, this is to
* be improved with perhaps a GPU texture cache. */