[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [35263] trunk/blender/release/scripts/ui: 2.5 UI scripts:

Thomas Dinges blender at dingto.de
Mon Feb 28 15:25:40 CET 2011


Revision: 35263
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=35263
Author:   dingto
Date:     2011-02-28 14:25:40 +0000 (Mon, 28 Feb 2011)
Log Message:
-----------
2.5 UI scripts:
* Removed some unused code. 

Modified Paths:
--------------
    trunk/blender/release/scripts/ui/space_console.py
    trunk/blender/release/scripts/ui/space_image.py
    trunk/blender/release/scripts/ui/space_info.py
    trunk/blender/release/scripts/ui/space_node.py
    trunk/blender/release/scripts/ui/space_sequencer.py
    trunk/blender/release/scripts/ui/space_time.py

Modified: trunk/blender/release/scripts/ui/space_console.py
===================================================================
--- trunk/blender/release/scripts/ui/space_console.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_console.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -25,8 +25,6 @@
     bl_space_type = 'CONSOLE'
 
     def draw(self, context):
-        # sc = context.space_data
-        # text = sc.text
         layout = self.layout
 
         row = layout.row(align=True)

Modified: trunk/blender/release/scripts/ui/space_image.py
===================================================================
--- trunk/blender/release/scripts/ui/space_image.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_image.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -425,7 +425,6 @@
         layout = self.layout
 
         sima = context.space_data
-        # ima = sima.image
         iuser = sima.image_user
 
         layout.template_image(sima, "image", iuser)
@@ -684,10 +683,7 @@
         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)
 
 

Modified: trunk/blender/release/scripts/ui/space_info.py
===================================================================
--- trunk/blender/release/scripts/ui/space_info.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_info.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -326,8 +326,6 @@
     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
 

Modified: trunk/blender/release/scripts/ui/space_node.py
===================================================================
--- trunk/blender/release/scripts/ui/space_node.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_node.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -156,9 +156,6 @@
         layout.operator("node.preview_toggle")
         layout.operator("node.hide_socket_toggle")
 
-        # XXX
-        # layout.operator("node.rename")
-
         layout.separator()
 
         layout.operator("node.show_cyclic_dependencies")

Modified: trunk/blender/release/scripts/ui/space_sequencer.py
===================================================================
--- trunk/blender/release/scripts/ui/space_sequencer.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_sequencer.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -101,34 +101,6 @@
 
         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'):

Modified: trunk/blender/release/scripts/ui/space_time.py
===================================================================
--- trunk/blender/release/scripts/ui/space_time.py	2011-02-28 14:24:52 UTC (rev 35262)
+++ trunk/blender/release/scripts/ui/space_time.py	2011-02-28 14:25:40 UTC (rev 35263)
@@ -141,7 +141,6 @@
 
     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")




More information about the Bf-blender-cvs mailing list