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-17RNA: Add Mesh.count_selected_items()Campbell Barton
Needed for context menu checks.
2018-12-17Fix T58652: Crash editing shape keys weirdness with instancesSergey Sharybin
This is a second attempt to get the crash fixed. The original fix worked, but it was reverted by d3e0d7f0825. Now the logic goes as: - All pointers which we can not have shared (the ones which are owned by the runtime) are cleared. - The rest of runtime stays untouched. This seems to be enough to keep particles happy.
2018-12-17DNA: clear / remove deprecated flagsCampbell Barton
- Clear deprecated flags for ID's: Scene, Sequence, World, Object & Mesh. - Clear deprecated flags for Spaces: outliner, 3D view & image. - Remove unused `Mesh.drawflag` - Remove unused `USER_ALLWINCODECS`, `USER_MMB_PASTE`. - Remove `V3D_SOLID_TEX` & `V3D_ZBUF_SELECT` - used in a few areas. - Flip `Object.empty_image_visibility_flag` (avoids do-version on each new flag) - Rename 'Backside' -> 'Back' in context of drawing - showing 'Back' makes sense.
2018-12-14Fix broken particle distribution after recent fixSergey Sharybin
2018-12-12Merge branch 'master' into blender2.8Campbell Barton
2018-12-12Cleanup: use colon separator after parameterCampbell Barton
Helps separate variable names from descriptive text. Was already used in some parts of the code, double space and dashes were used elsewhere.
2018-12-10Fix T59087: Empty meshes have large bound-boxCampbell Barton
Initialize to default values for meshes w/o vertices, note that zeroing for BKE_object_boundbox_calc_from_mesh matches old derived mesh code.
2018-12-08Fix T51057 Modifiers lose bevel weight and creaseHoward Trickey
This is for 2.80 (though bug I mistakenly merged into was for 2.78. Duplicate bugs T58127, T58411, T58440, and T58789 all fixed. Bevel weights and crease are not real Mesh layers so get lost on coversion of mesh to bmesh unelss the mesh's cd_flag member tells the converter to create layers for them. Most code the copies or partially copies meshes uses mesh_new_nomain_from_template_ex, so copied the flag there.
2018-11-27Revert "Fix texture space not updating in edit mode."Campbell Barton
This reverts commit 3a038db576e97c0e720a92af05a218ed71ed121a. Caused CoW crash switching from edit to sculpt mode.
2018-11-27Revert "Inline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc ↵Campbell Barton
to avoid confusion." This reverts commit e6322abad23a8ae71b72e54befffc17ae35e30d9.
2018-11-26Inline function BKE_mesh_boundbox_calc inside BKE_mesh_texspace_calc to ↵mano-wii
avoid confusion.
2018-11-26Fix texture space not updating in edit mode.mano-wii
2018-11-26Fix T57985: Out of the edit mode, the texture space is affected by the ↵Bastien Montagne
modifiers of a mesh. Go for the simple solution for now (disable auto-texspace in evaluated mesh). Proper fix would be part of known TODO redesign of bbox handling. Solution suggested by @sergey, thanks!
2018-11-25Fix T57070, T57389, and other bbox-related issues with meshes.Bastien Montagne
Thinks whole bbox code needs a complete rewrite, one can see a lot of old history in it, it has way too many functions doing nearly-the-same-thing(c), it spreads in very inconsistent ways across a lot of files, ... But have no time for this right now, and would not be a good idea with Beta comming up close anyway. So for now going the simple and (hopefully) sane & safe way: forbid object-level functions to affect data-level bbox. Mesh and curve ones would generate bbox in obdata instead of object, for some reason (all other obdata types only use object's bbox ever). That may have been working in old ages, but with CoW and threaded depsgraph this is just calling for piles of issues.
2018-11-21transform_snap_object: Use the texture space bound box to test the need to ↵mano-wii
snap to meshes in edit mode. Before a value for bound box was stored in a local cache.
2018-11-20Cleanup: use const mesh arg to BM_mesh_bm_from_meCampbell Barton
Needed for D3966
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-11-06BKE_mesh: add a utility to get edge indices from looptri.Alexander Gavrilov
Not all three sides of a tesselated mesh triangle are guaranteed to be original mesh edges, so a somewhat complicated check is required to detect which ones are real. It seems that until now there was no utility function for that, only some example code.
2018-10-18Cleanup: Remove more #if 0 blocksJacques Lucke
Continuation of https://developer.blender.org/D3802 Reviewers: brecht Differential Revision: https://developer.blender.org/D3808
2018-10-11Merge branch 'master' into blender2.8Campbell Barton
2018-10-10Modifier: Fix cage option for deform modifiersCampbell Barton
Show-on-cage and show-in-editmode options now work as it did in 2.7x (but only for deformation).
2018-10-10Modifier: use simplified bmesh -> mesh conversionCampbell Barton
2018-10-10BMesh: simple bmesh -> mesh for evaluationCampbell Barton
Copied from CDDM_from_bmesh, the modifier stack doesn't need to handle shape keys, vertex parents or selection history (needed for mode switching).
2018-10-09Cleanup: namingCampbell Barton
Use BKE_mesh_* prefix for mesh module.
2018-10-09Edit Mesh: remove derived-mesh from crazy-space calculationCampbell Barton
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-25Modifiers: use Mesh instead of DerivedMesh for explode.Sebastian Parborg
Differential Revision: https://developer.blender.org/D3718
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-19BLI_utildefines: rename pointer conversion macrosCampbell Barton
Terms get/set don't make much sense when casting values. Name macros so the conversion is obvious, use common prefix for easier completion. - GET_INT_FROM_POINTER -> POINTER_AS_INT - SET_INT_IN_POINTER -> POINTER_FROM_INT - GET_UINT_FROM_POINTER -> POINTER_AS_UINT - SET_UINT_IN_POINTER -> POINTER_FROM_UINT
2018-09-19Merge branch 'master' into blender2.8Campbell Barton
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-07-13Merge branch 'master' into blender2.8Campbell Barton
2018-07-13Cleanup: right shift argumentsCampbell Barton
2018-07-05Ported CDDM_apply_vert_normals from DM to MeshSybren A. Stüvel
2018-06-27Cleanup: remove some more DM usages...Bastien Montagne
2018-06-17Merge branch 'master' into blender2.8Campbell Barton
2018-06-17Cleanup: trailing space for blenkernelCampbell Barton
2018-06-13Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenloader/intern/readfile.c source/blender/editors/mesh/editmesh_utils.c source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-06Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointersSybren A. Stüvel
When the source mesh doesn't have the primary layers (CD_VERT for vdata, etc.) the returned mesh also didn't have those layers, even when non-zero elements were requested (for example requesting 4 vertices would still result in mvert = NULL).
2018-06-06Consolidated custom data layer initialisationSybren A. Stüvel
Code shared between BKE_mesh_new_nomain() and BKE_mesh_new_nomain_from_template() is now in separate functions, instead of copy-pasted.
2018-06-06Set mesh->totface in nomain-mesh creationSybren A. Stüvel
The totxxx fields should match the number of elements in their respective custom data layers.
2018-06-05Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.hSybren A. Stüvel
2018-05-30ID copy: Add flag which allows custom data to reference original datablockSergey Sharybin
2018-05-29Merge branch 'master' into blender2.8Bastien Montagne
Conflicts: source/blender/blenkernel/BKE_material.h source/blender/blenkernel/BKE_mesh.h source/blender/blenkernel/intern/library_remap.c source/blender/blenkernel/intern/material.c source/blender/editors/object/object_relations.c source/blender/editors/render/render_preview.c source/blender/makesrna/intern/rna_object.c
2018-05-29Cleanup: Get rid of G.main in BKE_material.Bastien Montagne
Note that in some cases, this only moves the G.main case to somne other places - in particular, RNA getters/setters are becoming annoying here...
2018-05-22Fix T55149: missing mesh custom data after modifier stack, after recent changes.Brecht Van Lommel
2018-05-16Fix crash when duplicating an object type mesh with raycast operation enabled.Germano