[Bf-extensions-cvs] [1fd72d8] master: Node Wrangler: Check if viewer node exists
Greg
noreply at git.blender.org
Thu Aug 11 12:36:08 CEST 2016
Commit: 1fd72d85570b06de50fa6a9a922b67d787dac15b
Author: Greg
Date: Thu Aug 11 12:34:16 2016 +0200
Branches: master
https://developer.blender.org/rBA1fd72d85570b06de50fa6a9a922b67d787dac15b
Node Wrangler: Check if viewer node exists
===================================================================
M node_wrangler.py
===================================================================
diff --git a/node_wrangler.py b/node_wrangler.py
index 491058c..b6a7b43 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
More information about the Bf-extensions-cvs
mailing list