Fix T81834: Images not properly duplicated in node_shader_utils

Oversight in fb10eaf6e8
This commit is contained in:
Campbell Barton 2021-01-27 18:16:02 +11:00
parent fb10eaf6e8
commit 4b7b4efd5b
Notes: blender-bot 2023-02-14 09:03:55 +01:00
Referenced by issue #81834, Image data not properly duplicated in node_shader_utils.py
1 changed files with 1 additions and 1 deletions

View File

@ -702,7 +702,7 @@ class ShaderImageTextureWrapper():
image = image.copy()
image.colorspace_settings.is_data = self.colorspace_is_data
if self.colorspace_name is not ...:
if image.colorspace_settings.is_data != self.colorspace_is_data and image.users >= 1:
if image.colorspace_settings.name != self.colorspace_name and image.users >= 1:
image = image.copy()
image.colorspace_settings.name = self.colorspace_name
if self.use_alpha: