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-03Cleanup: Blendkernel, Clang-Tidy else-after-return fixes (incomplete)Sybren A. Stüvel
This addresses warnings from Clang-Tidy's `readability-else-after-return` rule in the `source/blender/blenkernel` module. Not all warnings are addressed in this commit. No functional changes.
2020-07-03Move MovieClip to new undo cache management system.Bastien Montagne
2020-07-03UI: Use sliders and [0, 1] ranges in ocean modifierHans Goudey
The ocean modifier has two properties that use a [0, 10] hard min and hard max. The values act as factors though, so it makes more sense to use sliders and a 0 to 1 range. This commit also bumps the file subversion to avoid repeatedly applying the change to the properties' range. Differential Revision: https://developer.blender.org/D8186
2020-07-03Move Scene's cache management during undo to new system.Bastien Montagne
2020-07-03Clang-Tidy: Enable readability-redundant-control-flowHans Goudey
2020-07-03Move volume to new cache management system for undo.Bastien Montagne
2020-07-03Clang-tidy: enable readability-container-size-empty warningJacques Lucke
Reviewers: sergey Differential Revision: https://developer.blender.org/D8197
2020-07-03Cleanup: use nested namespacesJacques Lucke
2020-07-03Cleanup: Use trailing underscore for non-public data membersJacques Lucke
This makes the code conform better with our style guide.
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03Move bSound cache handling during undo to new system.Bastien Montagne
2020-07-03Cleanup: do not use magic values for enums...Bastien Montagne
2020-07-03New undo cache management: Add Image IDs.Bastien Montagne
Some notes: * `Image.cache` acts as some kind of 'main' cache, when it is NULL (could not be restored), other caches should also be cleared. Oddly enough, previous code was not clearing **all** caches, could not find any reason for that behavior, so new code does a full clear. * `imamap` is still used for Node previews from scenes' compositor, however this is actually fully disabled in `direct_link_node()`. * For render slots we cannot use offsetof as third part of the cache key, so we are using a hash of the slot's name instead. As far as I can tell, this fixes T76989: Visual glitches when undo after reload multiple images by script (in Material Preview).
2020-07-03Add key structure and hashing utils for ID caches.Bastien Montagne
Part of D8183, refactoring how we preserve caches across undo steps in readfile code.
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03GPencil: Cleanup more comments (cont)Antonio Vazquez
2020-07-03GPencil: Cleanup move functions to geom from modifierAntonio Vazquez
2020-07-03GPencil: Cleanup Doxygen comments (cont)Antonio Vazquez
2020-07-03Cleanup: Fluid renaming from old 'manta' naming to new 'fluid' namingSebastián Barschkis
Changed variable names from mmd, mds, mfs, and mes to fmd, fds, ffs, and fes. The author of this commits lights a candle for all the merge conflicts this will cause.
2020-07-03GPencil: Cleanup Doxygen commentsAntonio Vazquez
2020-07-03Fix T77559 Avoid wrong ob->imat leading to several bugsClément Foucault
This fixes T77559 Scale to zero in object mode unable to select
2020-07-02Fluid: Added offset to control frame rangeSebastián Barschkis
Added an offset field to control when to load the simulation files. Since this is a very small but helpful addition it is in my view safe to commit at this point of the bcon cycle.
2020-07-02Fix crash calculating vertex parent in edit-modeCampbell Barton
Regression in deaff945d0b96.
2020-07-02Fix T76886: GPencil - Flickering when use Background or Camera imageAntonio Vazquez
The problem was if some stroke was empty and the changed flag was set to the last stroke wrongly.
2020-07-01Cloth: use the original vertex positions to build internal springs.Alexander Gavrilov
In order to ensure correct operation of the rest shape key feature, it's necessary to create a temporary copy of the mesh with rest vertex positions to run the BVH lookup on. If the rest shape key isn't used, there is no need for additional overhead.
2020-07-01Fix missing GPU image free in background modeBrecht Van Lommel
This is legacy code from before Eevee and Workbench rendering in background mode was supported. Avoid memory leak by only queueing GPU textures to be freed when we know they have been allocated. Differential Revision: https://developer.blender.org/D8172
2020-07-01Fix ID reference counting asserts when freeing COW pose channels.Alexander Gavrilov
Take the do_id_user flag into account when freeing custom properties attached to pose channels, so that pointer properties don't cause assertion failures when DEG frees its COW instances.
2020-07-01Cleanup: spellingCampbell Barton
2020-06-30Sculpt: Refactor persistent base to make it usable from other toolsPablo Dobarro
This renames the layer persistent base and adds new API functions to get the mesh state from the base, so it can be used from other tools and replaced in the future with a better system. Reviewed By: sergey Maniphest Tasks: T77738 Differential Revision: https://developer.blender.org/D8003
2020-06-30Pointcache: store owner_id instead of object in PTCacheIDJacques Lucke
The new simulation type can also reference a point cache, but it is not an object. Reviewers: brecht Differential Revision: https://developer.blender.org/D8097
2020-06-30Sculpt: Pose Brush option to affect loose partsPablo Dobarro
This option allows posing meshes with different disconnected elements using the Pose Brush. This is achieved by doing the following: - Creating an ID per vertex that stores the connected component of that vertex. - By using those IDs, one fake topology connection is created per vertex to the nearest vertex in a different ID. The maximum distance to create that connection is determined by the "Max Element Distance" property. These fake connectivity neighbors are used in the Sculpt API functions iterators, so all the algorithms of the Pose Brush can run without modifications as if everything was part of the same mesh. In order to make this work, the "Connected only" property of the Pose Brush needs to be disabled. This will add an extra performance cost to the Pose Brush and its preview. To achieve optimal results, max element distance should be as low as possible. Reviewed By: sergey, campbellbarton Differential Revision: https://developer.blender.org/D7282
2020-06-30Nodes: store nodes by bNodeType instead of idnameJacques Lucke
This is more efficient in most cases.
2020-06-30LibOverride: Add proper handling of shapekeys to core override code itself.Bastien Montagne
2020-06-30LibOverride: Add concept of 'embedded'/'virtual' override.Bastien Montagne
IDs like embedded ones (master collections, root node trees) cannot be linked, and thus cannot be real override themselves. Since they are managed by their owner ID, that one will also have the overrides for their locally edited properties. We still need a way to mark them as overridden though, for various UI and override-internal purposes, this is done using a new ID flag. Note that since Shae Keys are not linkable, and their pointers are not editable in RNA, they are also considered as embedded from override point of view.
2020-06-30Cleanup: LibOverride: Naming.Bastien Montagne
2020-06-30LibOverride: Fix improper update of depsgraph relations.Bastien Montagne
2020-06-30Cleanup: LibOverride: Replace raw pointers checks by proper macros.Bastien Montagne
This is cleaner, but also crucial to avoid weird issues when behaviors of those checks are modified...
2020-06-30Cleanup (from clang format)...Bastien Montagne
2020-06-30Fix T78367: triangulate modifier does not preserve sculpt vertex colorsBrecht Van Lommel
2020-06-29UI: Add shortcuts for modifier panelsHans Goudey
The shortcuts act on the modifier with its panel under the mouse. The following shortcuts are enabled by default: - Remove modifier: X, Delete - Apply modifier: Ctrl A - Duplicate modifier: Shift D More shortcuts can be added in the keymap. Each panel can now store a custom data RNA pointer, and a new function is added to get the custom data for the panel under the cursor. This custom data could be used to refactor the "List Panel System" to generalize it and integrate it further with RNA. The same functionality will be added in further commits where it applies to constraints, grease pencil modifiers, and effects. Differential Revision: https://developer.blender.org/D8031
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-29Fix ShapeKeys not being deleted together with their owner ID.Bastien Montagne
Consistency with e.g. copying (copying a mesh also duplicates its shapekey typically). Baby step towards getting rid of this horrible ID, some day... Note that for now we only do that when taking BMain into account, fancy code dealing with non-main IDs and such has to deal with those itself.
2020-06-29Fix ID_swap not keeping original recalc flags.Bastien Montagne
Note that we might be missing more things there still, maybe some tags e.g. should also be swapped?
2020-06-29Add utils to remove an ID from the relations runtime data in Main.Bastien Montagne
2020-06-29Fix T78323: Enable Unified and Secondary colors for Scultp Vertex ColorsPablo Dobarro
The report does not include any file, but probably that file is using the settings for unified colors, which are currently not available in the UI, so it always paints black. This enables unified colors and secondary colors for sculpt vertex colors, so it should solve that issue. Unified color does not make much sense now as the Paint tool is the only one that has paint capabilities, but it will do in the future when sculpt and paint at the same time is enabled and the paint capability is added to more tools. Reviewed By: sergey Maniphest Tasks: T78323 Differential Revision: https://developer.blender.org/D8136
2020-06-29Fix Smear Tool too weak on high poly meshesPablo Dobarro
The defaults for the Smear tool were making it too weak in high poly meshes, specially the alpha/pressure option enabled by default. Now this option is disabled, it has a linear pressure curve and less spacing. Reviewed By: sergey Differential Revision: https://developer.blender.org/D8134
2020-06-29Cleanup: use blender::bke namespace in simulation.ccJacques Lucke
2020-06-29VSE: Fix type mismatch introduced in rB8bcfa0d1fb9fRichard Antalik
Pass `IMB_Proxy_Size` to `seq_can_use_proxy` and remove duplicate check.
2020-06-29Fix T78401: Convert Mesh to Grease Pencil with empty material slot crashesPhilipp Oeser
Also create the 'simple fill' in case there are only empty material slots. Maniphest Tasks: T78401 Differential Revision: https://developer.blender.org/D8151
2020-06-29Cleanup: use std::make_unique instead of blender::make_uniqueJacques Lucke
This is possible, because we use C++17 now.