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-12-07Animation: Show Channel Group Colors is now off by defaultSybren A. Stüvel
Change the default for the Show Channel Group Colors preference to OFF. This option in the user preferences was introduced in rBad85256e7108. It moved a per-file-per-editor option to the user preferences. As this option would be frequently turned off by animators, this would now have to happen only once. This commit takes this one step further, and turns it off by default, as it can cause major readability issues of the animation channel list.
2020-12-07LibOverride: Abstract a bit handling of local items of RNA collections.Bastien Montagne
RNA collections that support insertion of new items in liboverride data-block need a special way to distiguish between locale and orig-from-linked items (since some operations are allowed on the forer, but no the latter). In future we want a proper solution to abstract that at the `BKE_lib_override` level, but for now we need to add some code for each case. Note that this commit also fixes a few potential issues with GPencil modifiers, and constraints, regarding their handling of local overrides.
2020-12-07Fix (unreported) LibOverride: GPencil local Modifiers not fully editable.Bastien Montagne
Missing case in `RNA_property_overridable_get`
2020-12-07Fix T81745: Auto Weights fails with Mirror mod + Vertex Groups XSybren A. Stüvel
Fix the Assign Automatic Weights operator in weight paint mode when the Vertex Groups X option is enabled. This issue was probably introduced in rB5502517c3c12 where `me->editflag & ME_EDIT_MIRROR_X` was replaced by either `me->editflag & ME_EDIT_VERTEX_GROUPS_X_SYMMETRY` or `me->symmetry & ME_SYMMETRY_X`. In this case, the former wasn't working, so I replaced it with the latter.
2020-12-07UI Code Quality: Start refactoring Outliner tree-element building (using C++)Julian Eisel
Continuation of the work started with 249e4df110e0. After all display modes were ported to this new design, this commit starts the (more complex) work on the individual tree-element types. More concretely it ports animation tree-elements (action data-blocks, drivers and NLA data). The commit above explains motivations. In short, we need a better design that's easier to reason about and better testable. Changes done here are pretty straight forward and introduce similar class hierarchy and building patterns as introduced for the display modes already. I.e. an abstract base class, `AbstractTreeElement` with derived classes for the concrete types, and a C-API with a switch to create the needed objects from a type enum. The latter should be replacable with something nicer later on (RAII based, and type-safer through meta-programming). Each tree-element type has its own class, with an own header and source file (okay some closely related types can share a header and source file, like the NLA ones). I added some further temporary bits for the transition to the new design, such as the `TreeElement.type`. It should entirely replace `TreeElement` eventually, just as `outliner_add_element()` should be quite small by then and easily replacable by a `TreeBuilder` helper.
2020-12-07Fix missing type check for Outliner eyedropper queryJulian Eisel
Mistake in 35a5dee2ef73. Code would simply assume that the element under the cursor is an Object if it was an ID (but not a collection). This wouldn't cause any issues in current code, since the only other ID that set the direct-data were collections, which are special in that they don't have a `TreeStoreElem.type` of 0, which is already being checked for here. And if there was no direct-data set, the object lookup in the View-Layer would correctly fail too.
2020-12-07Cleanup: Avoid setting (unsafe) Outliner tree element data that won't be usedJulian Eisel
I carefully checked and am quite sure for `TSE_ANIMATION_DATA` and `TSE_NLA_ACTION` the direct-data isn't used at all. This data is stored and accessed in unsafe ways based on conventions anyway (`void *`). We should aim for a safer design but it will be difficult to get there. Any removed complexity will help.
2020-12-07Fix access to invalid data in Outliner tree buildingJulian Eisel
Non-ID tree-elements would cast their data pointer to `ID *` and take the name and ID-Code from there. The name would actually be overridden a few lines later, so that didn't cause issues. But the ID-Code stored inside the tree element kept an undefined value. In practice that probably didn't cause many issues either, since it's just an undefined value that was very unlikely to take a valid 16-bit ID-code value, meaning ID-Code checks would simply fail as they should. Further there typically are other checks to see if the element actually represents an ID. However, in theory this may have caused a few random crashes or data-corruptions.
2020-12-07Fix failing Cycles tests after Cryptomatte changesBrecht Van Lommel
For old files without Cycles cryptomatte settings, must provide the defaults.
2020-12-07Fix bug in cleanup commitSybren A. Stüvel
Fix a copy-paste error in rB11c4066159e
2020-12-07Cleanup: partial Clang-Tidy modernize-loop-convertSybren A. Stüvel
Modernize loops by using the `for(type variable : container)` syntax. Some loops were trivial to fix, whereas others required more attention to avoid semantic changes. I couldn't address all old-style loops, so this commit doesn't enable the `modernize-loop-convert` rule. Although Clang-Tidy's auto-fixer prefers to use `auto` for the loop variable declaration, I made as many declarations as possible explicit. To me this increases local readability, as you don't need to fully understand the container in order to understand the loop variable type. No functional changes.
2020-12-07UI: Fix mistakes in UI messages.Bastien Montagne
2020-12-07Fix Cryptomatte panel not visible in EEVEEJeroen Bakker
Caused by {rB5baae026a86f}
2020-12-07File Subversion Bump: 2.92.5Jeroen Bakker
2020-12-07Cycles: Use Blender Cryptomatte Settings.Jeroen Bakker
Blender has now the place to store the Cryptomatte settings. This patch migrates Cycles to use the new settings. Reviewed By: Brecht van Lommel Differential Revision: https://developer.blender.org/D9746
2020-12-07Fix T83296: Unknown actions no longer perform an undo pushGreg Neumiller
str_len_clip is initialized to 0, so when "Unknown Action" occurs, set str_len_clip appropriately. Regression in 0688309988e546382748b9e755d84ae8a5059192 Ref D9759
2020-12-07Fix T83347: Smart UV project crashes with wire edgesGreg Neumiller
Missing NULL check. Regression in 9296ba867462f7ff3c55bc0c9129af4121243bed Ref D9757
2020-12-07Cleanup: spellingCampbell Barton
2020-12-07Cleanup: correct enum typeCampbell Barton
2020-12-07GPencil: Enable Layer Onion Skin by defaultAntonio Vazquez
2020-12-06Fluid: Updated Mantaflow source filesSebastián Barschkis
Includes outflow optimization - might have been the cause of instabilities.
2020-12-06UI: Alert Dialog Helper FunctionYevgeny Makarov
Shared helper function to create a split layout with an alert icon for popup dialogs. Differential Revision: https://developer.blender.org/D9486 Reviewed by Julian Eisel
2020-12-06UI: 'About Blender' with Full LogoYevgeny Makarov
New layout for the 'About' dialog featuring the full version of the Blender logo. Differential Revision: https://developer.blender.org/D9507 Reviewed by Hans Goudey
2020-12-06Reorder fields in boolean's ITT_value to save memory.Howard Trickey
2020-12-06Doxygen: Increase lookup cacheAaron Carlisle
I could not measure any major speedup/memory usage but this resolves a message while running doxygen.
2020-12-06Doxygen: Disable HTMLHELPAaron Carlisle
This feature is intended to generate Microsoft Compiled HTML Help files which is not something we use/need. This also fixes an error in generation because the executable cannot be found.
2020-12-05Fix crashes with invisible Outliners on fullscreen or window closingJulian Eisel
I didn't actually confirm this is caused by invisible Outliners. But I'm pretty sure the error happens with Outliners that aren't initialized (so were open in an area before, but another editor is active there currently). In that case, the runtime data may not be set yet and that is fine. Fixes T83420.
2020-12-05Fix T83400: GPencil onion skin not visible when Edit Lines is enabledAntonio Vazquez
The Edit Lines flag was not checking if Onion was enabled. In 2D template this is disabled by default, but default template has enabled it.
2020-12-05Add more timing hooks for boolean.Howard Trickey
2020-12-05Cleanup: Finish porting outliner tree building to C++Nathan Craddock
No functional changes. This is a few minor cleanups to the remaining C code for building the outliner tree after parts have been moved to C++. Differential Revision: https://developer.blender.org/D9741
2020-12-05Cleanup: Outliner Data API display modeNathan Craddock
No functional changes. Moves the data API display building code to C++. Differential Revision: https://developer.blender.org/D9741
2020-12-05Cleanup: Outliner scenes display modeNathan Craddock
No functional changes. The scene display building code has been moved to C++. Differential Revision: https://developer.blender.org/D9741
2020-12-05Cleanup: Outliner orphan data display modeNathan Craddock
No functional changes. Code is ported to C++ with additional cleanups to the logic and variable names. Differential Revision: https://developer.blender.org/D9741
2020-12-05Cleanup: Outliner video sequencer display modeNathan Craddock
No functional changes. Code is ported to C++. Variable names and logic are also improved. Differential Revision: https://developer.blender.org/D9741
2020-12-04Fix incorrect variable name after last commitHans Goudey
2020-12-04Cleanup: Use LISTBASE_FOREACH macro in windowmanager internHans Goudey
Also decrease the scope of variables related to the loops.
2020-12-04Cleanup: Move Outliner runtime hash into internal runtime struct, out of DNAJulian Eisel
This way Outliner internal data stays internal, non-Outliner code will not be able to access and mess with this. Further it allows us to use the real type (rather than `void *`), change the type to a C++ container if needed and slightly reduces the size for every Outliner stored in files. Slightly changed how we set the `SO_TREESTORE_REBUILD` for this, but it should effectively behave the same way as before.
2020-12-04Atomics: Add 16 bit fetch + AND and fetch + OR signed integer operationsJulian Eisel
I could use a 16 bit atomic fetch + AND for D9719. The alternative would be to turn a `short` into a `int` in DNA, which isn't a nice workaround. Also adds tests for the new functions.
2020-12-04Fix API doc generation.Bastien Montagne
BMesh auto-extracting API info does not support comments inside BMesh operators parameters definition.
2020-12-04macOS deps: Support building clang tidyAnkit Meel
This patch builds clang-extra-tools on macOS for the clang-tidy binary. The script "run-clang-tidy.py" is also harvested because using the `CMAKE_C[XX]_CLANG_TIDY` option can miss out some files (like makesrna), and using the script is faster as it does not compile the files. Thanks to `@LazyDodo` for the base patch D8502. Reviewed By: LazyDodo, sebbas, #platform_macos Differential Revision: https://developer.blender.org/D9450
2020-12-04Transform: Don't use Automatic Constraint Plane in 2D editorsGermano Cavalcante
Technically it shouldn't have any effect on these editors. The key tips in the header can be misleading. The effect it previously had was not intended.
2020-12-04Cleanup: Deduplicate constraint event codeGermano Cavalcante
2020-12-04i18n utils CLI: add missing RTL process command.Bastien Montagne
2020-12-04i18n utils: Add first version of the CLI wrapper around i18n tools.Bastien Montagne
Plan is to use that in new 'buildbot' pipeline to automate generation of i18n files for Blender.
2020-12-04i18n utils: Add a helper to list and match po files with languages codes.Bastien Montagne
This code was previously done in the add-on, but we'll need it for the CLI tool as well, so now it is a utils generator instead.
2020-12-04i18n utils : Reduce dependency to Blender bpy API, step 2.Bastien Montagne
Remove some top imports of bpy, only import it in a few specific functions that only make sense when used whithin Blender anyway.
2020-12-04i18n utils: reduce dependency to Blender bpy API, step 1.Bastien Montagne
This involves re-implementing some of Blender-defined helpers in utils, we keep debug code to ensure those are still matching on behavior/results sides. This will allow to get more i18n tools independent from blender executable.
2020-12-04i18n utils: Cleanup.Bastien Montagne
2020-12-04Cleanup: Declare variables where initializedHans Goudey
2020-12-04Cleanup: Use typedef for button string info typeHans Goudey
Before, it wasn't clear what the int in `uiStringInfo` was supposed to store. Using a typedef can make this someone more explicit.