Clément Foucault
d89f9d70c5
Eevee: Fix bug with transparent object + volume rendering.
...
This was because the main_fb was not bound back to be updated.
Following draw calls were drawn without depth buffer.
2018-05-08 14:31:17 +02:00
Bastien Montagne
b857b8f4c4
Merge branch 'master' into blender2.8
2018-05-08 14:22:46 +02:00
Bastien Montagne
49fe27ee46
Modifiers: sanitize/cleanup modifiers' copying & freeing code.
...
Should also fix T55000: Crash with hooks and curves in Cycles render.
2018-05-08 14:22:14 +02:00
Jeroen Bakker
cc8672b95e
Fix T54999: error when entering edit mode in texture shading
...
When entering edit mode the texture coordinates is not calculated by
drawcachemesh. For now fallback to solid mode. This gives wrong
artifacts when disabling overlays when in edit mode. We should make it
possible to calculate the UVLOOP from bmesh. This will be done in a next
patch
2018-05-08 14:02:45 +02:00
Campbell Barton
e04ea9d3c3
Merge branch 'master' into blender2.8
2018-05-08 13:33:48 +02:00
Campbell Barton
5358026511
Cleanup: quiet -Warray-bounds warning
2018-05-08 13:32:52 +02:00
Bastien Montagne
c51b017a1a
WeightVG modifiers: Cleanup, add asserts to validate expected data status...
2018-05-08 12:58:48 +02:00
Bastien Montagne
7d9f1a699a
Clenup: typos.
2018-05-08 12:58:48 +02:00
Sybren A. Stüvel
002dcd2001
Modifiers: pass the ob->data to the modifier if the mesh param is NULL
...
This enables the modifiers to access things like vertex groups. Care should
be taken to not modifier the mesh itself in this case.
2018-05-08 12:34:06 +02:00
Clément Foucault
9a79178c2e
Armature: Add back Stick bone draw type.
...
The actual code is a bit convoluted but allows good and "pseudo efficient"
drawing. (pseudo efficient because rendering instances with that amount of
vertices is really inneficient. We should go full procedural but need to
have bufferTexture implemented first) But drawing speed is not a bottleneck
here and it's already a million time less crappy than the old (2.79) immediate
mode method.
Instead of drawing actual wires with different width we render a triangle
fan batch (containing 3 fans: bone, head, tail) which is then oriented in
screen space to the bone direction. We then interpolate a float value
accross vertices giving us a nice blend factor to blend the colors and
gives us really smooth interpolation inside the bone.
The outside edge still being geometry will be antialiased by MSAA if enabled.
2018-05-08 12:18:35 +02:00
Bastien Montagne
d8706f5407
Modifier stack: port Displace to new Mesh-based system.
2018-05-08 12:01:06 +02:00
Bastien Montagne
cd5b57b4fc
Fix recent Curve porting: mesh pointer may also be NULL in non-EditMode case.
2018-05-08 12:01:06 +02:00
Bastien Montagne
0cd3412d4c
Mod_util: Add back vcos parameter to get_texture_coords_mesh().
...
Now we use vcos when provided, and fall back to mesh vertices' co
otherwise.
Deform modifiers usually do not have up-to-date coordinates in Mesh
itself, only in given vcos array!
2018-05-08 12:01:06 +02:00
Bastien Montagne
029d3fa8b6
Mesh normals: clear runtime dirty normal flag also when computing clnors.
2018-05-08 12:01:06 +02:00
Sergey Sharybin
1d95dfc97b
Merge branch 'master' into blender2.8
2018-05-08 11:59:22 +02:00
Sergey Sharybin
59ce30f32b
Tracking: Use bmain from context
2018-05-08 11:58:42 +02:00
Sergey Sharybin
9401021f8b
Clay: Simplify matcap manipulation
...
No need to hard-coded handling of every individual matcap.
They are in the continuous index range anyway.
2018-05-08 11:56:58 +02:00
Sergey Sharybin
1fd1d061ac
Clay: Don't use hardcoded constant in the string
...
Stringify the actual constant instead.
2018-05-08 11:56:58 +02:00
Dalai Felinto
847f028b71
Multi-Object-Editing: select random by Jefferson Rausseo with changes
...
Aside from identation, seed should change for each object. Otherwise to objects
with a copied mesh would get the exactly same "random" selection.
And we do so in a consistent way so it doesn't vary depending on
object order.
Seed bump using hash suggested by Campbell Barton and Sergey Sharybin.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3231
2018-05-08 11:51:21 +02:00
Sybren A. Stüvel
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
Sybren A. Stüvel
abb58eec53
looptri + bvhtree support for Mesh
2018-05-08 11:36:48 +02:00
Dalai Felinto
d915aa57f8
Multi-Object-Editing: vertices smooth by Jefferson Rausseo
...
Changes by me:
* Identation (tabs not space)
* Moving RNA_.*_get outside for loop)
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3230
2018-05-08 11:33:27 +02:00
Dalai Felinto
9a125ca5fe
Multi-Object-Editing : Extrude Repeat by Falk David
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3224
2018-05-08 11:24:41 +02:00
Sybren A. Stüvel
271624b0f6
Prevent segfault when opening file browser while a 2.79 file was loaded.
...
Loading a file that was written with the master branch into the 2.8 branch,
and then trying to load or save, caused a segfault.
2018-05-08 11:18:45 +02:00
Dalai Felinto
faaffc4011
Edit Mesh: multi-object rotate_uvs support by Pablo Dobarro
...
Changes by me: Moving RNA_.*get outside for loop and indentation fix.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3221
2018-05-08 11:15:00 +02:00
Dalai Felinto
63951bc987
Edit Mesh: multi-object reverse_uvs support by Pablo Dobarro
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3220
2018-05-08 11:09:35 +02:00
Bastien Montagne
fdc967e616
Modifiers stack: port Curve to new Mesh-based system.
2018-05-08 11:05:49 +02:00
Bastien Montagne
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
Sybren A. Stüvel
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
Campbell Barton
86b9311926
Cleanup: quiet warning, whitespace
2018-05-08 10:58:04 +02:00
Campbell Barton
77cc265f18
Fix crash cancelling search, caused by D3207
2018-05-08 10:48:53 +02:00
Sybren A. Stüvel
66b1cd45fb
Added BKE_mesh_ensure_normals()
...
This calls BKE_mesh_calc_normals() only if the mesh vertex normals are
marked as dirty.
2018-05-08 10:47:00 +02:00
Sybren A. Stüvel
42dfbf79c3
Added BKE_mesh_new()
...
This function creates a Mesh struct with a number of vertices/edges/etc.
It allocates the minimal number of CD layers needed.
Currently not yet used, but will be soon in the upcoming
BKE_new_mesh_from_curve_displist().
2018-05-08 10:47:00 +02:00
Dalai Felinto
f309c34cfe
Multi-Object-Editing : Support for MESH_OT_solidify by Lucas Boutrot
...
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3218
2018-05-08 10:40:30 +02:00
Dalai Felinto
a0a78f6da4
Multi-Object-Editing Support for MESH_OT_wireframe by Lucas Boutrot
...
Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3217
2018-05-08 10:35:51 +02:00
Dalai Felinto
9fc0c0c3de
Edit Mesh: multi-object faces_shade_flat support by Pablo Dobarro
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3219
2018-05-08 10:13:44 +02:00
Dalai Felinto
853e55b043
Multi-Object Editing: subdivide edgering support by Henry @Skippi
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3215
2018-05-08 10:07:29 +02:00
Dalai Felinto
848d9cda0e
Multi object editing - face dissolve support by Mateusz Grzeliński
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3214
2018-05-08 09:51:55 +02:00
Campbell Barton
65e3af35b0
Extrude Widget: subscribe to operator settings
...
Needed so changing orientation refreshes.
2018-05-08 09:21:19 +02:00
Mai Lavelle
b626360857
Add note about compat code in uber eval causing modifiers to be applied twice
2018-05-08 02:47:49 -04:00
Campbell Barton
6feb6235e1
WM: log message bus operations
2018-05-08 08:34:06 +02:00
Campbell Barton
6f57d12e2e
Merge branch 'master' into blender2.8
2018-05-08 07:53:48 +02:00
Campbell Barton
433aaa8c2e
Cleanup: remove unused wmReport struct
2018-05-08 07:52:13 +02:00
Campbell Barton
05ec0108dc
WM: refresh tool on object mode switch
...
The tool manipulator could become disabled when set in the wrong mode.
2018-05-08 07:27:53 +02:00
Campbell Barton
469d43b1db
WM: publish Object.mode changes on mode switching
2018-05-08 07:22:52 +02:00
Campbell Barton
bf593a8631
WM: quiet GCC redundant declaration warnings
2018-05-08 07:18:49 +02:00
Dalai Felinto
7f5c469716
Multi-Object-Editing : Support for Edge Dissolve by Lucas Boutrot
...
With minor indentation changes by me.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3211
2018-05-07 21:57:36 +02:00
Dalai Felinto
5f59a8bb11
Multi object editing - verticle dissolve support by Mateusz Grzeliński
...
With changes by me:
* Indentation (tabs)
* Removing RNA_boolean_get tests out of the for loop.
* Continue iterator if no selected vertice.
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3210
2018-05-07 21:50:20 +02:00
Campbell Barton
eefaec4114
Extrude Widget: Add orientation to topbar
...
Add extrude operator that's intended to work on the current selection
and be activated as a tool.
2018-05-07 21:40:51 +02:00
Campbell Barton
170223804b
Extrude Widget: orient correctly w/ rotated object
2018-05-07 21:40:51 +02:00