diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-27 10:16:02 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-27 10:16:02 +0300 |
commit | 4b7b4efd5be6c2c06f6f257c07f429aede7ddc0f (patch) | |
tree | c3de362a95175d2755b49a27f50323ef2e5fb1e9 /release/scripts/modules | |
parent | fb10eaf6e8a4f959cd5d46fd1bb7e8fb26b67205 (diff) |
Fix T81834: Images not properly duplicated in node_shader_utils
Oversight in fb10eaf6e8a4f959cd5d46fd1bb7e8fb26b67205
Diffstat (limited to 'release/scripts/modules')
-rw-r--r-- | release/scripts/modules/bpy_extras/node_shader_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/release/scripts/modules/bpy_extras/node_shader_utils.py b/release/scripts/modules/bpy_extras/node_shader_utils.py index 161560f7f05..54124fd4ca6 100644 --- a/release/scripts/modules/bpy_extras/node_shader_utils.py +++ b/release/scripts/modules/bpy_extras/node_shader_utils.py @@ -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: |