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
2020-07-14Cleanup: function name not following its module conventions.Bastien Montagne
2020-07-14LibOverride: Outliner: Add an operation to override the selected ID and its ↵Bastien Montagne
parents. This will override all linked data-blocks in the tree branch leading to the selected one.
2020-07-13LibOverride: Cleanup: Remove option to disable library overrides.Bastien Montagne
Code is mature enough now to not need this anymore, people who do not want to use liboverrides can just not create them.
2020-07-09Fix T78718: Crash when deleting particle system modifier with the X Shortcut.Bastien Montagne
Duplication and deletion code of modifiers was totally wrong for particle system, that special weird thing needs its own custom management. Note that for now I chose not to duplicate the particle settings ID when duplicating the modifier...
2020-07-03Cleanup: Use C-style comments in outliner filesNathan Craddock
No functional changes. Convert all C++ style comments to C comments. Also capitalize and add full stops. The comments themselves were not cleaned up. Some could be removed or reworded.
2020-07-03Cleanup: Remove unused outliner activation codeNathan Craddock
No functional changes. Remove commented calls to extern_set_butspace and unused text activation code.
2020-07-03Cleanup: Use _fn suffix for outliner button callbacksNathan Craddock
No functional changes. Use _fn instead of _cb.
2020-07-03Clang-tidy: Enable braces-around-statements warningSebastian Parborg
2020-07-03Cleanup: Editors/Space/Outliner, Clang-Tidy else-after-return fixesSybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/editors/space_outliner` module. No functional changes.
2020-07-03Cleanup: spellingCampbell Barton
2020-07-02GPencil: Cleanup - More rename from gp_ to gpencil_Antonio Vazquez
2020-06-30Outliner: Add auto scrolling during drag and dropNathan Craddock
Pan the view when dragging elements near the borders. This uses the same operator that scrolls the region during modifiers drag and drop.
2020-06-30Outliner/UI: Show library state icons for data-blocks in "Data API" modeJulian Eisel
Previously it was not possible to tell appart a linked data-block from its override copy. In fact you couldn't tell appart any data-blocks with the same name (which is possible with linking). Now we show the library state icon as we do for data-blocks in other display modes. Old/new comparison (note the overriden "GEO-head"): {F8608835} {F8608836}
2020-06-30Cleanup: spellingCampbell Barton
2020-06-29UI: Show library status icons in search menus, rather than letter prefixJulian Eisel
Rather than a `L` (linked), `O` (overridden) or `M` (missing) prefix for the name, show the existing library status icons. See D7999 for screenshots. Note that when using preview icons, or if the search menu contains items with own icons (e.g. brush icons), we still fallback to the prefix solution. Zero or fake user is still indicated with a prefix. Differential Revision: https://developer.blender.org/D7999 Reviewed by: Bastien Montagne, William Reynish
2020-06-26Fix error when filtering in Outliner "Blender File" mode with librariesJulian Eisel
Steps to reproduce were: * Load factory settings * Link any library * Change to "Blender File" display mode in Outliner * Enable filtering * -> Assert fails This may have had further side-effects for linked IDs. Checked with Bastien, the NULL-check seems reasonable. It was initially there but removed in d74f9c4b7b4f. Fine to backport.
2020-06-23Cleanup: rename 'name' to 'filepath' for DNA typesCampbell Barton
Using 'name' for the full path of a file reads badly, especially when id.name is used in related code.
2020-06-23Cleanup: rename Library.filepath to filepath_absCampbell Barton
Make it clear that this is the absolute path, allow the 'name' to be renamed to 'filepath'. Rename is safe since this is only for run-time.
2020-06-22Refactoring: View2DScrollers memory allocationJeroen Bakker
View2DScrollers used the memory manager to allocate memory. This isn't a problem but in a upcoming change the scrollers will be drawn more often than it used to (See {D8066}). To limit the number of allocations and frees this patch will use the stack for allocation. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D8076
2020-06-22Fix: Wrong fake user icons in outliner orphan modeNathan Craddock
The icons for toggling fake users on orphan datablocks in the outliner were drawn as the quit and x icons instead of the fake user icon. This changes to the correct icon, and removes the redundant "F" column.
2020-06-21Cleanup: Outliner walk select namingNathan Craddock
No functional changes. Don't use walk_element now that the walk element flag is removed.
2020-06-21Fix T71812: Outliner walk navigation not activatingNathan Craddock
Walk navigation used a separate flag to select the element. This is because activation and mode toggling were connected until rB702e00f91088 cleaned up the selection logic. Now walk navigation can activate objects and other elements without changing modes. This also addresses renaming in the outliner which did renaming from the active element, not the walk element.
2020-06-19Outliner: Selection cleanupNathan Craddock
No functional changes. The outliner selection operators shared many different functions for selection, activation, mode toggling, and other actions, but the code paths were not always clear, making any changes difficult. This cleans up the code and uses outliner_item_select() as the base function for selection, activation, mode toggling between the different selection operators. It also prepares for future features and fixes. Reviewed By: Severin Differential Revision: https://developer.blender.org/D5817
2020-06-19Fix: Crash when closing window while Outliner shows screensJulian Eisel
Steps to reproduce were: * From factory settings, change Outliner Display Mode to "Blender File" * Open "Screens" item, make sure all listed screens are visible * Open Preference window, close it * Mouse hover the outliner -> crash Fix is to force an Outliner tree rebuild when closing screens.
2020-06-19UI: Minor optimization to Outliner lookup for hovered elementJulian Eisel
The lookup to find the hovered Outliner tree element would possibly check children that can be skipped with a simple check. I experimented with various ways to avoid work in this lookup. This one is simple and reliable, which others wouldn't have been afaics. Plus, there's not much performance to be gained here anyway.
2020-06-19UI: Avoid rebuilding Outliner tree when opening/collapsing itemsJulian Eisel
In big files, the Outliner would have a noticeable lag when opening or collapsing items. That was because the entire tree was rebuilt, which isn't actually needed in most cases. So we avoid it where possible now.
2020-06-19UI: Don't rebuild Outliner tree to remove highlight when leaving areaJulian Eisel
When leaving the Outliner's area, the highlight would be removed and cause a full rebuild of the tree. This caused a noticable lag in bigger files.
2020-06-19Outliner: Show pose group iconsNathan Craddock
Pose groups previously showed a dot icon. Now it draws the correct icon.
2020-06-18Outliner: Fix (unreported) object select in multiple collectionsNathan Craddock
Previous commits to fix parent selection introduced incorrect behavior when selecting objects linked to multiple collections. The clicked object would be selected, but also the first listed object in the tree would be selected. Instead of always searching for a parent object to select, only search back when the selected element is not an ID_OB. This prevents multiple selection of objects linked to multiple collections.
2020-06-17Refactor duplicate of data-blocks.Bastien Montagne
Main change from user side, besides that all pointers should now be properly remapped to new IDs, is that linked objects are no longer preserved when doing a full copy of scenes. Will open a task to check whether we actually still want that behavior (and re-code it in a more correct way then). This is the main part of work done here, it aims at uniformizing and sanitizing that 'deep copy' process for supported IDs (currently scenes, collections and objects). Note that there will be more follow up commits after that one, but this should be the most risky and changing one.
2020-06-17Outliner: Unified delete hierarchy operatorNathan Craddock
This resolves T73673 by allowing delete hierarchy in all outliner view modes. It also unifies the collection and object hierarchy delete into a single operator like in rBae98a033c856. This makes it easier to delete all selected collection and object hierarchies at once. This also removes the old object delete hierarchy code in favor of the batch delete code which has been default for over a year. Maniphest Tasks: T73673 Differential Revision: https://developer.blender.org/D7675
2020-06-16Cleanup: remove hierarchy parameter from `BKE_collection_duplicate`Bastien Montagne
It makes no sense to deep-copy a collection and not also copy its children collections... Parameter was not used anymore anyway. So now this duplicate function will always at least deep-duplicate all of its children collections, recursively.
2020-06-05Code Cleanup: fcurve function namingJeroen Bakker
2020-06-02UI: Expand linked/overriden collections by default in the OutlinerJulian Eisel
When linking or overriding an instanced collection, the new collection item in the Outliner is now un-collapsed by default. Linking and overriding is typically used in production scenes, where collections tend to contain many items (children, grand-children, etc.). If all collections in that hierarchy are expanded by default, the Outliner gets flooded with items. So users ended up manually collapsing the collections. Part of T76555. Reviewed by: Andy Goralczyk, Bastien Montange. Differential Revision: https://developer.blender.org/D7626
2020-05-27Merge branch 'blender-v2.83-release'Nathan Craddock
2020-05-27Fix: A few missing outliner selection sync tagsNathan Craddock
Add selection syncing for object add named (e.g. drag and drop from outliner to 3D view), outliner right click (a sync when the context menu is cancelled), and for object selection from Python.
2020-05-23Merge branch 'blender-v2.83-release'Nathan Craddock
2020-05-23Fix T76578: Show bone visibility driver in outlinerNathan Craddock
Allow setting drivers and keyframes for the bone visibility restriction icon in the outliner. Before the button was a simple icon button, but it is now connected to the RNA property to show the driven or keyframed state. Also when hiding a bone from the outliner it would be deselected, but from the properties editor it would remain selected. This moves the deselection to the RNA update function to ensure the bone is always deselected. Differential Revision: https://developer.blender.org/D7825
2020-05-18Merge branch 'blender-v2.83-release'Bastien Montagne
2020-05-18Outliner: Fix (unreported) more data-changing operators missing undo.Bastien Montagne
2020-05-18Merge branch 'blender-v2.83-release'Bastien Montagne
2020-05-18Fix T76799: Crash from undoing the copy-pasting of multiple data blocks.Bastien Montagne
Bug was actually in outliner code, paste operator would not generate any undo step... This was not correct ever, but with new undo code this has become a critical issue, it cannot survive a situation where current main data has been changed without a proper undo push. This illustrates again how much of a catastrophic mess the 'tools' callbacks of the outliner are currently, it has already caused us quiet some pain in the past, and will keep doing so until this is fully sanitized am afraid. Would strongly suggest getting rid of thosw nasty mix of custom callbacks requiring manual undo pushes, I do not see the added value of this compared to regular menus calling regular operators. It only adds confusion and extra code for nothing...
2020-05-15Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-15Fix T76710: objects get lost in linked/overridden collectionsPhilipp Oeser
Right now: - drag-drop in the Outliner prevents dropping inside linked collections - drag-drop in the Outliner allows dropping inside overridden collections (should not be the case) - `Object Properties` > `Collections` panel allows to add to overridden collection (should not be the case) - `Object Properties` > `Collections` panel filters out non-local collections (so adding to linked collections is forbidden) - `bpy collection.objects.link()` allows to add to linked collections (should not be the case) - `bpy collection.objects.link()` allows to add to overridden collections (should not be the case) While this might be supported in the future for overriden collections, these cases should not be allowed atm. since objects get lost on file reload. Note: for the case of the `Object Properties` > `Collections` panel, this could be improved further to filter out overridden collections as well. Reviewers: mont29, brecht Subscribers:
2020-05-13Merge branch 'blender-v2.83-release'Philipp Oeser
2020-05-13Fix T76711: override data-blocks could be renamed in the outlinerPhilipp Oeser
Overriding datablock should never have an editable name. This also moves the check for linked/overridden datablocks above the check for master-collection (otherwise a linked/overriden collection could still be renamed) Maniphest Tasks: T76711 Differential Revision: https://developer.blender.org/D7718
2020-05-13Simulation: Add modifier to access simulation dataJacques Lucke
For now the "Simulation" modifier only exists for point cloud objects, because we need this for the particle system. Right now, the modifier is doing nothing. There is a new `DEG_add_simulation_relation` function that is used by the modifier to make sure that the simulation is evaluated before the modifier is executed. Reviewers: brecht, sergey Differential Revision: https://developer.blender.org/D7549
2020-05-08Cleanup: callback naming for search button & update doc-stringsCampbell Barton
Callback naming didn't always make it clear which function updated the search contents and the function used to execute the action.
2020-05-07Cleanup: split search menu separator argument into own functionCampbell Barton
2020-05-01Merge branch 'blender-v2.83-release'Richard Antalik