blender/release/scripts/modules
Dalai Felinto aeb8e81f27 Render Layers and Collections (merge from render-layers)
Design Documents
----------------

* https://wiki.blender.org/index.php/Dev:2.8/Source/Layers

* https://wiki.blender.org/index.php/Dev:2.8/Source/DataDesignRevised

User Commit Log
---------------

* New Layer and Collection system to replace render layers and viewport layers.

* A layer is a set of collections of objects (and their drawing options) required for specific tasks.

* A collection is a set of objects, equivalent of the old layers in Blender. A collection can be shared across multiple layers.

* All Scenes have a master collection that all other collections are children of.

* New collection "context" tab (in Properties Editor)

* New temporary viewport "collections" panel to control per-collection
visibility

Missing User Features
---------------------

* Collection "Filter"
  Option to add objects based on their names

* Collection Manager operators
  The existing buttons  are placeholders

* Collection Manager drawing
  The editor main region is empty

* Collection Override

* Per-Collection engine settings
  This will come as a separate commit, as part of the clay-engine branch

Dev Commit Log
--------------

* New DNA file (DNA_layer_types.h) with the new structs
  We are replacing Base by a new extended Base while keeping it backward
  compatible with some legacy settings (i.e., lay, flag_legacy).

  Renamed all Base to BaseLegacy to make it clear the areas of code that
  still need to be converted

  Note: manual changes were required on - deg_builder_nodes.h, rna_object.c, KX_Light.cpp

* Unittesting for main syncronization requirements
  - read, write, add/copy/remove objects, copy scene, collection
  link/unlinking, context)

* New Editor: Collection Manager
  Based on patch by Julian Eisel
  This is extracted from the layer-manager branch. With the following changes:

    - Renamed references of layer manager to collections manager

    - I doesn't include the editors/space_collections/ draw and util files

    - The drawing code itself will be implemented separately by Julian

* Base / Object:
  A little note about them. Original Blender code would try to keep them
  in sync through the code, juggling flags back and forth. This will now
  be handled by Depsgraph, keeping Object and Bases more separated
  throughout the non-rendering code.

  Scene.base is being cleared in doversion, and the old viewport drawing
  code was poorly converted to use the new bases while the new viewport
  code doesn't get merged and replace the old one.

Python API Changes
------------------

```
- scene.layers
+ # no longer exists

- scene.objects
+ scene.scene_layers.active.objects

- scene.objects.active
+ scene.render_layers.active.objects.active

- bpy.context.scene.objects.link()
+ bpy.context.scene_collection.objects.link()

- bpy_extras.object_utils.object_data_add(context, obdata, operator=None, use_active_layer=True, name=None)
+ bpy_extras.object_utils.object_data_add(context, obdata, operator=None, name=None)

- bpy.context.object.select
+ bpy.context.object.select = True
+ bpy.context.object.select = False
+ bpy.context.object.select_get()
+ bpy.context.object.select_set(action='SELECT')
+ bpy.context.object.select_set(action='DESELECT')

-AddObjectHelper.layers
+ # no longer exists
```
2017-02-07 11:11:00 +01:00
..
bl_i18n_utils Usual UI messages/i18n fixes/tweaks. 2016-12-14 10:56:21 +01:00
bl_previews_utils Fix T49423: Data Preview of group containing only group instances is empty. 2016-09-27 17:03:03 +02:00
bpy Fix T50052: bpy.utils.unregister_module doesn't unregister classes of submodules in reload scenario. 2016-11-18 15:15:46 +01:00
bpy_extras Render Layers and Collections (merge from render-layers) 2017-02-07 11:11:00 +01:00
console Cleanup: pep8 2016-07-30 09:00:41 +10:00
addon_utils.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
animsys_refactor.py Cleanup: remove redundant 'object' parent class 2014-10-28 18:42:06 +01:00
blend_render_info.py Small speedup for blend_render_info.py 2016-09-20 12:38:54 +02:00
bpy_restrict_state.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
bpy_types.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
bpyml_ui.py cleanup: pep8 2015-01-29 15:35:06 +11:00
bpyml.py Cleanup: remove redundant 'object' parent class 2014-10-28 18:42:06 +01:00
console_python.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
console_shell.py update console shell for changes in api 2013-12-29 00:51:51 +11:00
graphviz_export.py
keyingsets_utils.py Cleanup: unused vars, imports, pep8 2016-08-01 11:55:06 +10:00
nodeitems_utils.py Cleanup: pep8 2015-09-01 13:03:38 +10:00
progress_report.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
rna_info.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
rna_keymap_ui.py Minor adjustments to keymap editor layouts 2016-02-20 00:46:17 +01:00
rna_prop_ui.py Fix T46891: Error removing PropertyGroup 2015-11-30 11:03:49 +11:00
rna_xml.py Cleanup: pep8 2016-07-30 09:00:41 +10:00
sys_info.py System info: make it more resiliant to errors. 2016-10-23 13:12:58 +02:00