Brecht Van Lommel
2c9b32949b
Cleanup: refactor depsgraph physics API functions.
2018-06-25 17:15:07 +02:00
Brecht Van Lommel
a99dcab148
Depsgraph: cache collision relations, for performance and stability.
...
Same reasoning as effector relations in earlier commit.
2018-06-25 13:35:41 +02:00
Bastien Montagne
f51661fb66
Cleanup: useless BKE_cdderivedmesh includes...
2018-06-22 15:52:14 +02:00
Bastien Montagne
c850fcc2c0
Modifiers: port shapekey modifier, some cleanup.
2018-06-22 15:45:46 +02:00
Bastien Montagne
97c99fb034
Modifiers: port UV_unwarp from DM to Mesh.
...
Pretty trivial...
2018-06-22 15:32:41 +02:00
Campbell Barton
3c828c29b3
Cleanup: unused value
2018-06-22 15:23:56 +02:00
Sergey Sharybin
a7ca8fe1dd
Modifiers: Remove lots of usages of md->scene
2018-06-22 15:12:03 +02:00
Sergey Sharybin
7a4b784909
Subsurf: Move away from using scene from modifier data
2018-06-22 15:12:03 +02:00
Sergey Sharybin
c2fa82e7a4
Multires: Move away from using scene from modifier data
2018-06-22 15:12:03 +02:00
Sergey Sharybin
6427141f7b
Modifiers: Stop using md->scene in isDisabled() callback
...
This is first commit in series of changes to get rid of md->scene.
2018-06-21 18:04:05 +02:00
Bastien Montagne
318ad705ad
Cleanup: nuke useless BKE_DerivedMesh.h includes.
2018-06-21 16:45:54 +02:00
Bastien Montagne
b80cce2053
Cleanup: names: data transfer/mesh remap: dm -> me/mesh.
...
That area is now officially purged from the Devil.. errr... DerivedMesh!
2018-06-21 15:33:10 +02:00
Bastien Montagne
fffff5a993
Cleanup: nuke DM out of data transfer code.
...
This was actually rather hairy, this code is huge and complicated, easy
to make mistakes...
Good thing is, it will allow for significant simplification and more
(name) cleanup in following commits ;)
2018-06-21 15:33:10 +02:00
Campbell Barton
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
Campbell Barton
1eed46c788
Cleanup: trailing space for modifiers
2018-06-17 17:04:27 +02:00
Campbell Barton
0b8c2eed75
Merge branch 'master' into blender28
2018-06-15 15:42:42 +02:00
Howard Trickey
b84fad2ba3
Fix T55490, intersect two triangles fails.
...
Need to use the 'use_partial_connect' option in island connect,
so changed signatures of various functions to pass that into and
then down from BM_mesh_intersect (making true for intersect, false
for boolean).
Then fix bm_face_split_edgenet_partial_connect to work when
input edges are not necessarily wire, but at least not in the
face they are being connected in. That caused generalization
of core BM_vert_separate_hflag_wire (which is only used in
this one place in all Blender).
2018-06-15 08:48:45 -04:00
Bastien Montagne
4bf751be70
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/modifiers/intern/MOD_normal_edit.c
source/blender/windowmanager/intern/wm_files.c
2018-06-14 12:39:52 +02:00
Bastien Montagne
0eb3246713
Fix T55470: Add option to not fix polygons' winding to Edit Normals modifier.
...
this is actually adding option to add buggy behavior, but.. NPR often
expects buggy behaviors, and its one of the main targets for normal editing.
So think it's reasonable to add that option (disabled by default of
course).
Note that am not really happy with UI, but:
* Not sure where to put it, it's kind of own self-contained area option.
* Don't to make it too much visible, using this should be the exception!
2018-06-14 11:41:12 +02:00
Bastien Montagne
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
Dalai Felinto
c1e503e89a
Silence false positive warning on boolean modifier
2018-06-13 16:04:31 +02:00
Bastien Montagne
d0956e9cb3
Cleanup: Moar G.main removal of Hell.
...
This commit actually adds some G.main... but at much, much higher level
than the ones it removes, so should still be better ;)
2018-06-11 12:15:14 +02:00
Bastien Montagne
70f8eaf1b7
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/space_view3d/drawobject.c
2018-06-09 15:18:21 +02:00
Bastien Montagne
638de72277
Cleanup: remove some G.main usages.
2018-06-09 15:17:04 +02:00
Sybren A. Stüvel
0c7fc3a961
Alembic import: assign cache_file handle to original datablock
2018-06-08 13:52:53 +02:00
Sybren A. Stüvel
5b0f96f97c
Alembic import: port DerivedMesh → Mesh
2018-06-07 10:48:52 +02:00
Campbell Barton
ba80d8440f
Cleanup: style
2018-06-06 22:17:06 +02:00
Sybren A. Stüvel
a9ed50514c
Moved function declarations from BKE_mesh.h → BKE_mesh_runtime.h
2018-06-05 16:59:18 +02:00
Campbell Barton
bfe1d0e0dc
Merge branch 'master' into blender2.8
2018-06-01 18:26:42 +02:00
Campbell Barton
75fc1c3507
Cleanup: trailing whitespace (comment blocks)
...
Strip unindented comment blocks - mainly headers to avoid conflicts.
2018-06-01 18:19:39 +02:00
Sybren A. Stüvel
4fccb8a023
Boolean modifier: fixed crash when applying the modifier
2018-06-01 17:35:26 +02:00
Brecht Van Lommel
719e782f2c
Modifiers: tiny optimizations for mesh deform, lattice, kdop.
2018-06-01 12:00:11 +02:00
Sybren A. Stüvel
0bddf5315f
Fix T55282: Modifiers: Removed unnecessary object evaluation
2018-06-01 11:50:53 +02:00
Sybren A. Stüvel
8f24d404fe
Removed old mention of CDDerivedMesh
2018-06-01 11:50:53 +02:00
Sybren A. Stüvel
c338ac9454
Modifiers: ported Soft Body DerivedMesh → Mesh
...
The simulation doesn't seem to update properly yet.
2018-06-01 10:04:46 +02:00
Bastien Montagne
b809340960
Merge branch 'master' into blender2.8
...
Conflicts:
intern/cycles/blender/blender_curves.cpp
source/blender/blenkernel/BKE_particle.h
source/blender/blenkernel/intern/modifier.c
source/blender/blenkernel/intern/object_update.c
source/blender/blenkernel/intern/particle_system.c
source/blender/editors/object/object_modifier.c
source/blender/editors/physics/physics_fluid.c
source/blender/makesrna/intern/rna_particle.c
source/blender/modifiers/intern/MOD_particlesystem.c
2018-05-31 15:37:15 +02:00
Bastien Montagne
b53d358261
Cleanup: remove G.main from BKE modifier.
2018-05-31 15:24:30 +02:00
Bastien Montagne
28369f725c
Cleanup: remove G.main from BKE object
...
Had to add some G.main to modifiers, but in 2.8 we do not need that
anymore, so it's not that bad! ;)
2018-05-31 12:27:47 +02:00
Campbell Barton
1f693aefca
Cleanup: style/whitespace
...
Also use 'uint'.
2018-05-30 19:49:33 +02:00
Sergey Sharybin
7661f8a65b
Modifiers: Bring back custom data referencing logic
...
Brings dependency graph evaluation time to similar time than 2.79
for file reported in T55228.
2018-05-30 17:00:47 +02:00
Sergey Sharybin
25d4d43491
Modifiers: Restore duplication of referenced layers
...
Was no reason to remove those calls, it was always a plan to bring
referenced layers back eventually.
2018-05-30 17:00:47 +02:00
Bastien Montagne
292125bfd3
Fix broken meshdeform modifier after recent cleanup.
2018-05-30 14:02:28 +02:00
Bastien Montagne
72f4ac99c7
Cleanup/fix wrong modifiers targets handling in COW context.
...
Modifiers stack only get COW/evaluated IDs, so no need to go auery again
DEG for those. Further more, now unified handling of EditBMesh case (was
done on case-by-case basis in a few modifiers, not all for some reason).
We are still missing the ability to get final and cage deformed meshes
when in Edit mode though, this is to be defined/implemented in depsgraph.
2018-05-30 12:04:06 +02:00
Brecht Van Lommel
c9f7a3b32a
Fix T55207, fix T55208: hair not positioned correctly after subsurf.
...
The problem was that the particle system modifier was reading ob->derivedDeform
during modifier stack evaluation. Due to the mesh -> DM conversion this was no
longer set leading to wrong results.
In fact we don't really need the deformed mesh, just the original mesh topology
for face/poly index remapping. So the solution is to use that instead.
2018-05-25 23:20:20 +02:00
Dalai Felinto
fbc65c6b28
Fix T55165: Driving camera lens with property behaves unexpectedly
...
Differential Revision: https://developer.blender.org/D3438
2018-05-25 12:48:33 +02:00
Dalai Felinto
e8c8ff4f86
Fix all modifiers that depended on BKE_modifier_get_evaluated_mesh_from_object
...
This fix applying the following modifiers:
* Boolean (working already)
* Array
* Mesh Deform
* Surface Deform
* Vertex Weight Proximity
This function was to return evaluated mesh. So it should get the evaluated
object at all times. So in this case it makes more sense to simply pass the
depsgraph (or in this case the ModifierEvalContext that contains both the
depsgraph and the flag.
Solution discussed with Bastien Montagne.
2018-05-24 16:43:21 +02:00
Dalai Felinto
ec809d0cbf
Fix boolean modifier when objects have transformations
...
Follow up for 9406a1f195 .
2018-05-24 15:56:50 +02:00
Dalai Felinto
9406a1f195
Fix cannot apply boolean modifier
2018-05-24 15:26:31 +02:00
Campbell Barton
84c3b175f6
Fix typo in header
2018-05-23 17:13:41 +02:00
Bastien Montagne
0cc2666605
Fix last usages of Scene.r.cfra in modifiers code.
...
Note that some modifiers-related code in BKE still uses that...
2018-05-23 16:37:36 +02:00