forked from bartvdbraak/blender
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.
This commit is contained in:
parent
13d829e57d
commit
a798623fff
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user