84cf670d1d
Modifier: Fix cage option for deform modifiers
...
Show-on-cage and show-in-editmode options now work as it did in 2.7x
(but only for deformation).
2018-10-10 15:53:52 +11:00
c61142c0b5
Modifier: use simplified bmesh -> mesh conversion
2018-10-10 13:14:15 +11:00
633e2cddd7
BMesh: simple bmesh -> mesh for evaluation
...
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-10 13:14:15 +11:00
79ca13a745
Cleanup: naming
...
Use BKE_mesh_* prefix for mesh module.
2018-10-09 16:09:59 +11:00
3c78763482
Edit Mesh: remove derived-mesh from crazy-space calculation
2018-10-09 15:38:06 +11:00
a3bb385ca0
Edit Mesh: Move Edit Mesh display settings to overlay's
...
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-25 22:51:54 +02:00
Sebastian Parborg
d191676400
Modifiers: use Mesh instead of DerivedMesh for explode.
...
Differential Revision: https://developer.blender.org/D3718
2018-09-25 14:01:23 +02:00
342e73f90f
Spelling fixes in comments and descriptions (2.8 changes), patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3719
2018-09-24 18:48:29 +02:00
253dce07d7
Merge branch 'master' into blender2.8
2018-09-24 17:42:52 +02:00
0cff044d84
Spelling fixes in comments and descriptions, patch by luzpaz.
...
Differential Revision: https://developer.blender.org/D3719
2018-09-24 17:28:40 +02:00
cfb7565cd5
Cleanup: convert smoke modifier from DerivedMesh to Mesh.
2018-09-21 13:56:22 +02:00
bb3ec3ebaf
BLI_utildefines: rename pointer conversion macros
...
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-19 12:12:21 +10:00
f35e9f047a
Merge branch 'master' into blender2.8
2018-09-19 12:14:36 +10:00
e19439a169
Cleanup: Use dedicated function to copy mesh during evaluation process
...
It is rather fully annoying to have same sets of obscure flags all over.
2018-08-16 14:42:06 +02:00
a855a763c2
Merge branch 'master' into blender2.8
2018-07-13 08:40:17 +02:00
fb5597540d
Cleanup: right shift arguments
2018-07-13 08:36:10 +02:00
99a6d616e8
Ported CDDM_apply_vert_normals from DM to Mesh
2018-07-05 11:30:38 +02:00
9c7a561883
Cleanup: remove some more DM usages...
2018-06-27 10:37:57 +02:00
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
6fc8a74886
Cleanup: trailing space for blenkernel
2018-06-17 17:05:51 +02:00
4943739b89
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/blenloader/intern/readfile.c
source/blender/editors/mesh/editmesh_utils.c
source/blenderplayer/bad_level_call_stubs/stubs.c
2018-06-13 16:42:56 +02:00
7a76223f1f
Ensure BKE_mesh_new_nomain_from_template() always has valid mxxx pointers
...
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-06 12:27:25 +02:00
8a0e6a3143
Consolidated custom data layer initialisation
...
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-06 12:27:25 +02:00
5e180ebffc
Set mesh->totface in nomain-mesh creation
...
The totxxx fields should match the number of elements in their respective
custom data layers.
2018-06-06 12:27:25 +02:00
a9ed50514c
Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.h
2018-06-05 16:59:18 +02:00
35a6d9ec55
ID copy: Add flag which allows custom data to reference original datablock
2018-05-30 15:07:59 +02:00
8f670dd855
Merge branch 'master' into blender2.8
...
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-29 16:02:53 +02:00
f7af08b5fe
Cleanup: Get rid of G.main in BKE_material.
...
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-29 15:49:21 +02:00
6953c57d2c
Fix T55149: missing mesh custom data after modifier stack, after recent changes.
2018-05-22 17:07:59 +02:00
91d3a5c1f7
Fix crash when duplicating an object type mesh with raycast operation enabled.
2018-05-16 14:28:28 -03:00
76b5e38a76
Mesh: Set deformed_only=1 when copied mesh is from main library
2018-05-16 16:13:13 +02:00
dbe4189dcd
Save 'deform_only' flag in Mesh.runtime
...
This flag is copied when converting between DM and Mesh.
This flag is set to true in get_mesh(), to mimick the behaviour of
CDDM_from_mesh_ex. This is necessary for the particle system to work
correctly.
2018-05-16 12:41:48 +02:00
eabfd031fa
Fix T55031: add explicit copy flag to force deep-copying shapekey datablock with 'parent' one.
...
Chose to change defaut behavior (0-flag one) here, for sake of
consistency. Default behavior of simple BKE_id_copy() remains unchanged
though.
2018-05-14 14:25:13 +02:00
5503e2565b
Bmesh: Clear possible geometry saved at runtime when converting bmesh to mesh.
2018-05-11 15:48:14 -03:00
bcb245bd71
Assign totxxx mesh attributes in BKE_mesh_new_nomain
...
Reviewers: sybren
2018-05-11 10:37:36 +02:00
d824c80e9f
Cleanup: Remove redundant bvh_cache initialization.
2018-05-09 13:28:59 -03:00
7fd19bcbe1
BKE: bvhutils: Port bvhtree_from_mesh_get to take a Mesh param instead of a DerivedMesh.
...
Differential Revision: https://developer.blender.org/D3227
2018-05-08 20:00:51 -03:00
65ae4e27b0
Missed last commit
2018-05-08 19:16:33 +02:00
6e88075618
Merge branch 'master' into blender2.8
2018-05-08 19:15:58 +02:00
e0a436fcff
Cleanup: includes
2018-05-08 18:01:47 +02:00
0012082c10
Cleanup: move mesh conversion into own function
2018-05-08 17:54:25 +02:00
03dd109a84
Cleanup: consistent BKE_mesh naming
2018-05-08 17:28:43 +02:00
00127d03f1
Cleanup: use bool for BKE_mesh_new_from_object
2018-05-08 17:17:40 +02:00
7522af49a3
Cleanup: rename variables
...
DerivedMesh had some odd conventions, remove from BKE_mesh.
2018-05-08 17:15:23 +02:00
0e964afaa4
Cleanup: use 'nomain' when not in library data
...
Rename only.
2018-05-08 17:06:30 +02:00
fa69ce9e3a
Cleanup: whitespace, duplicate includes
2018-05-08 16:57:07 +02:00
029d3fa8b6
Mesh normals: clear runtime dirty normal flag also when computing clnors.
2018-05-08 12:01:06 +02:00
1c0be0e90f
Ported Mesh Deform modifier
...
This modifier still has issues that are not related to this port:
- While editing the deformation mesh, the deformed mesh doesn't update.
This update only happens after exiting edit mode, making editing
cumbersome.
- Binding doesn't work yet. It works fine when binding in master and
loading pre-bound in 2.8. This was also an issue before this port, and
will be investigated separately.
2018-05-08 11:46:28 +02:00
50e31136fd
Rename BKE_bmesh_to_mesh to BKE_bmesh_to_mesh_nomain.
...
Let's be clear about functions generating datablocks outside of Main
database.
2018-05-08 11:04:20 +02:00
cf7c3462ed
BKE_mesh_new → BKE_mesh_new_nomain
...
Including 'nomain' in the name explicitifies that the returned mesh is
NOT stored in any library.
2018-05-08 11:00:34 +02:00