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

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2011-02-28 17:25:40 +0300
committerThomas Dinges <blender@dingto.org>2011-02-28 17:25:40 +0300
commitcbf976e7a6af956506ed5d28ffb91f11125c132c (patch)
treee9a657399797ab855801a594d9e7cc17afe413bc /release/scripts/ui
parent82b21ba1663b253b4bde318599eedd062b5e9f64 (diff)
2.5 UI scripts:
* Removed some unused code.
Diffstat (limited to 'release/scripts/ui')
-rw-r--r--release/scripts/ui/space_console.py2
-rw-r--r--release/scripts/ui/space_image.py4
-rw-r--r--release/scripts/ui/space_info.py2
-rw-r--r--release/scripts/ui/space_node.py3
-rw-r--r--release/scripts/ui/space_sequencer.py28
-rw-r--r--release/scripts/ui/space_time.py1
6 files changed, 0 insertions, 40 deletions
diff --git a/release/scripts/ui/space_console.py b/release/scripts/ui/space_console.py
index 035b48e36d5..7e75c05f603 100644
--- a/release/scripts/ui/space_console.py
+++ b/release/scripts/ui/space_console.py
@@ -25,8 +25,6 @@ class CONSOLE_HT_header(bpy.types.Header):
bl_space_type = 'CONSOLE'
def draw(self, context):
- # sc = context.space_data
- # text = sc.text
layout = self.layout
row = layout.row(align=True)
diff --git a/release/scripts/ui/space_image.py b/release/scripts/ui/space_image.py
index 7960336c9e7..1927962d90b 100644
--- a/release/scripts/ui/space_image.py
+++ b/release/scripts/ui/space_image.py
@@ -425,7 +425,6 @@ class IMAGE_PT_image_properties(bpy.types.Panel):
layout = self.layout
sima = context.space_data
- # ima = sima.image
iuser = sima.image_user
layout.template_image(sima, "image", iuser)
@@ -684,10 +683,7 @@ class IMAGE_PT_tools_brush_texture(BrushButtonsPanel, bpy.types.Panel):
toolsettings = context.tool_settings.image_paint
brush = toolsettings.brush
-# tex_slot = brush.texture_slot
-
col = layout.column()
-
col.template_ID_preview(brush, "texture", new="texture.new", rows=3, cols=8)
diff --git a/release/scripts/ui/space_info.py b/release/scripts/ui/space_info.py
index 57cd13c5420..0c7dabf7ae5 100644
--- a/release/scripts/ui/space_info.py
+++ b/release/scripts/ui/space_info.py
@@ -326,8 +326,6 @@ class INFO_MT_render(bpy.types.Menu):
def draw(self, context):
layout = self.layout
- # rd = context.scene.render
-
layout.operator("render.render", text="Render Image", icon='RENDER_STILL')
layout.operator("render.render", text="Render Animation", icon='RENDER_ANIMATION').animation = True
diff --git a/release/scripts/ui/space_node.py b/release/scripts/ui/space_node.py
index aaf14813ee5..1076b13c28e 100644
--- a/release/scripts/ui/space_node.py
+++ b/release/scripts/ui/space_node.py
@@ -156,9 +156,6 @@ class NODE_MT_node(bpy.types.Menu):
layout.operator("node.preview_toggle")
layout.operator("node.hide_socket_toggle")
- # XXX
- # layout.operator("node.rename")
-
layout.separator()
layout.operator("node.show_cyclic_dependencies")
diff --git a/release/scripts/ui/space_sequencer.py b/release/scripts/ui/space_sequencer.py
index 937ccf6a8a3..c9a9a639860 100644
--- a/release/scripts/ui/space_sequencer.py
+++ b/release/scripts/ui/space_sequencer.py
@@ -101,34 +101,6 @@ class SEQUENCER_MT_view(bpy.types.Menu):
layout.separator()
- """
- uiBlock *block= uiBeginBlock(C, ar, "seq_viewmenu", UI_EMBOSSP);
- short yco= 0, menuwidth=120;
-
- if (sseq->mainb == SEQ_DRAW_SEQUENCE) {
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Play Back Animation "
- "in all Sequence Areas|Alt A", 0, yco-=20,
- menuwidth, 19, NULL, 0.0, 0.0, 1, 1, "");
- }
- else {
- uiDefIconTextBut(block, BUTM, 1, ICON_MENU_PANEL,
- "Grease Pencil...", 0, yco-=20,
- menuwidth, 19, NULL, 0.0, 0.0, 1, 7, "");
- uiDefMenuSep(block);
-
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Play Back Animation "
- "in this window|Alt A", 0, yco-=20,
- menuwidth, 19, NULL, 0.0, 0.0, 1, 1, "");
- }
- uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1,
- "Play Back Animation in all "
- "3D Views and Sequence Areas|Alt Shift A",
- 0, yco-=20,
- menuwidth, 19, NULL, 0.0, 0.0, 1, 2, "");
-
- """
if (st.view_type == 'SEQUENCER') or (st.view_type == 'SEQUENCER_PREVIEW'):
layout.operator("sequencer.view_all", text='View all Sequences')
if (st.view_type == 'PREVIEW') or (st.view_type == 'SEQUENCER_PREVIEW'):
diff --git a/release/scripts/ui/space_time.py b/release/scripts/ui/space_time.py
index 046274abc89..ba10c370389 100644
--- a/release/scripts/ui/space_time.py
+++ b/release/scripts/ui/space_time.py
@@ -141,7 +141,6 @@ class TIME_MT_frame(bpy.types.Menu):
def draw(self, context):
layout = self.layout
- # tools = context.tool_settings
layout.operator("marker.add", text="Add Marker")
layout.operator("marker.duplicate", text="Duplicate Marker")