a3b6ae9fb9
Cleanup/Refactor: Move CurveCache runtime data into Object.runtime struct.
...
Also, fix missing cleanup of Object.runtime when copying Object
datablocks!
2018-07-30 16:58:44 +02:00
8a42b3909f
Subsurf: Add basic statistics to help benchmarking
2018-07-20 09:28:02 +02:00
5fd677c83c
Subsurf: Add subdivision code which uses new module
...
The code is ifdef-ed for now, since there is more work needed
to be done before we can officially switch to it.
Uses new subdiv module.
2018-07-18 15:42:49 +02:00
e4ce5fd8d2
Modifiers: Use bool for boolean flag in isDisabled
2018-07-10 12:14:33 +02:00
25619443bb
Ocean Modifier: prevent crashing on 'Apply Modifier' button
...
The 'Apply Modifier' button calls the modifier code on the original
object instead of an evaluated copy, which doesn't have an initialised
Ocean *.
2018-07-10 12:00:58 +02:00
0c8452ad99
Ocean Modifier: removed duplicated code
...
Some code was copied with 'keep in sync with xxx' comments added to it.
2018-07-10 12:00:58 +02:00
de55ae56ae
Ocean Modifier: refactored the delayed-refresh approach
...
The approach of setting 'refresh' flags on the modifier, and performing
the associated actions when the modifier is being evaluated, is a bad
one. Instead, we use the separation of the original and the evaluated
copy to 'refresh' certain things (because they simply aren't set at all
on the original). Other actions are now done directly with BKE_ocean_xxx
functions on the original data, intead of during evaluation.
2018-07-10 12:00:58 +02:00
6807b4318f
Ocean Modifier: ported from DerivedMesh to Mesh
2018-07-10 12:00:58 +02:00
843d5d707d
Merge remote-tracking branch 'origin/master' into blender2.8
2018-07-06 13:53:35 +02:00
7691040166
Ocean Modifier: removed the MOD_OCEAN_REFRESH_ADD flag
...
The flag was only used in readfile.c, and resulted in a delayed call to
BKE_ocean_add(); this call is now immediately made instead as it's not
very expensive.
2018-07-06 12:46:58 +02:00
a4328a4b70
Cleanup: warning
2018-07-05 12:32:31 +02:00
1517fa4309
Fix build w/o fluidsim
2018-07-05 12:27:15 +02:00
03ef9f3214
Fluidsim: fixed memory leak
2018-07-05 12:22:55 +02:00
f4ce6d02cd
Fluidsim: ported from DerivedMesh to Mesh
...
Also removed a bunch of unnecessary #include statements from fluidsim.c.
2018-07-05 11:30:38 +02:00
fd341dd6f7
Added copyData flag to ocean modifier
2018-07-04 15:15:08 +02:00
d663ec48c0
Fluid Sim: Removed unused PointCache pointer
...
The only uses were setting it to NULL and asserting it is NULL.
2018-07-04 15:10:45 +02:00
175fe29e58
Cloth simulation: share point cache between CoW copies of objects
2018-07-04 14:54:16 +02:00
60b9d413db
Pass copy flag to modifier copyData function
...
This will allow modifiers to decide whether to copy or share caches between
ModifierData copies.
2018-07-04 14:52:14 +02:00
0c94528829
Cleanup: naming in MOD_utils.
2018-06-29 19:02:19 +02:00
3bc21bc5f7
Cleanup: Moar DM busting, mostly cleaning up MOD_utils.
2018-06-29 18:58:13 +02:00
5ba87cf22e
Cleanup: remove another bunch of DM usages, includes etc.
2018-06-29 14:57:02 +02:00
18d87e79e9
Merge branch 'master' into blender2.8
2018-06-29 09:25:40 +02:00
b372766816
Cleanup: trailing newlines
2018-06-29 09:23:51 +02:00
b633d760a2
Cleanup: style
2018-06-27 22:32:52 +02:00
2c9b32949b
Cleanup: refactor depsgraph physics API functions.
2018-06-25 17:15:07 +02:00
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
f51661fb66
Cleanup: useless BKE_cdderivedmesh includes...
2018-06-22 15:52:14 +02:00
c850fcc2c0
Modifiers: port shapekey modifier, some cleanup.
2018-06-22 15:45:46 +02:00
97c99fb034
Modifiers: port UV_unwarp from DM to Mesh.
...
Pretty trivial...
2018-06-22 15:32:41 +02:00
3c828c29b3
Cleanup: unused value
2018-06-22 15:23:56 +02:00
a7ca8fe1dd
Modifiers: Remove lots of usages of md->scene
2018-06-22 15:12:03 +02:00
7a4b784909
Subsurf: Move away from using scene from modifier data
2018-06-22 15:12:03 +02:00
c2fa82e7a4
Multires: Move away from using scene from modifier data
2018-06-22 15:12:03 +02:00
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
318ad705ad
Cleanup: nuke useless BKE_DerivedMesh.h includes.
2018-06-21 16:45:54 +02:00
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
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
06a1a66a9b
Merge branch 'master' into blender2.8
2018-06-17 17:10:19 +02:00
1eed46c788
Cleanup: trailing space for modifiers
2018-06-17 17:04:27 +02:00
0b8c2eed75
Merge branch 'master' into blender28
2018-06-15 15:42:42 +02:00
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
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
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
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
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
70f8eaf1b7
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/editors/space_view3d/drawobject.c
2018-06-09 15:18:21 +02:00
638de72277
Cleanup: remove some G.main usages.
2018-06-09 15:17:04 +02:00
0c7fc3a961
Alembic import: assign cache_file handle to original datablock
2018-06-08 13:52:53 +02:00
5b0f96f97c
Alembic import: port DerivedMesh → Mesh
2018-06-07 10:48:52 +02:00