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-11-09Cleanup: more renaming in the render/ module for consistencyBrecht Van Lommel
2020-11-09Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-09Fix T82495: assert with cast modifier in edit-modeCampbell Barton
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-08Fix T81651, exact boolean modifier incorrect if operand hidden.Howard Trickey
The code was trying to ignore hidden geometry when doing boolean, which is correct when used as a tool, but not when a modifier. Added a "keep_hidden" argument to bmesh_boolean to distinguish the two cases. Also fixed a bug when the tool is used with hidden geometry that is attached to unhidden geometry that is deleted by the operation.
2020-11-06Cleanup: Clang-Tidy modernize-use-nullptrSybren A. Stüvel
Replace `NULL` with `nullptr` in C++ code. No functional changes.
2020-11-06Cleanup: Render Module: move header files to main directoryAaron Carlisle
Move headers files from `render/extern/` to `render/` Part of T73586
2020-11-06Cleanup: use ELEM macro (>2 args)Campbell Barton
2020-11-06Cleanup: use ELEM macroCampbell Barton
2020-11-04Modifiers: Fix wrong object when setting error in modifierJacques Lucke
This was introduced in rBe4facbbea54019abe257787a7e9e8594a6ce3609.
2020-11-04Merge branch 'blender-v2.91-release' into masterJacques Lucke
2020-11-04Modifiers: return empty mesh in case of error in Volume to Mesh modifierJacques Lucke
Passing on the original mesh does not really make sense. For that one should simply disable the modifier.
2020-11-04Fix T82393: Volume to Mesh modifier with sequence fails during renderingJacques Lucke
The issue was that the volume for the current frame might not have been loaded already by the time the modifier runs. The solution is simply to make sure that the volume is loaded. This is similar to the Volume Displace modifier.
2020-11-03Merge branch 'blender-v2.91-release'Antonio Vazquez
2020-11-03Docs: add comments to some surface deform internal structuresCampbell Barton
2020-11-03Fix T82074: Volume to Mesh normals are invertedJacques Lucke
OpenVDB seems to have a different winding order convention. Reviewers: brecht Differential Revision: https://developer.blender.org/D9434
2020-11-03Merge branch 'blender-v2.91-release'Campbell Barton
2020-11-03Fix T81988: Surface Deform "Bind" causes vertices to spikeCampbell Barton
Surface deform weight calculation assigned weights in a non-uniform way that caused vertices to deform upon binding. This was caused by the face-corner angle being used in calculations which where squared & scaled. Causing a triangle fan of many thin faces to have a much greater influence compared to the same shape made from a single triangle. Change the calculation of the weight so each face-corner is scaled by it's angle.
2020-11-01Fix T82089 Boolean on empty mesh with collection fails.Howard Trickey
For the fast solver, there was an optimization carried over from the non-collection case for empty meshes which did not work in the chained boolean code for collection operands. Removed that optimization in the collection case.
2020-11-01Fix T82089 Boolean on empty mesh with collection fails.Howard Trickey
For the fast solver, there was an optimization carried over from the non-collection case for empty meshes which did not work in the chained boolean code for collection operands. Removed that optimization in the collection case.
2020-10-30Cleanup: Use an enum to set instanced panel expansionHans Goudey
This commit uses an enum to access expansion for specific panels for each modifier, constraint, etc. Even though these values are quite simple, this can help make the code more explicit when the ui_expand_flag is accessed directly. Also update comments about this bitfield to make them consistent.
2020-10-27Multires: Remove simple subdivision typeSergey Sharybin
The simple subdivision as a type only causes issues like no-continuous normals across edges, inability to reliably switch the type and things like this. The new subdivision operators supports wider variety of how to add details to the model, which are more powerful than a single one-time decision on the subdivision type. The versioning code is adjusting topology converter to specify all edges as infinitely sharp. The reason for this (instead of using settings.is_simple) is because in a longer term the simple subdivision will be removed from Subsurf modifier as well, and will be replaced with more efficient bmesh-based modifier. This is finished up version of D8436. Differential Revision: https://developer.blender.org/D9350
2020-10-26Merge branch 'blender-v2.91-release'Philipp Oeser
2020-10-26UI: Datatransfer modifier: set mix factor inactive when not in usePhilipp Oeser
For Customdata layer copying, interpolation with the mixfactor is only done for certain mix modes, now set the UI inactive if the mixfactor is not in use. Namely, the modes are the "Above / Below Threshold" which are only used for flags, colors and normals and mixing is not supported in these cases. Spotted while looking into T81914. Differential Revision: https://developer.blender.org/D9327
2020-10-26Modifiers: include the object & modifier when logging errorsCampbell Barton
Without this, there was no way of finding out which object, modifier combination caused the error, making the logs not very useful for debugging.
2020-10-24UI: Capitalization CorrectionsYevgeny Makarov
Approximately 141 changes of capitalization to conform to MLA title style. Differential Revision: https://developer.blender.org/D8392 Reviewed by Julian Eisel
2020-10-22Fix T81909: Translation missing for some labels in modifier panelsHans Goudey
Every label string in uiItem* calls needs an IFACE_ call.
2020-10-21Preferences: separate feature flags for geometry nodes and point cloud typeJacques Lucke
Those two features are not directly related and one might be activated in master earlier than the other. WITH_PARTICLE_NODES was removed, because we continue the project under the name "Geometry Nodes".
2020-10-20Cleanup: warning on windowsJacques Lucke
2020-10-20Simulation: remove particle nodes with outdated designJacques Lucke
The design for how we approach the "Everything Nodes" project has changed. We will focus on a different part of the project initially. While future me will likely refer back to some of the code I remove here, there is no point in keeping this code around in master currently. It would just confuse other developers working on the project. This does not remove the simulation modifier and data block. Those are just cleaned up, so that the boilerplate code can be reused in the future.
2020-10-20Volumes: simplify volumes in modifiers or on loadJacques Lucke
This changes how the simplify volumes setting works. Before, it only affeted viewport rendering. This was an issue, because all internal computations would still have to happen on the high resolution volumes. With this patch, the simplify setting already affects file loading and procedural generation of volumes. Rendering does not have to care about the simplify option anymore, it just gets the correct simplified version from the depsgraph. Reviewers: brecht Differential Revision: https://developer.blender.org/D9176
2020-10-19Spelling: Then Versus ThanHarley Acheson
Corrects incorrect usages of the words 'then' and 'than'. Differential Revision: https://developer.blender.org/D9246 Reviewed by Campbell Barton
2020-10-19Cleanup: Use BLI string functionsHans Goudey
It's better not to assume that strings passed as arguments will have the proper size.
2020-10-19Volumes: new Volume to Mesh modifierJacques Lucke
This modifier is the opposite of the recently added Mesh to Volume modifier. It converts the "surface" of a volume into a mesh. The "surface" is defined by a threshold value. All voxels with a density higher than the threshold are considered to be inside the volume, while all others will be outside. By default, the resolution of the generated mesh depends on the voxel size of the volume grid. The resolution can be customized. It should be noted that a lower resolution might not make this modifier faster. This is because we have to downsample the openvdb grid, which isn't a cheap operation. Converting a mesh to a volume and then back to a mesh is possible, but it does require two separate mesh objects for now. Reviewers: brecht Differential Revision: https://developer.blender.org/D9141
2020-10-17UI: Tweak decimate modifier layoutHans Goudey
- Expand the "Type" toggle at the top. This is consistent with other modifiers where there is a "Type" option at the top. It conveys the property's importance and makes it faster to switch it. - Expand the "Delimit" option vertically so the text isn't squashed. There isn't enough space on one line for this, and is has to be expanded because more than one option can be selected. This is also consistent with how "multi-select" enums are often displayed, like the 3D view snapping settings. | Before | After | | {F9000996} | {F9000985} |
2020-10-14Cleanup: spellingCampbell Barton
2020-10-13Fix T81467: Crash with KD-Tree Weld ModifierGermano Cavalcante
The problem is related to the `use_index_order` option of `BLI_kdtree_3d_calc_duplicates_fast`. With this option, the higher index is expected to be less than `tree->nodes_len`.
2020-10-12Cleanup: use openvdb matrices properlyJacques Lucke
Before I was double confused about how openvdb stores its transformation matrices. Now, I know they have the same layout physically in memory, but are logically transposed (i.e. the translation is in the last row instead of in the last column).
2020-10-12Volumes: reduce step and default of strength in Volume Displace modifierJacques Lucke
The strength has a high impact on performance. With the previous step and default one could easily and accidentally make Blender unusably slow, because of a too high displacement strength.
2020-10-12Volumes: use bounding box diagonal to compute adaptive voxel sizeJacques Lucke
Using the diagonal has the benefit, that the adaptive voxel size changes when the bounding box changes its shape in any way. Having a changing voxel size looks bad when rendering an animation, therefore one should usually use a fixed voxel size when rendering an animated volume. This becomes apparent earlier, when the adaptive voxel size changes when the bounding box changes in any way. Otherwise this can easily go unnoticed when rendering only a few frames of an animated volume.
2020-10-10Exact Boolean: let Collection be empty.Howard Trickey
With an empty collection, Exact Boolean performs the useful function of removing self-intersections.
2020-10-10Cleanup: remove unnecessary commentsCampbell Barton
2020-10-09Volumes: lower minimal voxel size in Mesh to Volume modifierJacques Lucke
The 0.1 limit was too large. The issue with making it smaller is that one can easily crash blender by making it to small. To counteract this, the step has been reduced as well. A voxel size/amount of 0 disables the modifier.
2020-10-07Refactor `BKE_id_copy_ex` to return the new ID pointer.Bastien Montagne
Note that possibility to pass the new ID pointer as parameter was kept, as this is needed for some rather specific cases (like in depsgraph/COW, when copying into already allocated memory). Part of T71219.
2020-10-07Volumes: new Volume Displace modifierJacques Lucke
This modifier uses a 3D texture to displace a volume. For now, this can only use the previously existing texture system, because we do not have a better alternative yet. Still, the results can be quite good and interesting. See D9075 for some examples. Reviewers: brecht, simonthommes Differential Revision: https://developer.blender.org/D9075
2020-10-05Fix T80897: Complex solidify crash when special ngons are mergedHenrik Dick
This has serious performance implications as the additional check makes it O(N^2) when there are a lot of merged vertices. The goal is to move the merging to the weld modifier where it would be much easier to optimize. Ref D8946
2020-10-05Fix T80893: Complex solidify special case with singularityHenrik Dick
Ref D8929
2020-10-05Fix T80895: Complex solidify compare edges by contentHenrik Dick
Even if the index of the edge is not equal the content can be equal if it has been merged. So compare the content. Ref D8931
2020-10-05Modifiers: Use vertex group options for complex solidify flat facesHenrik Dick
Ref D8945
2020-10-05Fix T80269: Match material offset in solidify modesHenrik Dick
This commit to complex solidify swaps the side of the geometry which is affected by the material offset when the normal flip option is enabled. This matches simple solidify and is considered correct/useful. Ref D8948