diff options
author | Joshua Leung <aligorith@gmail.com> | 2012-10-13 05:19:23 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2012-10-13 05:19:23 +0400 |
commit | a798623fff69c992a14f73369876f75e59e7b4ca (patch) | |
tree | e21d510a4e4267d34a158bf13aa899629a849ebc /source | |
parent | 13d829e57db6b0bb6ab3c3551676a9fa3bcfd55c (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')
-rw-r--r-- | source/blender/editors/render/render_preview.c | 2 |
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) { |