Blender Git Commit Log

Git Commits -> Revision 17bd5c9

Revision 17bd5c9 by Brecht Van Lommel (master)
May 18, 2018, 11:34 (GMT)
Collections and groups unification

OVERVIEW

* In 2.7 terminology, all layers and groups are now collection datablocks.
* These collections are nestable, linkable, instanceable, overrideable, ..
which opens up new ways to set up scenes and link + override data.
* Viewport/render visibility and selectability are now a part of the collection
and shared across all view layers and linkable.
* View layers define which subset of the scene collection hierarchy is excluded
for each. For many workflows one view layer can be used, these are more of an
advanced feature now.

OUTLINER

* The outliner now has a "View Layer" display mode instead of "Collections",
which can display the collections and/or objects in the view layer.
* In this display mode, collections can be excluded with the right click menu.
These will then be greyed out and their objects will be excluded.
* To view collections not linked to any scene, the "Blender File" display mode
can be used, with the new filtering option to just see Colleciton datablocks.
* The outliner right click menus for collections and objects were reorganized.
* Drag and drop still needs to be improved. Like before, dragging the icon or
text gives different results, we'll unify this later.

LINKING AND OVERRIDES

* Collections can now be linked into the scene without creating an instance,
with the link/append operator or from the collections view in the outliner.
* Collections can get static overrides with the right click menu in the outliner,
but this is rather unreliable and not clearly communicated at the moment.
* We still need to improve the make override operator to turn collection instances
into collections with overrides directly in the scene.

PERFORMANCE

* We tried to make performance not worse than before and improve it in some
cases. The main thing that's still a bit slower is multiple scenes, we have to
change the layer syncing to only updated affected scenes.
* Collections keep a list of their parent collections for faster incremental
updates in syncing and caching.
* View layer bases are now in a object -> base hash to avoid quadratic time
lookups internally and in API functions like visible_get().

VERSIONING

* Compatibility with 2.7 files should be improved due to the new visibility
controls. Of course users may not want to set up their scenes differently
now to avoid having separate layers and groups.
* Compatibility with 2.8 is mostly there, and was tested on Eevee demo and Hero
files. There's a few things which are know to be not quite compatible, like
nested layer collections inside groups.
* The versioning code for 2.8 files is quite complicated, and isolated behind
#ifdef so it can be removed at the end of the release cycle.

KNOWN ISSUES

* The G-key group operators in the 3D viewport were left mostly as is, they
need to be modified still to fit better.
* Same for the groups panel in the object properties. This needs to be updated
still, or perhaps replaced by something better.
* Collections must all have a unique name. Less restrictive namespacing is to
be done later, we'll have to see how important this is as all objects within
the collections must also have a unique name anyway.
* Full scene copy and delete scene are exactly doing the right thing yet.

Differential Revision: https://developer.blender.org/D3383

https://code.blender.org/2018/05/collections-and-groups/

Commit Details:

Full Hash: 17bd5c9d4b1e9377b896c13043e24eaa7e979714
Parent Commit: 70aec37
Lines Changed: +4372, -6231

3 Deleted Paths:

/release/scripts/startup/bl_ui/properties_collection.py (+0, -69)
/source/blender/blenkernel/BKE_group.h (+0, -85)
/source/blender/blenkernel/intern/group.c (+0, -389)

140 Modified Paths:

/doc/python_api/examples/bpy.ops.2.py (+2, -2) (Diff)
/release/scripts/modules/bl_previews_utils/bl_previews_render.py (+18, -18) (Diff)
/release/scripts/modules/bpy_types.py (+7, -7) (Diff)
/release/scripts/startup/bl_operators/file.py (+10, -10) (Diff)
/release/scripts/startup/bl_ui/properties_object.py (+23, -22) (Diff)
/release/scripts/startup/bl_ui/space_dopesheet.py (+4, -4) (Diff)
/release/scripts/startup/bl_ui/space_outliner.py (+67, -55) (Diff)
/release/scripts/startup/bl_ui/space_view3d.py (+15, -15) (Diff)
/release/scripts/startup/bl_ui/__init__.py (+0, -1) (Diff)
/source/blender/alembic/intern/abc_exporter.cc (+2, -2) (Diff)
/source/blender/alembic/intern/alembic_capi.cc (+1, -7) (Diff)
/source/blender/blenkernel/BKE_blender_version.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_collection.h (+110, -30) (Diff)
/source/blender/blenkernel/BKE_collision.h (+4, -4) (Diff)
/source/blender/blenkernel/BKE_context.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_effect.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_freestyle.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_layer.h (+16, -38) (Diff)
/source/blender/blenkernel/BKE_main.h (+1, -1) (Diff)
/source/blender/blenkernel/BKE_object.h (+2, -2) (Diff)
/source/blender/blenkernel/BKE_scene.h (+2, -2) (Diff)
/source/blender/blenkernel/CMakeLists.txt (+0, -2) (Diff)
/source/blender/blenkernel/intern/blender_copybuffer.c (+2, -2) (Diff)
/source/blender/blenkernel/intern/collection.c (+733, -542) (Diff)
/source/blender/blenkernel/intern/collision.c (+19, -19) (Diff)
/source/blender/blenkernel/intern/context.c (+8, -7) (Diff)
/source/blender/blenkernel/intern/dynamicpaint.c (+4, -14) (Diff)
/source/blender/blenkernel/intern/effect.c (+5, -18) (Diff)
/source/blender/blenkernel/intern/freestyle.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/icons.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/idcode.c (+1, -1) (Diff)
/source/blender/blenkernel/intern/layer.c (+323, -949) (Diff)
/source/blender/blenkernel/intern/library.c (+7, -7) (Diff)
/source/blender/blenkernel/intern/library_query.c (+25, -14) (Diff)
/source/blender/blenkernel/intern/library_remap.c (+38, -57) (Diff)
/source/blender/blenkernel/intern/object.c (+28, -29) (Diff)
/source/blender/blenkernel/intern/object_dupli.c (+66, -61) (Diff)
/source/blender/blenkernel/intern/particle.c (+12, -6) (Diff)
/source/blender/blenkernel/intern/pointcache.c (+3, -2) (Diff)
/source/blender/blenkernel/intern/rigidbody.c (+21, -19) (Diff)
/source/blender/blenkernel/intern/scene.c (+25, -34) (Diff)
/source/blender/blenkernel/intern/softbody.c (+16, -20) (Diff)
/source/blender/blenloader/BLO_readfile.h (+3, -2) (Diff)
/source/blender/blenloader/intern/readfile.c (+336, -267) (Diff)
/source/blender/blenloader/intern/versioning_260.c (+0, -1) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+486, -338) (Diff)
/source/blender/blenloader/intern/versioning_legacy.c (+5, -5) (Diff)
/source/blender/blenloader/intern/writefile.c (+34, -31) (Diff)
/source/blender/blentranslation/BLT_translation.h (+2, -2) (Diff)
/source/blender/collada/collada_utils.cpp (+2, -2) (Diff)
/source/blender/collada/DocumentImporter.cpp (+2, -2) (Diff)
/source/blender/collada/SceneExporter.cpp (+6, -6) (Diff)
/source/blender/depsgraph/DEG_depsgraph.h (+1, -3) (Diff)
/source/blender/depsgraph/DEG_depsgraph_build.h (+2, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.cc (+17, -24) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes.h (+3, -2) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_nodes_view_layer.cc (+10, -1) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.cc (+20, -14) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations.h (+4, -3) (Diff)
/source/blender/depsgraph/intern/builder/deg_builder_relations_view_layer.cc (+11, -0) (Diff)
/source/blender/depsgraph/intern/depsgraph.cc (+3, -7) (Diff)
/source/blender/depsgraph/intern/depsgraph_build.cc (+2, -2) (Diff)
/source/blender/depsgraph/intern/depsgraph_intern.h (+1, -1) (Diff)
/source/blender/draw/engines/eevee/eevee_lightprobes.c (+9, -9) (Diff)
/source/blender/draw/engines/eevee/eevee_private.h (+1, -1) (Diff)
/source/blender/editors/animation/anim_filter.c (+5, -5) (Diff)
/source/blender/editors/gpencil/gpencil_convert.c (+3, -2) (Diff)
/source/blender/editors/object/object_add.c (+45, -38) (Diff)
/source/blender/editors/object/object_edit.c (+71, -36) (Diff)
/source/blender/editors/object/object_group.c (+136, -136) (Diff)
/source/blender/editors/object/object_intern.h (+12, -12) (Diff)
/source/blender/editors/object/object_ops.c (+17, -17) (Diff)
/source/blender/editors/object/object_relations.c (+96, -104) (Diff)
/source/blender/editors/object/object_select.c (+32, -134) (Diff)
/source/blender/editors/object/object_transform.c (+2, -2) (Diff)
/source/blender/editors/physics/rigidbody_constraint.c (+4, -4) (Diff)
/source/blender/editors/physics/rigidbody_object.c (+4, -4) (Diff)
/source/blender/editors/render/render_preview.c (+16, -13) (Diff)
/source/blender/editors/space_action/space_action.c (+1, -1) (Diff)
/source/blender/editors/space_buttons/buttons_context.c (+0, -41) (Diff)
/source/blender/editors/space_buttons/space_buttons.c (+0, -2) (Diff)
/source/blender/editors/space_graph/space_graph.c (+1, -1) (Diff)
/source/blender/editors/space_info/info_stats.c (+14, -23) (Diff)
/source/blender/editors/space_nla/space_nla.c (+1, -1) (Diff)
/source/blender/editors/space_outliner/outliner_collections.c (+357, -699) (Diff)
/source/blender/editors/space_outliner/outliner_draw.c (+50, -73) (Diff)
/source/blender/editors/space_outliner/outliner_edit.c (+79, -69) (Diff)
/source/blender/editors/space_outliner/outliner_intern.h (+17, -30) (Diff)
/source/blender/editors/space_outliner/outliner_ops.c (+25, -53) (Diff)
/source/blender/editors/space_outliner/outliner_select.c (+38, -43) (Diff)
/source/blender/editors/space_outliner/outliner_tools.c (+75, -329) (Diff)
/source/blender/editors/space_outliner/outliner_tree.c (+185, -175) (Diff)
/source/blender/editors/space_outliner/outliner_utils.c (+19, -4) (Diff)
/source/blender/editors/space_outliner/space_outliner.c (+8, -12) (Diff)
/source/blender/editors/space_view3d/space_view3d.c (+3, -3) (Diff)
/source/blender/editors/space_view3d/view3d_ops.c (+7, -7) (Diff)
/source/blender/freestyle/intern/blender_interface/BlenderStrokeRenderer.cpp (+5, -8) (Diff)
/source/blender/gpu/intern/gpu_material.c (+0, -1) (Diff)
/source/blender/makesdna/DNA_action_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_cloth_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_dynamicpaint_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_effect_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_freestyle_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_group_types.h (+39, -14) (Diff)
/source/blender/makesdna/DNA_layer_types.h (+31, -28) (Diff)
/source/blender/makesdna/DNA_lightprobe_types.h (+1, -1) (Diff)
/source/blender/makesdna/DNA_object_force_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_object_types.h (+4, -4) (Diff)
/source/blender/makesdna/DNA_outliner_types.h (+2, -2) (Diff)
/source/blender/makesdna/DNA_particle_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_rigidbody_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_scene_types.h (+5, -2) (Diff)
/source/blender/makesdna/DNA_smoke_types.h (+3, -3) (Diff)
/source/blender/makesdna/DNA_space_types.h (+9, -17) (Diff)
/source/blender/makesdna/intern/dna_genfile.c (+10, -3) (Diff)
/source/blender/makesrna/intern/makesrna.c (+21, -9) (Diff)
/source/blender/makesrna/intern/rna_action.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_context.c (+5, -6) (Diff)
/source/blender/makesrna/intern/rna_dynamicpaint.c (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_group.c (+169, -39) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_internal.h (+2, -2) (Diff)
/source/blender/makesrna/intern/rna_layer.c (+22, -578) (Diff)
/source/blender/makesrna/intern/rna_lightprobe.c (+2, -1) (Diff)
/source/blender/makesrna/intern/rna_main.c (+3, -3) (Diff)
/source/blender/makesrna/intern/rna_main_api.c (+20, -20) (Diff)
/source/blender/makesrna/intern/rna_object.c (+10, -9) (Diff)
/source/blender/makesrna/intern/rna_object_force.c (+4, -2) (Diff)
/source/blender/makesrna/intern/rna_particle.c (+4, -3) (Diff)
/source/blender/makesrna/intern/rna_rigidbody.c (+5, -5) (Diff)
/source/blender/makesrna/intern/rna_scene.c (+11, -11) (Diff)
/source/blender/makesrna/intern/rna_smoke.c (+6, -6) (Diff)
/source/blender/makesrna/intern/rna_space.c (+10, -23) (Diff)
/source/blender/makesrna/RNA_access.h (+2, -2) (Diff)
/source/blender/makesrna/RNA_enum_types.h (+2, -5) (Diff)
/source/blender/python/intern/bpy_library_load.c (+1, -1) (Diff)
/source/blender/render/intern/source/pipeline.c (+13, -13) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+5, -5) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+5, -5) (Diff)
/tests/python/CMakeLists.txt (+3, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021