d890ad37a8
Fix horrible invalid mesh freeing in weightvg modifiers.
...
Comes from rB7661f8a65b. Found while checking on T55818, but not solving
that issue of course.
2018-08-06 11:49:42 +02:00
c41ce58fde
Fix indentation, spacing and added comments
2018-08-05 08:39:20 +05:30
710d2def65
Initialized normal data in BevMod
2018-08-04 23:38:12 +05:30
4fe14d6a26
Subsurf: Support subdivision of mesh with just loose elements
2018-08-01 18:42:59 +02:00
9a43ebdd5b
Fix more merge stupid leftover, and some build warnings.
2018-08-01 14:29:36 +02:00
ef8ab3b4c2
Fix issues after last 2.8 merge.
2018-08-01 14:21:45 +02:00
936d1cef6e
Merge branch 'blender2.8' into soc-2018-bevel
...
Conflicts:
release/scripts/addons
release/scripts/startup/bl_ui/space_view3d_toolbar.py
source/blender/editors/space_outliner/outliner_draw.c
2018-08-01 14:16:41 +02:00
a823f58dfd
Subsurf: Disable oprtion for now
...
Committed by accident, is too early for this yet.
2018-07-31 11:17:51 +02:00
51c38b5d49
Subsurf: Rework in a way that patches boundaries are merged together
...
The idea is to create vertices along the coarse edges once, without
splitting coarse edges on separate ptex faces. This requires some
indexing magic, vertices within a patch are no longer sequential.
Not sure how to make it nicer without such a black magic looking
calculations (which are basically boiling down to mimicking order
of verts/edges creation).
In the current offsets calculation loose verts and edges are not
properly taken into account, but those are causing topology refiner
to fail anyway, so it needs a bit deeper change.
Reviewers: brecht
Differential Revision: https://developer.blender.org/D3570
2018-07-31 09:24:30 +02:00
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
4e6bcd10e5
Merge branch 'blender2.8' into soc-2018-bevel
2018-07-21 19:29:15 +05:30
8a42b3909f
Subsurf: Add basic statistics to help benchmarking
2018-07-20 09:28:02 +02:00
b6b185691f
Code cleanup and fixes
2018-07-19 19:27:45 +05:30
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
10c1f3fbfe
Fixed shading errors with normals and added proper weighting
...
to harden normals to make it consistent with wn modifier
2018-07-12 23:30:29 +05:30
75149b429f
Added support for beveling curves
2018-07-11 22:36:44 +05:30
962f89d487
Changed default strength in harden
2018-07-10 22:21:28 +05:30
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
b360c9d7f9
cleanup of extend edge data and fixed minor errors
2018-07-04 00:04:03 +05:30
1c699d75a0
Fixed bugs in normal shading continuity and added support
...
to have corner vertices of a vmesh to have same normal as reconstructed
face in harden
2018-07-03 21:51:01 +05:30
190d1b2f7a
Fixed merge errors
2018-07-03 19:01:20 +05:30
31e43d021f
Merge branch 'blender2.8' into soc-2018-bevel
2018-07-02 23:31:19 +05:30
368a64fe04
Refactored bevel normal editing functionality.
2018-07-02 22:55:33 +05:30
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
3504b27c50
Patch to fix shading continuity.
...
Added it as extension to harden. Tried out different methods to fix normals,
Though as with width and segments changes shape, orientation of new polys
a non-smooth method of fix was not possible. Current method aggregates
vertex normals into a smooth fan without affecting edge shading.
Still need to fix the crease at new vertex edges
2018-06-27 20:19:15 +05:30
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
1757b38179
Added UI for harden normals and normal control in bevel modifier
2018-06-23 01:46:42 +05:30
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