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 20:37:59 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-02-15 21:29:09 +0300
commita428daada080771c75bb2003f60792dfea5f2121 (patch)
tree40430414b7032024e205e9f53c5e7e1c5c574cbd /release
parent883ef2c9cef5b25fb2da9233181e07cd2555c444 (diff)
Layers: Separate between scene render layer (F12) and context render layer (everything else)
For now they are the same. However with workspaces they will be different, and should be treated differently.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d.py68
1 files changed, 0 insertions, 68 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d.py b/release/scripts/startup/bl_ui/space_view3d.py
index f605712510a..9ed59d830e3 100644
--- a/release/scripts/startup/bl_ui/space_view3d.py
+++ b/release/scripts/startup/bl_ui/space_view3d.py
@@ -3146,74 +3146,6 @@ class VIEW3D_PT_viewport_debug(Panel):
col.row(align=True).prop(view, "debug_background", expand=True)
-class VIEW3D_PT_collections_editor(Panel):
- bl_space_type = 'VIEW_3D'
- bl_region_type = 'UI'
- bl_label = "Collections"
- bl_options = {'DEFAULT_CLOSED'}
-
- @classmethod
- def poll(cls, context):
- return context.space_data
-
- def draw(self, context):
- layout = self.layout
- layer = context.render_layer
- active_collection = context.layer_collection
-
- col = layout.column()
- box = col.box()
-
- index = -1
- for collection in layer.collections:
- index = self._draw_layer_collection(box, index, active_collection, collection, True, True)
-
- row = layout.row(align=True)
- row.operator("collections.collection_new", text="", icon='NEW')
- row.operator("collections.override_new", text="", icon='LINK_AREA')
- row.operator("collections.collection_link", text="", icon='LINKED')
- row.operator("collections.collection_unlink", text="", icon='UNLINKED')
- row.operator("collections.delete", text="", icon='X')
-
- def _draw_layer_collection(self, box, index, active_collection, collection, is_active, is_draw, depth=0):
- index += 1
- nested_collections = collection.collections
-
- if is_draw:
- row = box.row()
- row.active = is_active
- is_collection_selected = (collection == active_collection)
-
- if is_collection_selected:
- sub_box = row.box()
- row = sub_box.row()
-
- row.label(text="{0}{1}{2}".format(
- " " * depth,
- u'\u21b3 ' if depth else "",
- collection.name))
-
- row.prop(collection, "hide", text="", emboss=False)
- row.prop(collection, "hide_select", text="", emboss=False)
-
- row.operator("collections.select", text="", icon='BLANK1' if is_collection_selected else 'HAND', emboss=False).collection_index=index
-
- if nested_collections:
- row.prop(collection, "is_unfolded", text="", emboss=False)
- else:
- row.label(icon='BLANK1')
-
- if not collection.is_unfolded:
- is_draw = False
-
- is_active &= not collection.hide
-
- for nested_collection in nested_collections:
- index = self._draw_layer_collection(box, index, active_collection, nested_collection, is_active, is_draw, depth + 1)
-
- return index
-
-
class VIEW3D_PT_grease_pencil(GreasePencilDataPanel, Panel):
bl_space_type = 'VIEW_3D'
bl_region_type = 'UI'