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
AgeCommit message (Collapse)Author
2018-01-22Collections/Layer cleanup: Remove TODO_LAYER_OVERRIDE from most placesDalai Felinto
This was originally a good idea. However we will need to pay special attention to this when doing the dynamic overrides anyways. The placeholders won't be enough to spare us that job. That said I left the ones on layer.c because we are actually calling these BKE_override_*_add() functions from doversion, yet they don't do anything.
2018-01-19Merge branch 'master' into blender2.8Campbell Barton
2018-01-18Outliner: Rename "Active View Layer" > "View Layer"Dalai Felinto
The original name came from a cheap conversion of the "active layer" option to "active render layer" and then "active view layer".
2018-01-11Fix poll and name of collection link/unlink operatorsDalai Felinto
Reported via IRC by Pablo Vazquez (venomgfx).
2018-01-11Cleanup: Naming, avoid passing bContext to low-level function, etcJulian Eisel
2018-01-11Fix crash when deleting collectionsJulian Eisel
With factory settings, steps to reproduce were: * Select "Collection 1" (in "RenderLayer") * Delete It might crash at this point, although maybe this crash is ASAN only. However, this was also doing some weird things that I've corrected now. It called outliner_build_tree in an operator callback. This should only be called in the main redraw function or so, not in regular handlers. Instead, we manually cleanup the tree to keep it valid.
2018-01-03Outliner/Collections: Remove selected objects operatorDalai Felinto
This is part of T53495.
2018-01-03Outliner/Collections: Add selected objects operatorDalai Felinto
This is part of T53495.
2018-01-02Outliner/Collections: Don't link a collection after creationDalai Felinto
2017-12-29Outliner/Collection: Operator to delete selected collectionsDalai Felinto
This is part of T53495. This operator is actually using existing code. The only new thing about it is that it has a shortcut. It will be exposed in the UI soon together with the nested collection operator.
2017-12-29Outliner/Collection: Operator to create (nested) collectionsDalai Felinto
This is part of T53495. This operator is intended for the outliner when viewing Collections (at the moment, Master Collection Tree). It has a shortcut "C", and will be added to a menu shortly.
2017-12-19Fix T53442: Outliner refresh issues when adding new collectionDalai Felinto
Notifier is getting through, yet tree wasn't rebuilding until we force redraw by resizing the outliner. Thanks to Danrae Pray (@spockTheGray) for looking at this issue.
2017-12-15Group collection viewport/render options and remove collection visibilityDalai Felinto
Users can change the group collection visibility in the outliner when looking at groups. Regular collections on the other hand don't have any special visibility control, if you need a collection to be invisible during render, either don't link it into the view layer used for F12, or disable it. This includes: * Updated unittests - update your lib/tests/layers folder. * Subversion bump - branches be aware of that. Note: Although we are using eval_ctx to determine the visibility of a group collection when rendering, the depsgraph is still using the same depsgraph for the viewport and the render engine, so at the moment the render visibility is ignored. Following next is a workaround for this separately to tag the groups before and after rendering to tackle that.
2017-12-13Fix T51461: Outliner: Problems removing multiple collections in sequenceDanrae Pray
We now select the LayerCollection at index 0 for the active ViewLayer after a collection deletion operation. Added some functions to query outliner tree data & get LayerCollection by index using a similar approach as we do for SceneCollection indexing. With warning and style cleanups by Dalai Felinto. Reviewers: dfelinto Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D2942
2017-12-04Small cleanup from previous commit by Danrae Pray (@spockTheGray)Danrae Pray
I (Dalai) messed up the git author from previous commit (68fdcf07a17). So this is a follow up on that, properly credited.
2017-12-04Fix T53415: Outliner: Crash when deleting collectionsDalai Felinto
Updated collection_delete_exec() so we don't try to delete elements as we search the outliner tree anymore. Now we search the whole tree first for the selected nodes that need to be deleted and delete them afterward. Reviewers: dfelinto Tags: #bf_blender_2.8 Differential Revision: https://developer.blender.org/D2936 Differential Revision: https://developer.blender.org/D2940
2017-12-01Groups and collection: initial integrationDalai Felinto
Since we are ditching layers from Blender (2.8) we need a replacement to control groups visibility. This commit introduces collections as the building blocks for groups, allowing users to control visibility as well as overrides for groups. Features ======== * Groups now have collections This way you can change the visibility of a collection inside a group, and add overrides which are part of the group and are prioritized over other overrides. * Outliner Groups can inspect their collections, change visibility, and add/remove members. To change an override of a group collection, you need to select an instance of the group, and then you can choose "group" in the collection properties editor to edit this group active collection instead of the view layer one. * Dupli groups overrides We can now have multiple instances of the same group with an original "override" and different overrides depending on the collection the instanced object is part of. Technical ========= * Layers We use the same api for groups and scene as much as possible. Reviewers: sergey (depsgraph), mont29 (read/write and user count) Differential Revision: https://developer.blender.org/D2892
2017-11-23Cleanup: Rename ViewLayer *sl > ViewLayer *view_layerDalai Felinto
2017-11-23Rename any instance of scene layer or render layer in code with view layerDalai Felinto
The RenderResult struct still has a listbase of RenderLayer, but that's ok since this is strictly for rendering. * Subversion bump (to 2.80.2) * DNA low level doversion (renames) - only for .blend created since 2.80 started Note: We can't use DNA_struct_elem_find or get file version in init_structDNA, so we are manually iterating over the array of the SDNA elements instead. Note 2: This doversion change with renames can be reverted in a few months. But so far it's required for 2.8 files created between October 2016 and now. Reviewers: campbellbarton, sergey Differential Revision: https://developer.blender.org/D2927
2017-11-14Cleanup: remove BLI_blenlib from ghash headerCampbell Barton
This causes source files to depend on ghash header for BLI_string/rect/listbase. Also quiet warnings.
2017-10-18Merge branch 'master' into blender2.8Campbell Barton
2017-09-20Layer collection enable flagDalai Felinto
Right now this is exposed in the outliner, though all this (visible/selectable/enable) should be moved to a new panel soon. This removes objects from the depsgraph when the collection is disabled. It allows you to "hide" lamps but still having them lighting the scene. Same for light probes and other support objects. Pending tasks: * Have depsgraph to include invisible objects in the DEG_OBJECTS_ITER, and then have Eevee and other engines to make a distinction between an invisible and a visible object. (for example, we probably want invisible objects to not show in the viewport, but cast shadows and show up in light probes). * Change how we evaluate collection settings so that an invisible collection can force an object to be invisible. Reviewers: campbellbarton Subscribers: sergey Differential Revision: https://developer.blender.org/D2848
2017-06-30Fix T51118: Outliner crash when unlinking collectionLuca Rood
The outliner tree was not being rebuilt after unlinking a collection, and thus a dangling pointer to the collection was kept in the tree.
2017-06-08Replace all old DAG calls with direct calls to new DEG and remove ↵Luca Rood
BKE_depsgraph.h This removes BKE_depsgraph.h and depsgraph.c
2017-05-19Remove redundant workaround for removing collections in outlinerJulian Eisel
Collections are now identified by their pointer. Also had to correct TSE_IS_REAL_ID to fix undefined behavior on undo.
2017-04-12Layer / Outliner / Depsgraph: update depsgraph when running outliner operatorsDalai Felinto
2017-04-01Blender 2.8: Hook of layer collections evaluation in DEGSergey Sharybin
This moves selectability/visibility flag flush from some hardcoded places in the code to depsgraph. This way it is possible to simply tag depsgraph to update those flags and rest it'll do on its own. Using depsgraph for such flush is an overkill: those flags are fully static and can not be animated, so it doesn't really make sense to hook only those to depsgraph. However, in the future we will have overrides on collections, which ideally would need to be animatable and drivable and easiest way to support this is to do this on depsgraph level, so it ensures proper order of evaluation for animation and drivers. And it seems logical to do both overrides and flags flush from depsgraph from this point of view. This commit also includes the evaluation of IDProperty for collections, which basically are just another form of override. So once we implement the other kind of overrides the flushing and collection evaluation won't change. Patch by Sergey Sharybin and Dalai Felinto
2017-03-01Outliner: Support dragging object into collectionJulian Eisel
Doing this will add the object to the collection.
2017-03-01Cleanup: Rename outliner enumJulian Eisel
2017-03-01Outliner: Make deleting collections from "All Collections" mode workJulian Eisel
2017-02-28Outliner: Delete all selected collections, not just active oneJulian Eisel
There were some issues with how we store outliner tree elements: Apparently the only removable elements have been data-blocks so far. When recreating the TreeElements, their TreeStoreElem instances were mainly identified by their ID pointer. However non-data-blocks mostly depend on an index. For collections, such an index isn't a reliable measure though if we want to allow removing items. Depending on it for identifying the TreeStoreElem instance would cause some quite noticeable glitches (wrong highlights, two elements sharing highlight, etc). For now I've solved that by actually removing the TreeStoreElem that represents the removed element. A little limitation of this is that after undoing the removal, some information might get lost, like flags to store selection, or opened/closed state. A better solution that would also fix this issue would be having a real unique identifier for each non-data-block element, like an idname or even its data-pointer. Not sure if we can get those to work reliable with file read/write though, would have to investigate... Also added a general Outliner tree traversal utility.
2017-02-16Outliner collection operators: linking!Dalai Felinto
2017-02-16Outliner collection operators, all but collection linkDalai Felinto
Note: It may be missing a notifier to prevent Outliner from crashing when deleting collections.
2017-02-15Revert "Collection Editor based on patch by Julian Eisel"Dalai Felinto
This reverts commit 3da834e83ce9d7056c033148dab04885a6d3b1b7. We will use the outliner for this now. I'm also moving the collections_ops.c to outliner_collections.c