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-06-10Changes from D7978 and D7499modifier-panels-uiHans Goudey
2020-06-10Merge branch 'master' into modifier-panels-uiHans Goudey
2020-06-10UI: More specific modifier move to index operator descriptionHans Goudey
2020-06-10Fix T77694: Start panel animation when expansion data changesHans Goudey
During normal drawing there is a rather complicated method to check whether the panels should be animating. It's not set up to deal with the panel expansion changing from outside the UI, which is now possible with the panel expansion connected to the modifier's show_expanded property. The solution is to activate panel animation if setting the expansion property has changed.
2020-06-10UI: Only set first bit of modifier expansion fag with PythonHans Goudey
Only the flag for the top level panels is exposed with RNA, so this adds a set method to only change that bit.
2020-06-10Cleanup: use proper enum type in parameter of BKE_scene_copy.Bastien Montagne
2020-06-10Enable (deep) copy of overrides.Bastien Montagne
This commit enables basic copy of overrides on generic ID level, as well as from (deep) copy operators for objects and collections. So e.g. if your linked overridden caracter is in a collection, you can now (from the outliner) Duplicate that override collection to get a new overriding copy of the character. We still need operators (new or modifying existing ones) to handle that from 3DView e.g. Note that deep copy code for objects/collections (and incidently animdata) had to be modified to avoid duplicating/making local IDs that remain linked ones being used by overrides ones.
2020-06-10Fix (unreported) disapearance of some overrides after save & reload.Bastien Montagne
The override operations generated from 'do not follow' RNA pointer properties (i.e. pointers to other IDs) were not properly clearing their 'no more used' flag, and hence were incorrectly deleted on second save.
2020-06-10Blenloader: Don't just crash when a struct name is not knownJacques Lucke
Related to T77524. This brings back the old way of handling corrupted data.
2020-06-10Fix T77524: Don't try to write storage of node with undefined nodeJacques Lucke
This cannot work, because the storagename is the empty string.
2020-06-10UI: Show library names grayed out and right-aligned in menusJulian Eisel
Should separate the data-block name better from the library name and improve readability.
2020-06-10Mesh Edit: preserve Custom Normal vectors in topology operators.Alexander Gavrilov
Custom Loop Normals are normally encoded relative to the default normals, similar to normal maps, allowing them to naturally follow mesh deformations. Changes to mesh topology however often result in nonsensical effects that are not desired. The Remove Doubles operation especially (now known as Merge By Distance) is intended as a purely topological operation, and definitely should not change the vector of the custom normals. This patch implements that behavior by converting the relative encoding into an absolute vector layer for the duration of the operation. It also modifies other Merge types in this way for consistency, the Rip operator as their inverse counterpart; and also Delete, Dissolve, Connect Path and Knife operators as other examples more related to topology than shape. On the technical side, this ports mesh_normals_loop_custom_set to BMesh, and then uses a temporary Custom Data layer to store the normals as vectors for the duration of the above mentioned operations. When the normals are converted back to custom data, the caller can choose whether to mark edges as sharp to preserve distinct normals, or just average them instead. All but Remove Doubles choose to average for now. Differential Revision: https://developer.blender.org/D4994
2020-06-10Cleanup: improve custom data type namesJacques Lucke
This is related to T76659. This just renames data type names to `CD_PROP_STRING`, `CD_PROP_FLOAT` and `CD_PROP_INT32`. It makes them a bit more specific and removes unnecessary abbreviations. Reviewers: brecht Differential Revision: https://developer.blender.org/D7980
2020-06-10Depsgraph: use blender::Set instead of std::setJacques Lucke
We decided that `blender::Set` should be the default choice for a set data structure in Blender. Reviewers: sergey Differential Revision: https://developer.blender.org/D7982
2020-06-10Depsgraph: use blender::Vector instead of std::vectorJacques Lucke
We decided that `blender::Vector` should be the default choice for a vector data structure in Blender. Reviewers: sergey Differential Revision: https://developer.blender.org/D7981
2020-06-10Depsgraph: use native Set data structureJacques Lucke
Differential Revision: https://developer.blender.org/D7982
2020-06-10Cleanup: remove unused MBALL_NOSEL flagCampbell Barton
2020-06-10Cleanup: asan warning with bit-shifting flagCampbell Barton
2020-06-10BLI: rename tests from "array_ref" to "span"Jacques Lucke
This was missing in an earlier commit.
2020-06-10BLI: add Map.pop_try methodJacques Lucke
I found this pattern in depsgraph code more than once.
2020-06-10Cleanup: redundant headersCampbell Barton
2020-06-10Cleanup: move BKE_mesh_wrapper functions into own headerCampbell Barton
2020-06-10BLI: update behavior of Map.lookup_or_addJacques Lucke
Previously, this function would expect a callback function as parameter. This behavior is now in Map.lookup_or_add_cb. The new version just takes the key and value directly.
2020-06-10Cycles: Improve OptiX viewport denoising performance with CUDA renderingPatrick Mours
With this patch Cycles recognizing when a logical OptiX and CUDA device represent the same physical GPU and attempts to eliminate unnecessary tile copies for viewport rendering if that is the case for all active devices. In addition, denoising is now no longer performed on the first available OptiX device only, but instead it will try to match CUDA and OptiX rendering/denoising devices exactly to maximize utilization. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7975
2020-06-10Fix T77599 Image UV editor use linear interpolationClément Foucault
2020-06-10Cycles: Fix CUDA compilation after cone sampling fixLukas Stockner
2020-06-10GPencil: Include new Bevel parameters when convert stroke to CurveAntonio Vazquez
These new parameters allow to define bevel depth and resolution. Related to T77631
2020-06-10Fix T77356: Texture Preview not taking alpha into accountPhilipp Oeser
Since rB329b4c3363e4 a texture preview is not rendered through the preview.blend and a renderengine anymore [unlike materials etc.] Alpha wasnt handled in that commit, take that into account now. sidenote: not sure if we should be looking into drawing alpha with a checkerboard in the background for texture previews (see texture previews elsewhere)? sidenote 2: might also be good to document where the "calculate" and "invert" alpha options are still used? [looks a bit inconsistent: compositor uses it, Image Editor as well as Render Engines dont?] Maniphest Tasks: T77356 Differential Revision: https://developer.blender.org/D7929
2020-06-10Fix T77068: UV Proportional Edit "Connected Only" option affects UVPhilipp Oeser
clipping (even if the proportional edit itself is disabled) Checking T_PROP_EDIT_ALL returns true for _any_ of the options, so just check for T_PROP_EDIT. Note: this might expand to other similar checks (e.g. header text) Maniphest Tasks: T77068 Differential Revision: https://developer.blender.org/D7927
2020-06-10Fix T77560: Bone selection crashesCampbell Barton
The was caused by 8b347fc2cdc67 as the old BONESEL_NOSEL flag handled the -1 case (used for none). Instead of checking for -1, remove these elements from the array as selection code makes decisions based on the number of hits detected.
2020-06-10LibOverride: Fix issues related to ID name differences.Bastien Montagne
Local datablocks (including overrides) need to have a unique name, which can then differ from the reference linked one (especially when there are several local overrides of a same linked data). Issue is, ID name is a 'rna name property', and as such used as reference when dealing with override of collections of IDs, so we cannot have a changing name. The solution implemented here should work and is simple, but it may have some issues in corner cases (time will say), it is not really robust. Alternative solution would be to store ID pointers as reference in override operations, instead of there name. But that would potentially add quiet a lot of overhead to foreach looping in `lib_query.c`.
2020-06-10Fix T77632: Deform modifier auto-binding not workingCampbell Barton
Regression in deaff945d0b96
2020-06-10Mesh: utility functions to access wrapped mesh coordinatesCampbell Barton
2020-06-10Fix T77195: Crash with edit-mesh viewport measurements enabledCampbell Barton
Simplify looping over faces & tessellation data. Regression in 6526c3ced8b5, the index accessed wasn't valid.
2020-06-10Cleanup: Move each special_aftertrans_update to their respective TransData fileGermano Cavalcante
2020-06-10Apply changes from constraints patch and modifiers patchHans Goudey
2020-06-10Merge branch 'master' into modifier-panels-uiHans Goudey
2020-06-09Cycles: Fix uniform cone samplingLukas Stockner
This code is currently only used for the Glossy Toon BSDF, but it's a generic building block that might be used for other things in the future. To see why the current code does not give a uniform distribution, consider that it chooses both angles uniformly, but the smaller the angle from the center of the cone is, the smaller the differential solid angle is (similar to how sampling disks by choosing radius and phi uniformly does not work). Differential Revision: https://developer.blender.org/D7948
2020-06-09UI: Remove extra separator in some casesHans Goudey
2020-06-09Fix missing animation decorators for pointer buttonsJulian Eisel
Also, remove manually placed decorator for vertex groups in modifiers. This was only needed because of this bug, and the layout was slightly misaligned.
2020-06-09UI: Set modifier panel expansion on every redrawHans Goudey
This will fix situations where the modifier epansion was set elsewhere besides the UI, like from the python console, solving the drawing part of T77502. Also adds update tags to the show_expanded property, which means the properties window redraws when the property changes.
2020-06-09Sculpt: Face Set Edit OperatorPablo Dobarro
This operator performs an edit operation in the active face set defined by the cursor position and updates the visibility. For now, it has a Grow and Shrink operations, similar to Select More/Less in edit mode or to the mask filter Grow/Shrink modes. More operations can be added in the future. In multires, this updates the visibility of an entire face from the base mesh at once, which makes it very convenient to edit the visible area without manipulating the face set directly. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7367
2020-06-09Sculpt: Pose Squash and Stretch deform modePablo Dobarro
This implements squash and stretch as a deform mode for the Pose Brush. It is similar to scale, but it applies different scale values in different axis. To achieve this, the pivot local space of the transform needs to be aligned to the segment when using this deform mode to apply the scale in the correct direction. Reviewed By: sergey Differential Revision: https://developer.blender.org/D7934
2020-06-09Voxel Size Edit: Fix text not readable when zooming in the viewportPablo Dobarro
Previously the scale of the text was using object space, so when working with scaled objects or small meshes the size of the text was wrong. Now it calculates a scale in screen space, so the text size should be much more predictable Reviewed By: sergey, Severin Differential Revision: https://developer.blender.org/D7941
2020-06-09Fix Edit Voxel Size label in previewPablo Dobarro
The format string was wrong so it was rendering an extra % character Reviewed By: sergey Differential Revision: https://developer.blender.org/D7942
2020-06-09UI: Avoid rebuilding Outliner tree on simple button interactionsJulian Eisel
E.g. simply on button hover changes, the tree would be needlessly rebuilt. I wouldn't be surprised if this causes side-effects, for some state changes we may still have to do a full rebuild.
2020-06-09Fix T77504: Operator search gives wrong resultsCampbell Barton
Regression in e8ab0137f8766
2020-06-09Nodes: efficient node tree queries and inliningJacques Lucke
This adds two data structures that wrap a node tree. However, they work on different abstraction levels. `NodeTreeRef` is an immutable structure that makes working with a node tree in C++ much more efficient and convenient. It supports various queries efficiently, that are not easily possible using just `bNodeTree`. `DerivedNodeTree` builds on top of `NodeTreeRef`. It contains a flattened view on the node tree, i.e. with node groups being inlined. Every inlined node still knows its "call stack". It supports pretty much the same queries as `NodeTreeRef`. Both data structures come with a dot graph exporter for debugging purposes. Reviewers: brecht Differential Revision: https://developer.blender.org/D7628
2020-06-09Cleanup: Move pointcache dna to separate fileJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D7965
2020-06-09Cleanup: extract function for common function call sequenceJacques Lucke