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-01-07BMesh: remove BMEditMesh.ob pointerCampbell Barton
Remove this pointer since it's linking Mesh data back to the object, where a single edit-mesh may have multiple object users, causing incorrect assumptions in the code. Resolves dangling pointer part of the T72667 crash, although there are other issues which still need to be fixed. In EDBM_op_finish and EDBM_update_generic, full Main lookups have been added which should be replaced with mesh argument or the update tagging moved elsewhere.
2019-12-24Cleanup: remove unused statvis code & struct membersCampbell Barton
This code has been moved into the draw manager.
2019-11-27Cleanup: spelling, clang-formatCampbell Barton
2019-11-13Force sculpting on highest multires levelSergey Sharybin
This is a workaround for T58473 to avoid likely event of ruining sculpted data. Differential Revision: https://developer.blender.org/D6244
2019-11-13Fix T71503: Wrap + displace + multires + Sculpt crashSergey Sharybin
The root of the issue goes to the discontinuity between the way how mesh_calc_modifiers() and BKE_sculpt_multires_active() works. At some point detection of original data usage by a modifier got broken: the mesh_final based check is unreliable because deform-only modifiers will create mesh_final for the connectivity information. This made it so modifier stack evaluation would skip multires evaluation, but the sculpt code will assume the multires is properly applied. This change makes it an explicit check about whether there are any non-deform-only modifiers applied. Pair programming and review together with Bastien, thanks!
2019-11-13Modifiers: Correct deform-only modifiersSergey Sharybin
There was a discontinuity between how deform-only modifiers are applied for the case when result deform mesh is requested and when it is not. Namely, the input mesh will always be guaranteed to present in the former case, but not in the latter. This change makes it so input mesh to deform-only modifiers is always at consistent state. Pair programming and review together with Bastien, thanks!
2019-10-11Depsgraph: Cleanup, promote is_evaluating querySergey Sharybin
This way it might be used for sanity checks in RNA API as well.
2019-09-23Modifiers: every modifier now copies mesh settings, fixing texture space issuesBrecht Van Lommel
Modifier stack evaluation would copy mesh settings other than mesh topology automatically, outside of the individual modifier evaluation. This leads to hard to understand code, and makes it unclear which settings are available in following modifiers, and which only after the entire stack is evaluated. Now every modifier is responsible to ensure the mesh it outputs preserves materials, texture space and other settings, or alters them as needed. Fixes T64739: incorrect texture space for various modifiers Differential Revision: https://developer.blender.org/D5808
2019-09-21Revert "Modifiers: every modifier now copies mesh settings, fixing texture ↵Brecht Van Lommel
space issues" This reverts commit e7a514369fe700dcc5a1fe433c8f709ed9595ded, it introduces a bug in selection in edit mode. Fixes T70103: can't select extruded Vertex Ref T64739
2019-09-19Modifiers: every modifier now copies mesh settings, fixing texture space issuesBrecht Van Lommel
Modifier stack evaluation would copy mesh settings other than mesh topology automatically, outside of the individual modifier evaluation. This leads to hard to understand code, and makes it unclear which settings are available in following modifiers, and which only after the entire stack is evaluated. Now every modifier is responsible to ensure the mesh it outputs preserves materials, texture space and other settings, or alters them as needed. Fixes T64739: incorrect texture space for various modifiers Differential Revision: https://developer.blender.org/D5808
2019-08-25Cleanup: remove unused DM_to_mesh functionCampbell Barton
2019-08-21Cleanup: vertex coordinate access, naming & minor changesCampbell Barton
This also splits vertex access and allocation so it's possible to copy coordinates into an existing array without allocating it.
2019-08-21Cleanup: remove unused derived-mesh API callsCampbell Barton
2019-08-05Fix T68211: Transfer Mesh Data with Custom Normal crash when Auto Smooth is ↵Bastien Montagne
enabled. Code in modifier stack ensuring requested CDLayers are provided was not working very well for polynors in several cases: * We cannot share the orig mesh if we have to generate pnors/lnors; * Generating pnors without lnors was not possible.
2019-06-13Mesh: don't compute CD_ORCO layer when there are no deforming modifiersBrecht Van Lommel
This saves memory and evaluation time for simple static meshes with e.g. a subdivision surface modifier. If no CD_ORCO layer exists then we assume the actual vertex coordinates are equal to the original undeformed coordinates.
2019-06-12Cleanup: spelling in commentsCampbell Barton
2019-06-05Cleanup: Remove unused argumentSergey Sharybin
2019-05-31Fix various missing updates in sculpt mode, when changing modifiers and dyntopoBrecht Van Lommel
This restores the code that updates the sculpt session and PBVH from dependency graph evaluation.
2019-05-31Fix T65285: Crash with Object.to_mesh() in certain conditionsSergey Sharybin
Was happening when modifier stack detected that mesh is not deformed and is not modified and attempted to share result across multiple objects. This was introduced in 2f77119. Now functions which are supposed to return mesh owned by caller will do so again. Shouldn't be a huge impact on memory print since the data layers are referenced.
2019-05-29Fix T58251: Cycles ignores linked meshes when renderingSergey Sharybin
The idea is to share a mesh data-block as a result across all objects which are sharing same original mesh and have no effective modifiers. This mesh is owned by an original copy-on-written version of object data. Tricky part is to make sure it is only initialized once, and currently a silly mutex lock is used. In practice it only locks if the mesh is not already there. As an extra bonus, even viewport memory is also lower after this change. Reviewers: brecht, mont29 Reviewed By: brecht, mont29 Differential Revision: https://developer.blender.org/D4954
2019-05-27Depsgraph: Fix condition inverted by mistakeSergey Sharybin
Fixes T65165: Weights are not displayed in "Weight Paint" with modifiers
2019-05-24Depsgraph: Fix violation of evaluated domainSergey Sharybin
Evaluation must never go to original objects and query them: this is a huge violation of the entire idea of separating state across viewports and render engines. Allowed this to only happen for active dependency graph, where we at least know order of dependency graph update and user input.
2019-04-27Cleanup: comments (long lines) in blenkernelCampbell Barton
2019-04-26Fix T63660: Data Transfer of normals No Longer Working.Bastien Montagne
Logic about computing of poly normals in final stage of modifier stack evaluation was broken, giving also wrong loop normals.
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-04-16Cleanup: avoid adjacent C-style commentsCampbell Barton
Causes clang-format to give different results on a second run.
2019-03-29Cleanup: styleCampbell Barton
2019-03-29Fix T63075: edit mode crash with deforming modifiers, after recent changes.Brecht Van Lommel
2019-03-28Cleanup: better naming, comments, variable scoping in mesh_calc_modifiers.Brecht Van Lommel
2019-03-28Cleanup: remove unused derivedmesh code.Brecht Van Lommel
2019-03-24Cleanup: redundant use of string formatting functionsCampbell Barton
2019-03-18Fix T62633: Model normals not updating in a modifier stack after a deform ↵Bastien Montagne
modifier. A deform-only modifier that needs access to normals need a copy of evaluated mesh with those normals updated, when it is not the first one in the stack. That issue had been partially fixed in Object mode a long time ago (see T23673), but it was still broken for deform-only stacks cases. And it was also completely missing from the Edit mode code (`editbmesh_calc_modifiers()` function).
2019-03-12Cleanup: BLI_utildefines struct macrosCampbell Barton
Use the term "AFTER" instead of "OFS" since it wasn't obvious these macros operate on everything after the struct member passed. Avoid casting to non-const types when only reading.
2019-03-12Cleanup: styleCampbell Barton
2019-03-08Modifier eval: add support for request poly normals layer.Bastien Montagne
Ensure we do get poly normals if they are requested in given cddata mask.
2019-03-07Modifiers Evaluation: generate loop normals when requested.Bastien Montagne
This also fixes T62228. However, datatransfer code is still doing bad things with its source, still working on proper changes here.
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-18doxygen: add newline after \fileCampbell Barton
While \file doesn't need an argument, it can't have another doxy command after it.
2019-02-17Cleanup: rename Mesh.edit_btmesh -> edit_meshCampbell Barton
When bmesh was in a branch we had both edit_mesh and edit_btmesh, now there is no reason to use this odd name.
2019-02-11Cleanup: commentsCampbell Barton
2019-02-06Cleanup: remove redundant doxygen \file argumentCampbell Barton
Move \ingroup onto same line to be more compact and make it clear the file is in the group.
2019-02-01Cleanup: remove redundant, invalid info from headersCampbell Barton
BF-admins agree to remove header information that isn't useful, to reduce noise. - BEGIN/END license blocks Developers should add non license comments as separate comment blocks. No need for separator text. - Contributors This is often invalid, outdated or misleading especially when splitting files. It's more useful to git-blame to find out who has developed the code. See P901 for script to perform these edits.
2019-02-01Logging: Use CLOG for blenkernelCampbell Barton
Part of D4277 by @sobakasu
2019-01-22Fix T58492: smoke flow jitters around flow source when using adaptive domain.Bastien Montagne
This is more like a band-aid than a real fix actually, real fix would be to understand why rendering smoke requires auto texspace to be ON (afaict, this was not the case in 2.7x)... But I've already spent way too much time on this issue, at least now we get better situation than before (i.e. smoke with adaptive domain works well even when orig domain mesh has autospace flag disabled).
2019-01-11Revert "Fix T57371: Generative modifiers in editmode display vertex group ↵Clément Foucault
weights ..." This reverts commit 6dbfd7f6d6bc9bea9556861eba682a3126b5ed40.
2019-01-11Fix T57371: Generative modifiers in editmode display vertex group weights ...Clément Foucault
... incorrectly (or assert) Thanks @angavrilov and @lichtwerk for the fix.
2019-01-10Fix T59631: Crash in Surface Deform modifier Bind when Dynamic Paint is ↵Bastien Montagne
included. We should *never* prevent copying basic mesh CDLayers (vertices etc.), that does not make sense. I guess issue was not in old DM because geometry was duplicated anyway, and in 'normal' modifier stack eval, probably because bare mesh was awlays requested? But we should not have to be explicit here about it.
2018-12-17Correct modifier stack validationSergey Sharybin
2018-12-06Fix T57770: Edit-mesh wireframe cage select failsCampbell Barton