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
2019-10-03Cleanup: argument naming, redundant NULL checksCampbell Barton
2019-10-02Revert "UI: use correct singular and plural nouns in report messages"Brecht Van Lommel
Convention is to use (s) postfix for cases where there can be one or multiple, so stay consistent with that. This reverts commit 3e8276311ed17d12e8b47b4fe8e2f68c1ce8c603.
2019-10-01UI: use correct singular and plural nouns in report messagesYevgeny Makarov
Differential Revision: https://developer.blender.org/D5729
2019-09-20UI: Fix CapitalizationYevgeny Makarov
Differential Revision: https://developer.blender.org/D5716
2019-09-19Fix T69610: Outliner doesn't update for text new and unlinkNathan Craddock
Redraw the outliner when text data-blocks are created and unlinked. This also fixes a crash when unlinking.
2019-09-13Cleanup: unused headers (GPU)Campbell Barton
2019-09-05LibOverride: add a generic macro to check whetehr an ID is overridable.Bastien Montagne
...and use it in code generating library overrides.
2019-09-05LibOverride: give more remapping control to ↵Bastien Montagne
`BKE_override_library_create_from_id()` too. Similar change to the one done for tagged IDs overriding some days ago. We do not always want to remap all local usages of a linked data-block to its new local overriding copy.
2019-09-02Cleanup: get rid of BKE_collection_master() useless accessor.Bastien Montagne
In its current version that was a totally useless extra layer of crap that we can totally avoid. Plus name was bad too.
2019-08-31Cleanup: rename natural string comparisonCampbell Barton
2019-08-31Outliner: fix unnecessary syncingNathan Craddock
Depending on the outliner display mode and the outliner dirty state, a sync may not be needed on each draw. This commit adds a check before syncing to prevent syncing when not needed.
2019-08-31Outliner: always sync object selectionNathan Craddock
This changes from-outliner selection syncing to always sync the selection state of objects. This allows selecting objects while in edit mode for parenting or adding hooks. This also fixes a few issues where the sync algorithm would fail when no active object existed.
2019-08-30UI: Outliner Natural SortHarley Acheson
Collection contents alphabetical sort now uses a Natural Sort that takes number magnitude into account. Differential Revision: https://developer.blender.org/D5636 Reviewed by Brecht Van Lommel
2019-08-27Cleanup some outdated dead code and comments in Outliner.Bastien Montagne
2019-08-27Fix T69176: Outliner->BlenderFile->Delete not working on some objects.Bastien Montagne
Object not referenced in any scene would not be deletable with previous code... that was fine in 2.7x since it was not supposed to happen, but now we can just use the nuclear `BKE_id_delete` for objects as well, will take care of properly unlinking everything as needed.
2019-08-25Cleanup: redundant struct declarationsCampbell Barton
2019-08-23RNA: Cleanup PointerRNA structJacques Lucke
The old layout of `PointerRNA` was confusing for historic reasons: ``` typedef struct PointerRNA { struct { void *data; } id; struct StructRNA *type; void *data; } PointerRNA; ``` This patch updates it to: ``` typedef struct PointerRNA { struct ID *owner_id; struct StructRNA *type; void *data; } PointerRNA; ``` Throughout the code base `id.data` was replaced with `owner_id`. Furthermore, many explicit pointer type casts were added which were implicit before. Some type casts to `ID *` were removed. Reviewers: brecht, campbellbarton Differential Revision: https://developer.blender.org/D5558
2019-08-22Outliner: new icons for sequences and contraintsNathan Craddock
Adds a new icon for the action constraint so the icon draws with the constraints color. Also adds two new icons for sequencer meta strips and duplicate strips for use in the outliner sequence display mode. The meta strip icon could be used in the sequencer sidebar.
2019-08-21Fix T68444: outliner bone visibility not updatingNathan Craddock
Tags for update when pose bone visibility is toggled in the outliner.
2019-08-21Fix T68429: wrong pose bone hide icon in outlinerNathan Craddock
The hide icon was drawing instead of the disable in viewports icon.
2019-08-20Cleanup: outliner range selectionNathan Craddock
No functional changes. This commit simplifies the recursive call, removes unneeded function calls, and adds comments.
2019-08-20Outliner: Add range extend selectNathan Craddock
Add support for ctrl+shift+lmb to default and industry compatible keymaps to select a range without removing the existing selection.
2019-08-19Outliner: sync selection on undo/redoNathan Craddock
Tags all outliner sync types on undo and redo operations.
2019-08-19Outliner: rename filter "invisible" to "hidden"Nathan Craddock
No functional changes. Renames the "invisible" object filter to "Hidden" to be more consistent.
2019-08-17Cleanup: spellingCampbell Barton
2019-08-16Outliner: Add range extend select and modify keymapNathan Craddock
Modifies selection keymap to be more conventional, with shift click for range selection and ctrl click for extend selection.
2019-08-16Outliner: Support box select on click+dragNathan Craddock
2019-08-16Outliner: set parent for entire selectionNathan Craddock
Set and clear parents for all elements in the selection in the outliner. This also removes the popup menu for setting the parent to curves, armatures, and lattices. It makes more sense to keep the outliner simple and only do object parenting.
2019-08-16Outliner: Fix scenes in scene display not starting openNathan Craddock
2019-08-16Outliner: Fixes to show active and scroll pageNathan Craddock
Adjusts the scrolling of show active and scroll page operators to use the `outliner_scroll_view` operator to ensure scrolling does not leave the outliner bounds. Also changes show active to expand subtrees containing all instances of the active object, which may be linked to multiple collections.
2019-08-16Outliner: set scene camera on camera data activateNathan Craddock
2019-08-16Outliner: Draw sequencer and vertex group iconsNathan Craddock
Draw icons for sequencer and vertex groups. The sequence types need updates because they all draw in various colors and some sequence types do not have an icon.
2019-08-16Outliner: Use F2 to rename active outliner itemNathan Craddock
Previously with F2 mapped to the global rename active object operator, it was not posible to use the conventional F2 to rename any outliner element like collections or object data. This adds F2 to the outliner keymap to call the outliner rename operator rather than the popup rename object operator.
2019-08-16Outliner: walk navigation operator and openclose fixesNathan Craddock
Adds a keyboard walk navigation and selection operator to the outliner. Up and down arrow keys walk up and down the list of elements, and left and right will open and close elements if the elements are closed or opened respectively. Holding shift while walking up and down the tree expands the selection. Holding shift while clicking or pressing left and right arrows will expand or collapse all children elements recursively. Pressing enter to openclose the hovered element is removed. Also allows click+drag for openclose of element subtrees. This moves openclose toggling to the openclose operator to remove duplicate code. The outliner tree building is tweaked slightly to set the proper parents in scene display mode for walk select to walk to parents without errors.
2019-08-16Outliner: invisible object filterNathan Craddock
Adds an invisible object filter in the outliner to show hidden objects. This is useful to quickly locate hidden items in a large outliner tree and easily toggle visibilty back on. Invisible refers to an object being hidden, or viewport visibility restricted.
2019-08-16Outliner: Allow select on row iconsNathan Craddock
Allow selection of subtree elements on a collapsed element's row. Because subtree elements are aggregated by type, a select on an icon that represents multiple subtree elements will invoke a popup menu to select the specific subtree element. Also draws highlights on cursor hover over a row icon. Any child elements that are linked to multiple collections will only be listed in the popup one time, and selection from the popup will select the first instance in the subtree.
2019-08-16Outliner: Draw constraint icons and enable buttonNathan Craddock
Draw all constraint icons and enable/disable restrict buttons. The action constraint needs its own icon. It currently draws white instead of the blue modifier color.
2019-08-16Eyedropper: Support datadropper in the outlinerNathan Craddock
Adds support for using the eyedropper in the outliner in addition to the 3D view.
2019-08-16Outliner: Synced selection and active element highlightingNathan Craddock
Adds a toggle to the filter menu for outliner synced selection. Enabled by default, this ensures selection is synced between objects, bones, and sequences. An active outliner element theme color is added to indicate which element is active. Synced selection is controlled on the operator level. Each operator that modifies selection for objects, bones, sequences, or outliner elements needs to call the respective ED_outliner_select_sync_from.. function to tag outliners to be synced. Syncing is done lazily on outliner draw.
2019-08-16Revert "Outliner: only activate outliner items when clicking on icon/text"Campbell Barton
The soc-2019-outliner branch relied on the previous behavior, since this is going to be merged soon, postpone this change. This reverts commit 9dab57a9f829881dad1e659b53413ded15ec085e.
2019-08-16Outliner: only activate outliner items when clicking on icon/textCampbell Barton
This is 2.7x behavior, while there are plans to improve on this, committing in case larger changes take longer. Without this it's not easy to select object data without changing modes. See D5493
2019-08-05Cleanup: use unsigned char for theme colorsCampbell Barton
Nearly all byte-color functions use 'uchar' causing casts when then colors were passed in. Declare as uchar to remove the need for casts.
2019-08-04Cleanup: spellingCampbell Barton
2019-07-31Refactor access to dependency graphSergey Sharybin
This change ensures that operators which needs access to evaluated data first makes sure there is a dependency graph. Other accesses to the dependency graph made it more explicit about whether they just need a valid dependency graph pointer or whether they expect the graph to be already evaluated. This replaces OPTYPE_USE_EVAL_DATA which is now removed. Some general rules about usage of accessors: - Drawing is expected to happen from a fully evaluated dependency graph. There is now a function to access it, which will in the future control that dependency graph is actually evaluated. This check is not yet done because there are some things to be taken care about first: for example, post-update hooks might leave scene in a state where something is still tagged for update. - All operators which needs to access evaluated state must use CTX_data_ensure_evaluated_depsgraph(). This function replaces OPTYPE_USE_EVAL_DATA. The call is generally to be done in the very beginning of the operator, prior other logic (unless this is some comprehensive operator which might or might not need access to an evaluated state). This call is never to be used from a loop. If some utility function requires evaluated state of dependency graph the graph is to be passed as an explicit argument. This way it is clear that no evaluation happens in a loop or something like this. - All cases which needs to know dependency graph pointer, but which doesn't want to actually evaluate it can use old-style function CTX_data_depsgraph_pointer(), assuming that underlying code will ensure dependency graph is evaluated prior to accessing it. - The new functions are replacing OPTYPE_USE_EVAL_DATA, so now it is explicit and local about where dependency graph is being ensured. This commit also contains some fixes of wrong usage of evaluation functions on original objects. Ideally should be split out, but in reality with all the APIs being renamed is quite tricky. Fixes T67454: Blender crash on rapid undo and select Speculation here is that sometimes undo and selection operators are sometimes handled in the same event loop iteration, which leaves non-evaluated dependency graph. Fixes T67973: Crash on Fix Deforms operator Fixes T67902: Crash when undo a loop cut Reviewers: brecht Reviewed By: brecht Subscribers: lichtwerk Maniphest Tasks: T67454 Differential Revision: https://developer.blender.org/D5343
2019-07-25Fix T67588: Crash after clearing animation in outlinerSergey Sharybin
2019-07-18Fix T66948: Outliner - collections/objects with wrong active stateDalai Felinto
If the parent collection was out of view we were not taking its properties into consideration. We need it even when not drawing the parent to set active/inactive values for its children. Related Task: T66948 Reviewers: brecht Subscribers: Zachman Differential Revision: https://developer.blender.org/D5272
2019-07-15Fix T66955: Cannot delete data from file in outliner.Bastien Montagne
That switch on ID types had not been updated since quiet some time it’d seem... Using the ID_Type enum type now, so this should not happen again (compiler will yell at you if you forget to add here any new ID type ;) ). Also had to change a bit the code layout then, to deal with fake NLA ID type... Note that for now, Screen IDs remain excluded from the ID menu usage, due to T67004.
2019-07-09Fix (minor) some typos and other errors in UI messages.Bastien Montagne
2019-07-09Fix T64483: crash when hovering over outliner after closing render windowSybren A. Stüvel
The `tselem->id` pointer can also be used for non-ID data (according to this comment in DNA_outliner_types.h: ``` /* XXX We actually also store non-ID data in this pointer for identifying * the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly! */ ``` As such, I don't mind adding a `NULL`-check in the `is_object_data_in_editmode()` function. After all, when there is no object, its data certainly is not in edit mode.
2019-07-07Cleanup: spellingCampbell Barton