diff options
author | Greg <gregzzmail@gmail.com> | 2016-08-11 13:34:16 +0300 |
---|---|---|
committer | Greg <gregzzmail@gmail.com> | 2016-08-11 13:34:16 +0300 |
commit | 1fd72d85570b06de50fa6a9a922b67d787dac15b (patch) | |
tree | 49be3b8ade430c63c8c233d3c28c3841802047c3 | |
parent | c3b04a94d760fe72e193578ed1f2eb110e9e4f87 (diff) |
Node Wrangler: Check if viewer node exists
-rw-r--r-- | node_wrangler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node_wrangler.py b/node_wrangler.py index 491058c1..b6a7b437 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -3192,7 +3192,7 @@ class NWSaveViewer(bpy.types.Operator, ExportHelper): @classmethod def poll(cls, context): - return nw_check(context) and context.space_data.tree_type == 'CompositorNodeTree' + return nw_check(context) and context.space_data.tree_type == 'CompositorNodeTree' and "Viewer Node" in [i.name for i in bpy.data.images] def execute(self, context): fp = self.filepath |