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:
authorDalai Felinto <dfelinto@gmail.com>2017-02-15 21:28:46 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-15 21:29:09 +0300
commit45bebbf5ad0190e6468ce12fe7c08b4e1439bd47 (patch)
tree4cf1903ca96091549aa50f574200aaaa8e5bbfba /release
parent5a10c64e8cc6525f24ce6ac05a2c7d50aa16fb8f (diff)
Remove "Object List" panel from collection context tab
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_collection.py34
1 files changed, 1 insertions, 33 deletions
diff --git a/release/scripts/startup/bl_ui/properties_collection.py b/release/scripts/startup/bl_ui/properties_collection.py
index 95401c016e6..1e7bf9416a7 100644
--- a/release/scripts/startup/bl_ui/properties_collection.py
+++ b/release/scripts/startup/bl_ui/properties_collection.py
@@ -18,7 +18,7 @@
# <pep8 compliant>
import bpy
-from bpy.types import Panel, UIList
+from bpy.types import Panel
class CollectionButtonsPanel:
@@ -43,38 +43,6 @@ class COLLECTION_PT_context_collection(CollectionButtonsPanel, Panel):
layout.prop(collection, "name", text="", icon='COLLAPSEMENU')
-class COLLECTION_UL_objects(UIList):
- def draw_item(self, context, layout, data, item, icon, active_data, active_propname, index):
- # assert(isinstance(item, bpy.types.Object)
- ob = item
- if self.layout_type in {'DEFAULT', 'COMPACT'}:
- layout.label(ob.name, icon_value=icon)
-
- elif self.layout_type == 'GRID':
- layout.alignment = 'CENTER'
- layout.label("", icon_value=icon)
-
-
-class COLLECTION_PT_objects(CollectionButtonsPanel, Panel):
- bl_label = "Objects"
-
- def draw(self, context):
- layout = self.layout
- scene = context.scene
- collection = context.scene_collection
-
- row = layout.row()
- row.template_list("COLLECTION_UL_objects", "name", collection, "objects", collection.objects, "active_index", rows=2)
-
- col = row.column(align=True)
- col.operator("outliner.collections_objects_add", icon='ZOOMIN', text="")
- col.operator("outliner.collections_objects_remove", icon='ZOOMOUT', text="")
-
- row = layout.row(align=True)
- row.operator("outliner.collections_objects_select", text="Select")
- row.operator("outliner.collections_objects_deselect", text="Deselect")
-
-
def template_engine_settings(col, settings, name, use_icon_view=False):
icons = {
False: 'ZOOMIN',