blender.git
2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 8 May 2018 17:09:35 +0000 (19:09 +0200)]
Merge branch 'master' into blender2.8

2 years agoModifier stack: partial port of ShrinkWrap to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 17:04:12 +0000 (19:04 +0200)]
Modifier stack: partial port of ShrinkWrap to new Mesh-based system.

Partial only, complete depends on BVHTree helper updates, and subsurf
updates.

2 years agoModifier stack: Port Warp to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 16:41:43 +0000 (18:41 +0200)]
Modifier stack: Port Warp to new Mesh-based system.

2 years agoModifier stack: port Mask to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 16:19:28 +0000 (18:19 +0200)]
Modifier stack: port Mask to new Mesh-based system.

2 years agoCleanup: includes
Campbell Barton [Tue, 8 May 2018 16:01:47 +0000 (18:01 +0200)]
Cleanup: includes

2 years agoCleanup: move mesh conversion into own function
Campbell Barton [Tue, 8 May 2018 15:44:54 +0000 (17:44 +0200)]
Cleanup: move mesh conversion into own function

2 years agoModifier stack: Port Caqst to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 15:52:24 +0000 (17:52 +0200)]
Modifier stack: Port Caqst to new Mesh-based system.

2 years agoCollections: remove per collection and view layer engine overrides.
Brecht Van Lommel [Tue, 8 May 2018 13:57:20 +0000 (15:57 +0200)]
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.

2 years agoCleanup: consistent BKE_mesh naming
Campbell Barton [Tue, 8 May 2018 15:28:43 +0000 (17:28 +0200)]
Cleanup: consistent BKE_mesh naming

2 years agoCleanup: use bool for BKE_mesh_new_from_object
Campbell Barton [Tue, 8 May 2018 15:17:40 +0000 (17:17 +0200)]
Cleanup: use bool for BKE_mesh_new_from_object

2 years agoCleanup: rename variables
Campbell Barton [Tue, 8 May 2018 15:15:23 +0000 (17:15 +0200)]
Cleanup: rename variables

DerivedMesh had some odd conventions, remove from BKE_mesh.

2 years agoCleanup: use 'nomain' when not in library data
Campbell Barton [Tue, 8 May 2018 15:06:30 +0000 (17:06 +0200)]
Cleanup: use 'nomain' when not in library data

Rename only.

2 years agoCleanup: whitespace, duplicate includes
Campbell Barton [Tue, 8 May 2018 14:57:07 +0000 (16:57 +0200)]
Cleanup: whitespace, duplicate includes

2 years agoModifier stack: Port Smooth to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 14:42:01 +0000 (16:42 +0200)]
Modifier stack: Port Smooth to new Mesh-based system.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 8 May 2018 14:06:32 +0000 (16:06 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/modifiers/intern/MOD_dynamicpaint.c
source/blender/modifiers/intern/MOD_uvproject.c

2 years agoFix building with latest versions of ffmpeg.
Bastien Montagne [Tue, 8 May 2018 14:00:52 +0000 (16:00 +0200)]
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...).

2 years agoOrientation for 3D cursor
Campbell Barton [Tue, 8 May 2018 12:18:09 +0000 (14:18 +0200)]
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

2 years agoFix (unreported) bloody modifiers messing with ID user count in copy.
Bastien Montagne [Tue, 8 May 2018 13:27:10 +0000 (15:27 +0200)]
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!

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 8 May 2018 13:20:18 +0000 (15:20 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: Nuke empty dummy wrappers around modifier_copyData_generic().
Bastien Montagne [Tue, 8 May 2018 13:04:10 +0000 (15:04 +0200)]
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!

2 years agoEevee: Fix bug with transparent object + volume rendering.
Clément Foucault [Tue, 8 May 2018 12:31:08 +0000 (14:31 +0200)]
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.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 8 May 2018 12:22:46 +0000 (14:22 +0200)]
Merge branch 'master' into blender2.8

2 years agoModifiers: sanitize/cleanup modifiers' copying & freeing code.
Bastien Montagne [Tue, 8 May 2018 12:21:02 +0000 (14:21 +0200)]
Modifiers: sanitize/cleanup modifiers' copying & freeing code.

Should also fix T55000: Crash with hooks and curves in Cycles render.

2 years agoFix T54999: error when entering edit mode in texture shading
Jeroen Bakker [Tue, 8 May 2018 12:00:27 +0000 (14:00 +0200)]
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

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 8 May 2018 11:33:48 +0000 (13:33 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: quiet -Warray-bounds warning
Campbell Barton [Tue, 8 May 2018 11:32:52 +0000 (13:32 +0200)]
Cleanup: quiet -Warray-bounds warning

2 years agoWeightVG modifiers: Cleanup, add asserts to validate expected data status...
Bastien Montagne [Tue, 8 May 2018 10:58:01 +0000 (12:58 +0200)]
WeightVG modifiers: Cleanup, add asserts to validate expected data status...

2 years agoClenup: typos.
Bastien Montagne [Tue, 8 May 2018 10:25:51 +0000 (12:25 +0200)]
Clenup: typos.

2 years agoModifiers: pass the ob->data to the modifier if the mesh param is NULL
Sybren A. Stüvel [Tue, 8 May 2018 10:34:01 +0000 (12:34 +0200)]
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.

2 years agoArmature: Add back Stick bone draw type.
Clément Foucault [Tue, 8 May 2018 10:05:06 +0000 (12:05 +0200)]
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.

2 years agoModifier stack: port Displace to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 10:00:38 +0000 (12:00 +0200)]
Modifier stack: port Displace to new Mesh-based system.

2 years agoFix recent Curve porting: mesh pointer may also be NULL in non-EditMode case.
Bastien Montagne [Tue, 8 May 2018 09:59:48 +0000 (11:59 +0200)]
Fix recent Curve porting: mesh pointer may also be NULL in non-EditMode case.

2 years agoMod_util: Add back vcos parameter to get_texture_coords_mesh().
Bastien Montagne [Tue, 8 May 2018 09:57:34 +0000 (11:57 +0200)]
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!

2 years agoMesh normals: clear runtime dirty normal flag also when computing clnors.
Bastien Montagne [Tue, 8 May 2018 09:56:31 +0000 (11:56 +0200)]
Mesh normals: clear runtime dirty normal flag also when computing clnors.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Tue, 8 May 2018 09:59:22 +0000 (11:59 +0200)]
Merge branch 'master' into blender2.8

2 years agoTracking: Use bmain from context
Sergey Sharybin [Tue, 8 May 2018 09:58:42 +0000 (11:58 +0200)]
Tracking: Use bmain from context

2 years agoClay: Simplify matcap manipulation
Sergey Sharybin [Mon, 7 May 2018 13:28:25 +0000 (15:28 +0200)]
Clay: Simplify matcap manipulation

No need to hard-coded handling of every individual matcap.

They are in the continuous index range anyway.

2 years agoClay: Don't use hardcoded constant in the string
Sergey Sharybin [Mon, 7 May 2018 13:25:21 +0000 (15:25 +0200)]
Clay: Don't use hardcoded constant in the string

Stringify the actual constant instead.

2 years agoMulti-Object-Editing: select random by Jefferson Rausseo with changes
Dalai Felinto [Tue, 8 May 2018 09:36:09 +0000 (11:36 +0200)]
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

2 years agoPorted Mesh Deform modifier
Sybren A. Stüvel [Tue, 8 May 2018 09:33:31 +0000 (11:33 +0200)]
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.

2 years agolooptri + bvhtree support for Mesh
Sybren A. Stüvel [Tue, 8 May 2018 08:07:21 +0000 (10:07 +0200)]
looptri + bvhtree support for Mesh

2 years agoMulti-Object-Editing: vertices smooth by Jefferson Rausseo
Dalai Felinto [Tue, 8 May 2018 09:28:36 +0000 (11:28 +0200)]
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

2 years agoMulti-Object-Editing : Extrude Repeat by Falk David
Dalai Felinto [Tue, 8 May 2018 09:23:59 +0000 (11:23 +0200)]
Multi-Object-Editing : Extrude Repeat by Falk David

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3224

2 years agoPrevent segfault when opening file browser while a 2.79 file was loaded.
Sybren A. Stüvel [Tue, 8 May 2018 09:18:21 +0000 (11:18 +0200)]
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.

2 years agoEdit Mesh: multi-object rotate_uvs support by Pablo Dobarro
Dalai Felinto [Tue, 8 May 2018 09:12:23 +0000 (11:12 +0200)]
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

2 years agoEdit Mesh: multi-object reverse_uvs support by Pablo Dobarro
Dalai Felinto [Tue, 8 May 2018 08:48:20 +0000 (10:48 +0200)]
Edit Mesh: multi-object reverse_uvs support by Pablo Dobarro

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3220

2 years agoModifiers stack: port Curve to new Mesh-based system.
Bastien Montagne [Tue, 8 May 2018 09:05:49 +0000 (11:05 +0200)]
Modifiers stack: port Curve to new Mesh-based system.

2 years agoRename BKE_bmesh_to_mesh to BKE_bmesh_to_mesh_nomain.
Bastien Montagne [Tue, 8 May 2018 09:03:16 +0000 (11:03 +0200)]
Rename BKE_bmesh_to_mesh to BKE_bmesh_to_mesh_nomain.

Let's be clear about functions generating datablocks outside of Main
database.

2 years agoBKE_mesh_new → BKE_mesh_new_nomain
Sybren A. Stüvel [Tue, 8 May 2018 08:59:41 +0000 (10:59 +0200)]
BKE_mesh_new → BKE_mesh_new_nomain

Including 'nomain' in the name explicitifies that the returned mesh is
NOT stored in any library.

2 years agoCleanup: quiet warning, whitespace
Campbell Barton [Tue, 8 May 2018 08:57:43 +0000 (10:57 +0200)]
Cleanup: quiet warning, whitespace

2 years agoFix crash cancelling search, caused by D3207
Campbell Barton [Tue, 8 May 2018 08:45:50 +0000 (10:45 +0200)]
Fix crash cancelling search, caused by D3207

2 years agoAdded BKE_mesh_ensure_normals()
Sybren A. Stüvel [Tue, 8 May 2018 08:06:37 +0000 (10:06 +0200)]
Added BKE_mesh_ensure_normals()

This calls BKE_mesh_calc_normals() only if the mesh vertex normals are
marked as dirty.

2 years agoAdded BKE_mesh_new()
Sybren A. Stüvel [Fri, 4 May 2018 09:42:55 +0000 (11:42 +0200)]
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().

2 years agoMulti-Object-Editing : Support for MESH_OT_solidify by Lucas Boutrot
Dalai Felinto [Tue, 8 May 2018 08:39:06 +0000 (10:39 +0200)]
Multi-Object-Editing : Support for MESH_OT_solidify by Lucas Boutrot

Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3218

2 years agoMulti-Object-Editing Support for MESH_OT_wireframe by Lucas Boutrot
Dalai Felinto [Tue, 8 May 2018 08:22:33 +0000 (10:22 +0200)]
Multi-Object-Editing Support for MESH_OT_wireframe by Lucas Boutrot

Maniphest Tasks: T54641, T54643
Differential Revision: https://developer.blender.org/D3217

2 years agoEdit Mesh: multi-object faces_shade_flat support by Pablo Dobarro
Dalai Felinto [Tue, 8 May 2018 08:12:17 +0000 (10:12 +0200)]
Edit Mesh: multi-object faces_shade_flat support by Pablo Dobarro

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3219

2 years agoMulti-Object Editing: subdivide edgering support by Henry @Skippi
Dalai Felinto [Tue, 8 May 2018 07:58:34 +0000 (09:58 +0200)]
Multi-Object Editing: subdivide edgering support by Henry @Skippi

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3215

2 years agoMulti object editing - face dissolve support by Mateusz Grzeliński
Dalai Felinto [Tue, 8 May 2018 07:37:37 +0000 (09:37 +0200)]
Multi object editing - face dissolve support by Mateusz Grzeliński

Maniphest Tasks: T54643
Differential Revision: https://developer.blender.org/D3214

2 years agoExtrude Widget: subscribe to operator settings
Campbell Barton [Tue, 8 May 2018 07:20:06 +0000 (09:20 +0200)]
Extrude Widget: subscribe to operator settings

Needed so changing orientation refreshes.

2 years agoAdd note about compat code in uber eval causing modifiers to be applied twice
Mai Lavelle [Tue, 8 May 2018 06:44:13 +0000 (02:44 -0400)]
Add note about compat code in uber eval causing modifiers to be applied twice

2 years agoWM: log message bus operations
Campbell Barton [Tue, 8 May 2018 06:34:06 +0000 (08:34 +0200)]
WM: log message bus operations

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 8 May 2018 05:53:48 +0000 (07:53 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: remove unused wmReport struct
Campbell Barton [Tue, 8 May 2018 05:52:13 +0000 (07:52 +0200)]
Cleanup: remove unused wmReport struct

2 years agoWM: refresh tool on object mode switch
Campbell Barton [Tue, 8 May 2018 05:25:36 +0000 (07:25 +0200)]
WM: refresh tool on object mode switch

The tool manipulator could become disabled when set in the wrong mode.

2 years agoWM: publish Object.mode changes on mode switching
Campbell Barton [Tue, 8 May 2018 05:22:52 +0000 (07:22 +0200)]
WM: publish Object.mode changes on mode switching

2 years agoWM: quiet GCC redundant declaration warnings
Campbell Barton [Tue, 8 May 2018 05:18:49 +0000 (07:18 +0200)]
WM: quiet GCC redundant declaration warnings

2 years agoMulti-Object-Editing : Support for Edge Dissolve by Lucas Boutrot
Dalai Felinto [Mon, 7 May 2018 19:54:11 +0000 (21:54 +0200)]
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

2 years agoMulti object editing - verticle dissolve support by Mateusz Grzeliński
Dalai Felinto [Mon, 7 May 2018 19:42:19 +0000 (21:42 +0200)]
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

2 years agoExtrude Widget: Add orientation to topbar
Campbell Barton [Mon, 7 May 2018 19:30:55 +0000 (21:30 +0200)]
Extrude Widget: Add orientation to topbar

Add extrude operator that's intended to work on the current selection
and be activated as a tool.

2 years agoExtrude Widget: orient correctly w/ rotated object
Campbell Barton [Mon, 7 May 2018 17:38:48 +0000 (19:38 +0200)]
Extrude Widget: orient correctly w/ rotated object

2 years agoExtrude Widget: don't show when moving
Campbell Barton [Mon, 7 May 2018 13:30:23 +0000 (15:30 +0200)]
Extrude Widget: don't show when moving

2 years agoCleanup: style
Campbell Barton [Mon, 7 May 2018 19:38:43 +0000 (21:38 +0200)]
Cleanup: style

2 years agoMulti Object Smooth shading by Ethan Brierley
Dalai Felinto [Mon, 7 May 2018 19:30:29 +0000 (21:30 +0200)]
Multi Object Smooth shading by Ethan Brierley

With small changes by Dalai Felinto.

Differential Revision: https://developer.blender.org/D3213

2 years agoFix: Select all didnt' work with COW pose bones
Joshua Leung [Mon, 7 May 2018 17:03:29 +0000 (19:03 +0200)]
Fix: Select all didnt' work with COW pose bones

2 years agoUpdate Flatty Light theme with topbar and minor tweaks
Pablo Vazquez [Mon, 7 May 2018 16:46:30 +0000 (18:46 +0200)]
Update Flatty Light theme with topbar and minor tweaks

2 years agoDRW: Fix incorrect blending function reset.
Clément Foucault [Mon, 7 May 2018 16:29:37 +0000 (18:29 +0200)]
DRW: Fix incorrect blending function reset.

2 years agoModifier stack: move vgroup editing modifiers to new Mesh-based system.
Bastien Montagne [Mon, 7 May 2018 16:15:27 +0000 (18:15 +0200)]
Modifier stack: move vgroup editing modifiers to new Mesh-based system.

Some notes here:
* Proximity with non-mesh objects (like curve, see TEST_2 scene in
weightvg testfile) are not working currently. This is known TODO of COW
depsgraph project.
* Proximity modifier is slower, due to some other TODO pending on
BVHTree creation/caching for Mesh.

2 years agoModifier stack: add new get_texture_coords_mesh() helper.
Bastien Montagne [Mon, 7 May 2018 16:14:15 +0000 (18:14 +0200)]
Modifier stack: add new get_texture_coords_mesh() helper.

Will eventually fully replace get_texture_coords().

2 years agoFix ARMATURE_OT_layers_show_all now works with COW
Joshua Leung [Mon, 7 May 2018 16:06:16 +0000 (18:06 +0200)]
Fix ARMATURE_OT_layers_show_all now works with COW

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 7 May 2018 16:04:16 +0000 (18:04 +0200)]
Merge branch 'master' into blender2.8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 7 May 2018 16:02:48 +0000 (18:02 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix (unreported) memleak when copying object with some modifiers.
Bastien Montagne [Mon, 7 May 2018 15:58:35 +0000 (17:58 +0200)]
Fix (unreported) memleak when copying object with some modifiers.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 7 May 2018 15:54:10 +0000 (17:54 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: rename char/float conversion functions
Campbell Barton [Mon, 7 May 2018 15:31:28 +0000 (17:31 +0200)]
Cleanup: rename char/float conversion functions

- FTOCHAR       -> unit_float_to_uchar_clamp
- F3TOCHAR3     -> unit_float_to_uchar_clamp_v3 (swap args)
- F4TOCHAR4     -> unit_float_to_uchar_clamp_v4 (swap args)
- FTOUSHORT     -> unit_float_to_ushort_clamp
- USHORTTOUCHAR -> unit_ushort_to_uchar

2 years agoCleanup: move unit char/short/float to functions
Campbell Barton [Mon, 7 May 2018 15:14:28 +0000 (17:14 +0200)]
Cleanup: move unit char/short/float to functions

This caused GCC 8.1 to crash at build time,
but was also not very nice use of macros.

2 years agoArmature: Transparent Bone: Fix envelope not being alpha blended.
Clément Foucault [Mon, 7 May 2018 15:12:04 +0000 (17:12 +0200)]
Armature: Transparent Bone: Fix envelope not being alpha blended.

2 years agoArmature: Add new Transparent Bone overlay option.
Clément Foucault [Mon, 7 May 2018 13:10:11 +0000 (15:10 +0200)]
Armature: Add new Transparent Bone overlay option.

This is half the replacement of the old wireframe mode. It's not doing any
XRay drawing at the moment.

2 years agoDRW: Do not multiply alpha or color by alpha if not in blend more.
Clément Foucault [Mon, 7 May 2018 13:03:01 +0000 (15:03 +0200)]
DRW: Do not multiply alpha or color by alpha if not in blend more.

2 years agoDRW: Add DRW_pass_state_add and DRW_pass_state_remove
Clément Foucault [Mon, 7 May 2018 13:01:58 +0000 (15:01 +0200)]
DRW: Add DRW_pass_state_add and DRW_pass_state_remove

2 years agoFix: Left in debug prints
Joshua Leung [Mon, 7 May 2018 14:55:13 +0000 (16:55 +0200)]
Fix: Left in debug prints

2 years agoFixes for motion path evaluation (part of T54810 work)
Joshua Leung [Mon, 7 May 2018 14:52:42 +0000 (16:52 +0200)]
Fixes for motion path evaluation (part of T54810 work)

This commit brings back motion path calculations working on same level
as 2.7x.  Caveats:
* You cannot actually see anything, as all the drawing code for motion
  paths was removed and not reimplmented in 2.8 draw engines yet
* This doesn't actually use a separate depsgraph instance for fast
  background calculations yet. That's a separate topic, and will require
  further investigation (probably after code quest, according to original
  planning).
* The work here *does* however pave the path forwards towards fully separate
  COW evaluation though. We only need to stub in a different depsgraph instance
  here to get things working.

2 years agoFix: Tag armature for copy on write when selecting bones, so active bone gets updated
Ines Almeida [Mon, 7 May 2018 12:12:20 +0000 (14:12 +0200)]
Fix: Tag armature for copy on write when selecting bones, so active bone gets updated

see 8a2d2f1bb40 for similar

Reviewers: aligorith, sergey

Reviewed By: aligorith

Maniphest Tasks: T54812

Differential Revision: https://developer.blender.org/D3204

2 years agoFix Movieclip editors 'graph' and 'dopesheet' view using themes region
Philipp Oeser [Mon, 7 May 2018 12:57:05 +0000 (14:57 +0200)]
Fix Movieclip editors 'graph' and 'dopesheet' view using themes region
background setting

mentioned in T54942

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3200

2 years agoFix T54525: crash when setting number of frames to use between dupoff
Philipp Oeser [Mon, 7 May 2018 12:49:09 +0000 (14:49 +0200)]
Fix T54525: crash when setting number of frames to use between dupoff
frames

caused division by zero if both dupli_frames_on and dupli_frames_off are
zero. doing this doesnt seem useful, dupliframes can be disabled in
other ways.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3132

2 years agoUI: add particle mode popovers
Campbell Barton [Mon, 7 May 2018 13:01:37 +0000 (15:01 +0200)]
UI: add particle mode popovers

2 years agoWorkbench: Texture Shading mode
Jeroen Bakker [Mon, 7 May 2018 13:00:16 +0000 (15:00 +0200)]
Workbench: Texture Shading mode

- draws the active texture of the material
- if the texture cannot be found it will fallback to solid/material

2 years agoWorkbench: Texture Shading mode
Jeroen Bakker [Mon, 7 May 2018 12:59:27 +0000 (14:59 +0200)]
Workbench: Texture Shading mode

2 years agoFix Movieclip editors 'graph' and 'dopesheet' view using themes region
Philipp Oeser [Mon, 7 May 2018 12:57:05 +0000 (14:57 +0200)]
Fix Movieclip editors 'graph' and 'dopesheet' view using themes region
background setting

mentioned in T54942

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3200

2 years agoFix T54525: crash when setting number of frames to use between dupoff
Philipp Oeser [Mon, 7 May 2018 12:49:09 +0000 (14:49 +0200)]
Fix T54525: crash when setting number of frames to use between dupoff
frames

caused division by zero if both dupli_frames_on and dupli_frames_off are
zero. doing this doesnt seem useful, dupliframes can be disabled in
other ways.

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D3132

2 years agoModifier stack: port 'normals edit' to new Mesh-based system.
Bastien Montagne [Mon, 7 May 2018 12:36:00 +0000 (14:36 +0200)]
Modifier stack: port 'normals edit' to new Mesh-based system.

Note that custom normals drawing seems to be broken, and there also are
some refresh issues in some cases... But this is same with old DM-based
code, so not related to modifiers themselves probably.