Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'amaranth/node_editor/display_image.py')
-rw-r--r--amaranth/node_editor/display_image.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/amaranth/node_editor/display_image.py b/amaranth/node_editor/display_image.py
index 380166a9..77b081b2 100644
--- a/amaranth/node_editor/display_image.py
+++ b/amaranth/node_editor/display_image.py
@@ -26,9 +26,13 @@ image_nodes = ("CompositorNodeRLayers",
class AMTH_NODE_OT_show_active_node_image(bpy.types.Operator):
"""Show active image node image in the image editor"""
bl_idname = "node.show_active_node_image"
- bl_label = "Show Active Node Node"
+ bl_label = "Preview Image from Node"
bl_options = {"UNDO"}
+ @classmethod
+ def poll(cls, context):
+ return context.active_node is not None
+
def execute(self, context):
return {'FINISHED'}