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:
authorJoshua Leung <aligorith@gmail.com>2012-10-13 05:19:23 +0400
committerJoshua Leung <aligorith@gmail.com>2012-10-13 05:19:23 +0400
commita798623fff69c992a14f73369876f75e59e7b4ca (patch)
treee21d510a4e4267d34a158bf13aa899629a849ebc /source/blender/editors/render
parent13d829e57db6b0bb6ab3c3551676a9fa3bcfd55c (diff)
Bugfix [#32865] Usercounts for World Textures not decremented after preview
render When adjusting settings for world textures (with Both/World preview modes), every tweak would result in the usercount of the texture increasing. As a result, before long the texture would claim to have over 100 users. Fortunately, this only appeared to be just a cosmetic issue (i.e. no real memory leak here), though it was a bit unsettling. NOTE: this is still a bit glitchy, as now we have flickering when updating texture settings - the texture still temporarily has a second user during preview rendering.
Diffstat (limited to 'source/blender/editors/render')
-rw-r--r--source/blender/editors/render/render_preview.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/render/render_preview.c b/source/blender/editors/render/render_preview.c
index 96276d5eb1b..694d2302fbd 100644
--- a/source/blender/editors/render/render_preview.c
+++ b/source/blender/editors/render/render_preview.c
@@ -809,7 +809,7 @@ static void shader_preview_free(void *customdata)
/* get rid of copied world */
BLI_remlink(&pr_main->world, sp->worldcopy);
- BKE_world_free_ex(sp->worldcopy, FALSE);
+ BKE_world_free_ex(sp->worldcopy, TRUE); /* [#32865] - we need to unlink the texture copies, unlike for materials */
properties = IDP_GetProperties((ID *)sp->worldcopy, FALSE);
if (properties) {