diff options
Diffstat (limited to 'release/scripts/modules/bpy_extras')
-rw-r--r-- | release/scripts/modules/bpy_extras/node_shader_utils.py | 13 |
1 files changed, 12 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 e97eac0a9e6..89e3585e621 100644 --- a/release/scripts/modules/bpy_extras/node_shader_utils.py +++ b/release/scripts/modules/bpy_extras/node_shader_utils.py @@ -94,7 +94,8 @@ class ShaderWrapper(): def __init__(self, material, is_readonly=True, use_nodes=True): self.is_readonly = is_readonly self.material = material - self.use_nodes = use_nodes + if not is_readonly: + self.use_nodes = use_nodes self.update() def update(self): # Should be re-implemented by children classes... @@ -653,6 +654,16 @@ class ShaderImageTextureWrapper(): texcoords = property(texcoords_get, texcoords_set) + def extension_get(self): + return self.node_image.extension if self.node_image is not None else 'REPEAT' + + @_set_check + def extension_set(self, extension): + self.node_image.extension = extension + + extension = property(extension_get, extension_set) + + # -------------------------------------------------------------------- # Mapping. |