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
2018-12-17Correct modifier stack validationSergey Sharybin
2018-12-06Fix T57770: Edit-mesh wireframe cage select failsCampbell Barton
2018-12-05Cleanup: unused functionCampbell Barton
2018-12-05Implement bvhtree.fromObjectDalai Felinto
Passing depsgraph instead of scene, since a scene does not fully define the state of object you want to use for the BVH. Also, mesh_create_eval_final_view and mesh_create_eval_final_render are pretty much the same, so mesh_create_eval_no_deform and mesh_create_eval_no_deform_render are as well. Issue reported on: T58734 Reviewers: sergey https://developer.blender.org/D4032
2018-12-04Fix T57620: display custom normals in Edit Mode.Alexander Gavrilov
Since it seems that CD_ORIGINDEX is not available for loops, the only choice is to simply use the loop normals already computed by depsgraph after evaluating modifiers. This revealed a bug where the Auto Smooth settings would be lost from the mesh after complex modifiers, or after edit mesh to mesh conversion, so restoring them is needed to get correct results.
2018-12-03Depsgraph: completely move customdata_mask to the ID node.Alexander Gavrilov
Move all mask-related fields from Object and OperationDepsNode to Object_Runtime and IDDepsNode. Auto-apply DEG_TAG_GEOMETRY if the mask changes after DEG rebuild. Update DEG API and all code that uses it. This fixes "source mesh data is not ready" errors from Data Transfer modifier when parameters are changed in the UI after the recent mesh_get_eval_final fix. Reviewers: sergey Differential Revision: https://developer.blender.org/D4025
2018-12-03Fix T57858: Add validation callback to CustomData layers.Bastien Montagne
Our mesh validation was only checking cd layout so far, not their actual data. While this might only be needed for a few types, this is a required addition for things like imported UVs, else we have no way to avoid nasty things like NANs & co. Note that more layer types may need that callback, time will say. For now added it to some obvious missing cases...
2018-12-03Depsgraph: assert that mesh_get_eval_final/deform aren't used in eval.Alexander Gavrilov
Using those functions during multithreaded evaluation is a sure way to have a race condition and crash.
2018-12-01Fix more cases of evaluated mesh being built for non-COW objects.Alexander Gavrilov
2018-12-01Fix usage of mesh_get_eval_final in vertex selection.Alexander Gavrilov
It's a very bad idea to call this on non-COW instances - see T58150. Also, when rebuilding mesh it's better to accumulate mask flags to avoid possible repeated rebuilds from different users.
2018-12-01Texture Paint: avoid rebuilding evaluated mesh on first stroke.Alexander Gavrilov
Ensure all relevant CustomDataMask bits are set during normal evaluation.
2018-11-25Fix mesh_build_data() calling mesh_finalize_eval() before copying texspace.Bastien Montagne
mesh_finalize_eval() may set ob->data to evaluated mesh, needs to be done *after* call to BKE_mesh_texspace_copy_from_object(), else that one is meaningless. Related to investigations on T57985, but does not solve it at all. :(
2018-11-20Cleanup: styleCampbell Barton
2018-11-20Modifier stack: Only ensure derived mesh when USE_DERIVEDMESH is definedSergey Sharybin
This is more an internal transition away from derived mesh.
2018-11-20Modifier stack: Use evaluated mesh to check normalsSergey Sharybin
2018-11-06Shrinkwrap: new mode that projects along the target normal.Alexander Gavrilov
The Nearest Surface Point shrink method, while fast, is neither smooth nor continuous: as the source point moves, the projected point can both stop and jump. This causes distortions in the deformation of the shrinkwrap modifier, and the motion of an animated object with a shrinkwrap constraint. This patch implements a new mode, which, instead of using the simple nearest point search, iteratively solves an equation for each triangle to find a point which has its interpolated normal point to or from the original vertex. Non-manifold boundary edges are treated as infinitely thin cylinders that cast normals in all perpendicular directions. Since this is useful for the constraint, and having multiple objects with constraints targeting the same guide mesh is a quite reasonable use case, rather than calculating the mesh boundary edge data over and over again, it is precomputed and cached in the mesh. Reviewers: mont29 Differential Revision: https://developer.blender.org/D3836
2018-10-24Cleanup: Remove unused modifiers callbackSergey Sharybin
Was only used by subsurf in the past years, it is unlikely other modifiers will every need this any time soon.
2018-10-15Cleanup: unused functionsCampbell Barton
2018-10-15Mesh: remove DerivedMesh for boundbox calculationCampbell Barton
Fixes edit-mesh not having a boundbox calculated for it.
2018-10-15Cleanup: remove unused functionsCampbell Barton
2018-10-12Mesh: remove derived mesh for nurbs conversionCampbell Barton
2018-10-11Cleanup: make BKE_mesh_ensure_normals_for_display publicCampbell Barton
2018-10-10Fix modifier cage option being overwrittenCampbell Barton
Editmesh modifier calculation behaved as if eModifierMode_OnCage was enabled for all modifiers. Remove assignment after all modifiers are calculated.
2018-10-10Cleanup: namingCampbell Barton
2018-10-10Correct bad statvis default in recent commitCampbell Barton
2018-10-10Cleanup: namingCampbell Barton
- mesh_calc_modifiers & editbmesh_calc_modifiers now follow similar naming. - me and mesh were too easily confused in mesh_calc_modifiers (remove 'me', access ob->data).
2018-10-10Cleanup: add back add_shapekey_layers to modifier stackCampbell Barton
Looks like this might not be used, add back just in case.
2018-10-10Cleanup: uncomment statvis calculation (still disabled)Campbell Barton
2018-10-10Modifier: use simplified bmesh -> mesh conversionCampbell Barton
2018-10-09Fix Weight Paint display with Subdivision Surface modifier.Alexander Gavrilov
The flag used to be set by the now removed old weight paint coloring code.
2018-10-09Edit Mesh: replace DerivedMesh w/ MeshCampbell Barton
DerivedMesh is now removed from edit-mesh modifier evaluation.
2018-10-09Cleanup: namingCampbell Barton
Use BKE_mesh_* prefix for mesh module.
2018-10-09Cleanup: remove unused EditDerivedBMeshCampbell Barton
2018-10-09Edit Mesh: remove derived-mesh from crazy-space calculationCampbell Barton
2018-10-09Modifier: move edit-mesh calculation from DerivedMesh to MeshCampbell Barton
2018-10-09Modifier: add non derived mesh modifier wrappersCampbell Barton
Rename modifier_deformVerts_ensure_normals & modifier_applyModifier_ensure_normals with wrappers that match 2.7x convention.
2018-10-09Cleanup: namingCampbell Barton
Rename DerivedMesh modifier functions to make room for mesh versions.
2018-10-01Remove obsolete weight paint color computation code.Alexander Gavrilov
The new weight paint drawing code converts weight to color directly in the shader, so the old CD_PREVIEW_MLOOPCOL based code is not needed anymore.
2018-09-27Cleanup: remove unused DerivedMesh code.Sebastian Parborg
Differential Revision: https://developer.blender.org/D3736
2018-09-25Edit Mesh: Move Edit Mesh display settings to overlay'sClément Foucault
This makes the Edit Mesh display settings common to all objects. They can also be set differently per viewport. Modifying extra data (seams, sharp edges etc...) will no longer set them automaticaly visible. Bumping version because we need to force set all extra draw options for older files.
2018-09-24Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-24Merge branch 'master' into blender2.8Brecht Van Lommel
2018-09-24Spelling fixes in comments and descriptions, patch by luzpaz.Brecht Van Lommel
Differential Revision: https://developer.blender.org/D3719
2018-09-21Cleanup: convert smoke modifier from DerivedMesh to Mesh.Brecht Van Lommel
2018-09-20Cleanup: move DerivedMesh wrappers for modifiers further down the hierarchyJacques Lucke
The main goal of this patch is to cleanup the interface of every modifier. More specifically the interface of modifiers should be DerivedMesh-free. Internally some modifiers still use DerivedMesh. However I think it is better when the wrappers are in the modifiers so that higher level functions can use the simplified interface. This patch removes the applyModifier_DM and applyModifierEM_DM functions. In a previous patch (rB3614d9d) the other functions that used DerivedMesh have been removed. Reviewers: brecht
2018-09-19Cleanup: Remove some DerivedMesh wrappers for modifiersJacques Lucke
Specifically the deformVerts_DM, deformMatrices_DM, deformVertsEM_DM and deformMatricesEM_DM functions are not used anymore. Reviewer: brecht
2018-09-06Cleanup: Remove unused modifier evaluation flagSergey Sharybin
2018-08-16Cleanup: Use dedicated function to copy mesh during evaluation processSergey Sharybin
It is rather fully annoying to have same sets of obscure flags all over.
2018-08-13Subsurf: Remove OpenSubdiv options from modifierSergey Sharybin
There are following reasons to do so: - The plan is to replace it with some sort of object or viewport option, so we can apply OpenSubdiv subdivisions on top of modifier stack and keep modifier stack purely CPU side. This will solve issues when adding some relation in scene will force modifier to be evaluated on CPU. - With new upcoming OpenSubdiv based CPU modifier implementation we can cache topology similar to what GPU side was doing, which will already be reasonably faster. - OpenSubdiv GPU does not work since the OpenGL version bump, and is to be rewritten with all the adaptive refine options kept in mind. Since OpenSubdiv GPU was already broken and was only causing object to become invisible, there is no reason to keep having that option in the modifier. Reviewers: brecht Reviewed By: brecht Differential Revision: https://developer.blender.org/D3598
2018-07-31Cleanup: use static variablesCampbell Barton