diff options
author | Campbell Barton <ideasman42@gmail.com> | 2018-10-01 01:45:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2018-10-01 02:20:32 +0300 |
commit | bda7a333a39b89964b0b79999e04a7b4723c5647 (patch) | |
tree | 4c552ca4cd7870b73300871fc058e6906c003ee9 | |
parent | 0256d8b4e2b80dfcf2e9d01f6c1644f9d24fcddd (diff) |
Cleanup: use tuple unpacking
-rw-r--r-- | release/scripts/modules/bpy_extras/node_shader_utils.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/release/scripts/modules/bpy_extras/node_shader_utils.py b/release/scripts/modules/bpy_extras/node_shader_utils.py index 0a61b03976c..456c38921a7 100644 --- a/release/scripts/modules/bpy_extras/node_shader_utils.py +++ b/release/scripts/modules/bpy_extras/node_shader_utils.py @@ -55,7 +55,8 @@ class ShaderWrapper(): "material", "_textures", "_grid_locations", - ) + NODES_LIST + *NODES_LIST, + ) _col_size = 300 _row_size = 300 @@ -143,7 +144,8 @@ class PrincipledBSDFWrapper(ShaderWrapper): __slots__ = ( "is_readonly", "material", - ) + NODES_LIST + *NODES_LIST, + ) NODES_LIST = ShaderWrapper.NODES_LIST + NODES_LIST @@ -439,7 +441,8 @@ class ShaderImageTextureWrapper(): "is_readonly", "grid_row_diff", "use_alpha", - ) + NODES_LIST + *NODES_LIST, + ) def __new__(cls, owner_shader: ShaderWrapper, node_dst, socket_dst, *args, **kwargs): instance = owner_shader._textures.get((node_dst, socket_dst), None) |