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-08-08Cleanup: use array syntax for sizeof with fixed valuesCampbell Barton
Also order sizeof(..) first to promote other values to size_t.
2020-08-07Cleanup: Blenkernel, 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/blenkernel` module. No functional changes.
2020-08-06Merge branch 'blender-v2.90-release'Bastien Montagne
2020-08-06Move CDData debug print helper from DM to CustomData 'namespace'/files.Bastien Montagne
2020-07-23Cleanup: avoid zero byte memcpyJacques Lucke
Asan reports warnings because of this.
2020-07-15Fix error in recent commitJacques Lucke
Obviously a copy paste error of mine...
2020-07-15Particles: use CD_PROP_FLOAT3 instead of CD_LOCATIONJacques Lucke
`CD_LOCATION` was only used temporarily due to the lack of a better alternative. This also removes the name from `CD_LOCATION` again, because at most one layer of this type should exist.
2020-07-15CustomData: add float2 and float3 data typesJacques Lucke
This adds `CD_PROP_FLOAT2` and `CD_PROP_FLOAT3`. Reviewers: brecht Differential Revision: https://developer.blender.org/D8251
2020-07-10Revert "Fix T78296: Performance - Use Binary Search for MDeformWeight"Brecht Van Lommel
This reverts commit 39b525e0f07fa25dcda54226ade789959b642dec and 3121015dceb1d269d79690c8f15c8e1406c9b09f as tests are failing.
2020-07-10Fix Crash due to recent changesJeroen Bakker
{39b525e0f07fa25dcda54226ade789959b642dec} could write in unallocated space.
2020-07-10Fix T78296: Performance - Use Binary Search for MDeformWeightJeroen Bakker
Use binary search for querying deform weights. Spring 02_020_A.anim.blend on Ryzen 1700X goes from 12.4 to 12.7fps. During profiling it was detected that adding new items to the head was faster than adding to the tail. Reviewed By: Campbell Barton Differential Revision: https://developer.blender.org/D8127
2020-07-09Particles: Create a simulation state for every Particle Simulation nodeJacques Lucke
Every Particle Simulation node has a name (or a path when it is in a node group). This name has to be used in the Simulation modifier on a point cloud to see the particles. Caching has been disabled for now, because it was holding back development a bit. To reset the simulation, go back to frame 1. Currently, there is no way to influence the simulation. There are just some randomly moving points. Changing that is the next step.
2020-07-07Cleanup: spellingCampbell Barton
2020-06-30Fix T78367: triangulate modifier does not preserve sculpt vertex colorsBrecht Van Lommel
2020-06-24Sculpt: rename default vertex color layer name from Col to ColorBrecht Van Lommel
No need for abbreviation here, and helps avoid conflicts with old vertex color layers. Ref T76659
2020-06-23Sculpt Vertex Colors: Initial implementationPablo Dobarro
Sculpt Vertex Colors is a painting system that runs inside sculpt mode, reusing all its tools and optimizations. This provides much better performance, easier to maintain code and more advanced features (new brush engine, filters, symmetry options, masks and face sets compatibility...). This is also the initial step for future features like vertex painting in Multires and brushes that can sculpt and paint at the same time. This commit includes: - SCULPT_UNDO_COLOR for undo support in sculpt mode - SCULPT_UPDATE_COLOR and PBVH flags and rendering - Sculpt Color API functions - Sculpt capability for sculpt tools (only enabled in the Paint Brush for now) - Rendering support in workbench (default to Sculpt Vertex Colors except in Vertex Paint) - Conversion operator between MPropCol (Sculpt Vertex Colors) and MLoopCol (Vertex Paint) - Remesher reprojection in the Voxel Remehser - Paint Brush and Smear Brush with color smoothing in alt-smooth mode - Parameters for the new brush engine (density, opacity, flow, wet paint mixing, tip scale) implemented in Sculpt Vertex Colors - Color Filter - Color picker (uses S shortcut, replaces smooth) - Color selector in the top bar Reviewed By: brecht Maniphest Tasks: T72866 Differential Revision: https://developer.blender.org/D5975
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-09Cleanup: correct enum names in commentsJacques Lucke
2020-05-29Fix LayerTypeInfo for CD_PROP_COLPhilipp Oeser
This was introduced in rBd7282537f016 and had the wrong struct name specified, leading to errors in writing/saving. Stumbled over this when testing a color layer for pointclouds. Differential Revision: https://developer.blender.org/D7882
2020-05-28Cleanup: missing braces warningCampbell Barton
2020-05-27CD_PROP_COL datalayerPablo Dobarro
This implements a generic color datalayer and its functions. Based on D5975. Reviewed By: brecht Differential Revision: https://developer.blender.org/D7838
2020-05-19Merge branch 'blender-v2.83-release'Pablo Dobarro
2020-05-19Fix sculpt mask interpolation in subdivisionsPablo Dobarro
The interpolation function of the datalayer was misssing so the sculpt mask data was corrupted every time a subdivision surface modifier was applied. Reviewed By: jbakker Differential Revision: https://developer.blender.org/D7640
2020-05-09Cleanup: double-spaces in commentsCampbell Barton
2020-04-10Fix T74800 Bevel modifier generates vertex group weight > 1.0.Howard Trickey
Due to floating point approximations, the weights for interpolating the mdeformvert layer could add up to a tiny bit more than 1.0. This was not a problem in practice, but the mesh validation routine used in regression tests was testing for this and therefore failing. Just changed interpolation of mdeformverts to clamp max to 1.0f.
2020-04-08Cleanup: reduce scope of variables in custom data copyingCampbell Barton
2020-03-19Cleanup: `make format` after SortedIncludes changeDalai Felinto
2020-03-18Objects: add Volume object type, and prototypes for Hair and PointCloudBrecht Van Lommel
Only the volume object is exposed in the user interface. It is based on OpenVDB internally. Drawing and rendering code will follow in another commit. https://wiki.blender.org/wiki/Source/Objects/Volume https://wiki.blender.org/wiki/Reference/Release_Notes/2.83/Volumes Hair and PointCloud object types are hidden behind a WITH_NEW_OBJECT_TYPES build option. These are unfinished, and included only to make it easier to cooperate on development in the future and avoid tricky merges. https://wiki.blender.org/wiki/Source/Objects/New_Object_Types Ref T73201, T68981 Differential Revision: https://developer.blender.org/D6945
2020-03-05Sculpt Face SetsPablo Dobarro
Face Sets are the new system to control the visibility state of the mesh in sculpt and paint modes. They are designed to work in modes where brushes are the primary way of interaction and they provide much more control when working with meshes with complex shapes and overlapping surfaces. This initial commit includes: - Sculpt Face Sets data structures and PBVH rendering. - Face Set overlay and opacity controls. - Sculpt Undo support. - Remesher reprojection support. The visibility state of the mesh is also preserved when remeshing. - Automasking and Mesh filter support. - Mask expand operator mode to expand Face Sets (Shift + W) and flood fill areas by connectivity (press Ctrl while expanding). - Sculpt Mode Face Sets and Visibility API. - Sculpt Face Sets creation and visibility management operators. - Operator to randomize the Face Sets colors. - Draw Face Sets brush tool to create and edit the Face Sets. Drawing on the mesh creates a new Face Set. Pressing Ctrl before drawing modifies the Face Set under the brush at the beginning of the stroke. - Updated keymap and menu to work with Face Sets from Sculpt Mode (H to toggle visibility, Alt + H to show all, Shit + H to hide). - Pie menu on the W key with Face common Sets operations. Know limitations: - Multires support. The Face Sets and Visibility API needs to be implemented for Multires. Reviewed By: jbakker, #user_interface, Severin Differential Revision: https://developer.blender.org/D6070
2019-11-26BMesh: support copying & freeing layers by typeCampbell Barton
2019-09-07Cleanup: use post increment/decrementCampbell Barton
When the result isn't used, prefer post increment/decrement (already used nearly everywhere in Blender).
2019-08-27Cleanup: spellingCampbell Barton
2019-08-16Cleanup: spellingCampbell Barton
2019-08-01Fix T66040: Make Data Transfer' Mix Factor multiply with vgroup weights when ↵Bastien Montagne
given, instead of ignoring it. Brings behavior of those options in line with the VGroup editing modifiers ones e.g.
2019-07-03Cleanup debug print left in by mistake.Bastien Montagne
Thanks to @brecht for noticing it. :)
2019-07-03Fix T66369: Excessive WARN messages in console when opening older filesBastien Montagne
CDData checking on file load was not taking into account deprecated CD_MTEXPOLY datatype, which unfortunately shows same weird glitch as CD_PAINT_MASK and CD_FACEMAP ones... Note that it was annoying (due to amount of warnings in console), but totally harmless, since that data type is just deleted anyway. This commit also generally cleans up the CD_MTEXPOLY deprecation code, we have a system to handle that, let's use it, instead of defining local static values to replace it...
2019-06-21Fix T65948: boolean modifier does not merge UV maps with the same nameBrecht Van Lommel
2019-06-17Fix T65357: wrong facemap indices after applying a boolean modifierPhilipp Oeser
Properly initialize custom data layers to default values when copying from a mesh that does not have all the same layers. Differential Revision: https://developer.blender.org/D5003
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-05-01ClangFormat: run with ReflowComments on source/Campbell Barton
Prepare for enabling ReflowComments.
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-22Cleanup: style, use braces for blenkernelCampbell Barton
2019-04-17ClangFormat: apply to source, most of internCampbell Barton
Apply clang format as proposed in T53211. For details on usage and instructions for migrating branches without conflicts, see: https://wiki.blender.org/wiki/Tools/ClangFormat
2019-03-25Fix T62776: Face maps are initialized incorrectlyJacques Lucke
Reviewers: brecht Differential Revision: https://developer.blender.org/D4586
2019-03-15Cleanup: indentation, wrappingCampbell Barton
Mostly functions wrapping args, not confirming to our style guide.
2019-03-08Followup to T62318: Fix on-the-fly that kind of .blend file cddata corruption.Bastien Montagne
Remove cddata layers which are not supposed to be written in .blend file, when reading it. This is a cheap and simple check, which also gives us forward compatibility in case we decide some day to make a currently un-written layer type to be written in .blend files.
2019-03-08Fix T62318: Blender crash whith 'corrupt' customdata (CD_BWEIGHT).Bastien Montagne
Mistake in rBab0bc65c24bd, in conversion of static 'common' sets of masks, BWEIGHT slipped in CD_MASK_MESH (probably from copy/paste from CD_MASK BAREMESH). Note that having it in CD_MASK_BAREMESH but not CD_MASK_MESH looks rather counter-intuitive, but this is not the time for that kind of cleanup. Went over whole conversion again, and found two other mistakes, should really have recheck that before committing...
2019-03-07Refactor CDData masks, to have one mask per mesh elem type.Bastien Montagne
We already have different storages for cddata of verts, edges etc., 'simply' do the same for the mask flags we use all around Blender code to request some data, or limit some operation to some layers, etc. Reason we need this is that some cddata types (like Normals) are actually shared between verts/polys/loops, and we don’t want to generate clnors everytime we request vnors! As a side note, this also does final fix to T59338, which was the trigger for this patch (need to request computed loop normals for another mesh than evaluated one). Reviewers: brecht, campbellbarton, sergey Differential Revision: https://developer.blender.org/D4407
2019-02-28CustomData: add function to clear layers' flags.Bastien Montagne
We only had one to set those flags, up til now...
2019-02-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.