2.5 UI scripts:
* Removed some unused code.
This commit is contained in:
		| @@ -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) | ||||
|   | ||||
| @@ -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) | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -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 | ||||
|  | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
| @@ -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'): | ||||
|   | ||||
| @@ -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") | ||||
|   | ||||
		Reference in New Issue
	
	Block a user