Dalai Felinto
4da2aec2bb
Multi-Object-Editing: select_non_manifold by Jefferson Rausseo
...
Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3232
2018-05-09 10:04:35 +02:00
Campbell Barton
a92557f77b
Merge branch 'master' into blender2.8
2018-05-09 10:02:33 +02:00
Campbell Barton
598216c36e
MSVC: remove hack for near/far name collision
...
windows headers define these, conflicting w/ View3D.near/far.
2018-05-09 10:00:55 +02:00
Aaron Carlisle
80844fdfc0
Color: Combine/Separate YCbCrA node default to rec. 709
...
This commit is part of T54798
Differential Revision: https://developer.blender.org/D3183
2018-05-08 22:24:58 -04:00
Germano
2d2875fc15
BKE: bvhutils: Always return NULL when the BVHtree has no leafs.
...
BLI_bvhkdop functions were not made to work with zero-leaf trees.
Perhaps a better solution would be to modify BLI_bvhkdop to work with zero leaf trees.
But this solution of returning NULL was already used for bvhtrees of looptris.
2018-05-08 20:31:26 -03:00
Germano
d1cd872fef
ED_transform: Port ED_transform_snap_object to new Mesh-based system.
...
Differential Revision: https://developer.blender.org/D2896
2018-05-08 20:04:32 -03:00
Germano
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
Campbell Barton
579c01da60
Extrude Widget: with/without axis constraint
2018-05-08 20:30:29 +02:00
Campbell Barton
b7b59a72f3
Extrude Widget: tweak draw style
...
Use filled circle for redo
2018-05-08 20:30:29 +02:00
Campbell Barton
4f213c1495
Cleanup: naming (prefer len over num for new code)
2018-05-08 19:36:02 +02:00
Campbell Barton
305c455ffe
Cleanup: mesh_runtime naming
...
- BKE_mesh_get_looptri_num -> BKE_mesh_runtime_looptri_len
- BKE_mesh_runtime_recalc_looptri -> BKE_mesh_runtime_looptri_recalc
- BKE_mesh_get_looptri_array -> BKE_mesh_runtime_looptri_ensure
2018-05-08 19:26:36 +02:00
Campbell Barton
65ae4e27b0
Missed last commit
2018-05-08 19:16:33 +02:00
Campbell Barton
6e88075618
Merge branch 'master' into blender2.8
2018-05-08 19:15:58 +02:00
Bastien Montagne
9a055d1abc
Modifier stack: partial port of ShrinkWrap to new Mesh-based system.
...
Partial only, complete depends on BVHTree helper updates, and subsurf
updates.
2018-05-08 19:04:12 +02:00
Bastien Montagne
f7727b5366
Modifier stack: Port Warp to new Mesh-based system.
2018-05-08 18:41:43 +02:00
Bastien Montagne
8f7e4b314b
Modifier stack: port Mask to new Mesh-based system.
2018-05-08 18:19:28 +02:00
Campbell Barton
e0a436fcff
Cleanup: includes
2018-05-08 18:01:47 +02:00
Campbell Barton
0012082c10
Cleanup: move mesh conversion into own function
2018-05-08 17:54:25 +02:00
Bastien Montagne
5f2a2e048d
Modifier stack: Port Caqst to new Mesh-based system.
2018-05-08 17:52:53 +02:00
Brecht Van Lommel
e6d11c6ce6
Collections: remove per collection and view layer engine overrides.
...
This will be handled by the new view layer override system which will
store data elsewhere, removing the code already for easier refactoring.
2018-05-08 17:46:20 +02:00
Campbell Barton
03dd109a84
Cleanup: consistent BKE_mesh naming
2018-05-08 17:28:43 +02:00
Campbell Barton
00127d03f1
Cleanup: use bool for BKE_mesh_new_from_object
2018-05-08 17:17:40 +02:00
Campbell Barton
7522af49a3
Cleanup: rename variables
...
DerivedMesh had some odd conventions, remove from BKE_mesh.
2018-05-08 17:15:23 +02:00
Campbell Barton
0e964afaa4
Cleanup: use 'nomain' when not in library data
...
Rename only.
2018-05-08 17:06:30 +02:00
Campbell Barton
fa69ce9e3a
Cleanup: whitespace, duplicate includes
2018-05-08 16:57:07 +02:00
Bastien Montagne
5b3559576d
Modifier stack: Port Smooth to new Mesh-based system.
2018-05-08 16:42:01 +02:00
Bastien Montagne
43be434310
Merge branch 'master' into blender2.8
...
Conflicts:
source/blender/modifiers/intern/MOD_dynamicpaint.c
source/blender/modifiers/intern/MOD_uvproject.c
2018-05-08 16:06:32 +02:00
Bastien Montagne
4e4a93bc45
Fix building with latest versions of ffmpeg.
...
Some years-old deprecated stuff has now been removed.
Correct solution is probably to use valid defines etc. in own code, but
this is more FFMEPG maintainer task (since it also may change how old
FFMPEG we do support...).
2018-05-08 16:00:52 +02:00
Campbell Barton
a48186c5d7
Orientation for 3D cursor
...
Currently set when setting the cursor location,
optionally used as an orientation type.
Intended for use by tools too.
See: D3208
2018-05-08 15:35:04 +02:00
Bastien Montagne
43e0e8defa
Fix (unreported) bloody modifiers messing with ID user count in copy.
...
User count of IDs is handled by higher-level, generic function,
low-level copydata functions *MUST NOT* touch them anymore, ever!
2018-05-08 15:27:10 +02:00
Bastien Montagne
53a56b7b6c
Merge branch 'master' into blender2.8
2018-05-08 15:20:18 +02:00
Bastien Montagne
3740f7593d
Cleanup: Nuke empty dummy wrappers around modifier_copyData_generic().
...
This also changes signature of modifier copy callback, first (source)
parameter is now a const, which is saner anyway!
2018-05-08 15:04:10 +02:00
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