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-02-18 17:22:02 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-18 18:38:17 +0300
commit286c34b4abb0436fb370c8d49fd73738dabc0fcf (patch)
tree270d6811a708e5466bdf91640d1c78ba29016545 /source/blender/blenkernel/intern/bpath.c
parenta6443b5d1ed600c953ffffe91a62ded77631bbb7 (diff)
Fix image filepath changes not refreshing all image users.
Diffstat (limited to 'source/blender/blenkernel/intern/bpath.c')
-rw-r--r--source/blender/blenkernel/intern/bpath.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c
index de4ef8bdcb4..e85cb700bce 100644
--- a/source/blender/blenkernel/intern/bpath.c
+++ b/source/blender/blenkernel/intern/bpath.c
@@ -411,13 +411,6 @@ static bool rewrite_path_alloc(char **path, BPathVisitor visit_cb, const char *a
}
}
-/* fix the image user "ok" tag after updating paths, so ImBufs get loaded */
-static void bpath_traverse_image_user_cb(Image *ima, ImageUser *iuser, void *customdata)
-{
- if (ima == customdata)
- iuser->ok = 1;
-}
-
/* Run visitor function 'visit' on all paths contained in 'id'. */
void BKE_bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int flag, void *bpath_user_data)
{
@@ -441,7 +434,6 @@ void BKE_bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int
!BKE_image_is_dirty(ima))
{
BKE_image_signal(bmain, ima, NULL, IMA_SIGNAL_RELOAD);
- BKE_image_walk_all_users(bmain, ima, bpath_traverse_image_user_cb);
}
}
}