diff options
author | Thomas Dinges <blender@dingto.org> | 2011-01-31 19:16:15 +0300 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2011-01-31 19:16:15 +0300 |
commit | 05034fb91f32d1b0723b7a6586f854a00980083c (patch) | |
tree | 5500ef1f9df611733c3757324f9cb616f5df18c3 /release | |
parent | fefe3daf24e79800415f9f0d7374a0a31b8493c6 (diff) |
Node UI:
* Added Backdrop Panel inside the "Properties" area.
* Hard limit for the "zoom" value. Negative values doesn't make sense.
* Added a missing notifier for the Node backdrop move operator.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/ui/space_node.py | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/release/scripts/ui/space_node.py b/release/scripts/ui/space_node.py index e7cfdb2688d..56790add025 100644 --- a/release/scripts/ui/space_node.py +++ b/release/scripts/ui/space_node.py @@ -161,6 +161,36 @@ class NODE_MT_node(bpy.types.Menu): layout.separator() layout.operator("node.show_cyclic_dependencies") + + +# Node Backdrop options +class NODE_PT_properties(bpy.types.Panel): + bl_space_type = 'NODE_EDITOR' + bl_region_type = 'UI' + bl_label = "Backdrop" + + @classmethod + def poll(cls, context): + snode = context.space_data + return snode.tree_type == 'COMPOSITING' + + def draw_header(self, context): + snode = context.space_data + self.layout.prop(snode, "show_backdrop", text="") + + def draw(self, context): + layout = self.layout + + snode = context.space_data + layout.active = snode.show_backdrop + layout.prop(snode, "backdrop_channels", text="") + layout.prop(snode, "backdrop_zoom", text="Zoom") + + col = layout.column(align=True) + col.label(text="Offset:") + col.prop(snode, "backdrop_x", text="X") + col.prop(snode, "backdrop_y", text="Y") + col.operator("node.backimage_move", text="Move") def register(): |