blender.git
13 months 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

13 months 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...).

13 months 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

13 months 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!

13 months 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

13 months 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!

13 months 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.

13 months 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

13 months 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.

13 months 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

13 months 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

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

13 months 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...

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

13 months 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.

13 months 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.

13 months 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.

13 months 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.

13 months 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!

13 months 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.

13 months 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

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

13 months 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.

13 months 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.

13 months 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

13 months 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.

13 months 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

13 months 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

13 months 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

13 months 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.

13 months 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

13 months 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

13 months 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.

13 months 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.

13 months 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.

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

13 months 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

13 months 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.

13 months 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().

13 months 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

13 months 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

13 months 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

13 months 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

13 months 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

13 months 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.

13 months 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

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

13 months 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

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

13 months 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.

13 months 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

13 months 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

13 months 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

13 months 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

13 months 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.

13 months 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

13 months 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

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

13 months 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

13 months 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

13 months 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

13 months 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.

13 months 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.

13 months 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().

13 months 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

13 months 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

13 months 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

13 months 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.

13 months 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

13 months 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

13 months 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.

13 months 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.

13 months 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.

13 months 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.

13 months 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

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

13 months 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.

13 months 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

13 months 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

13 months 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

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

13 months 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

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

13 months 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

13 months 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

13 months 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.

13 months agoClear dirty normals flag from Mesh at least in main BKE_mesh_calc_normals().
Bastien Montagne [Mon, 7 May 2018 12:34:49 +0000 (14:34 +0200)]
Clear dirty normals flag from Mesh at least in main BKE_mesh_calc_normals().

13 months agoChange mesh dirty runtime flags to signed int64_t.
Bastien Montagne [Mon, 7 May 2018 12:33:20 +0000 (14:33 +0200)]
Change mesh dirty runtime flags to signed int64_t.

Because CD_MASK_XXX are signed longlong, so when assigning to unsigned
longlong you get grumpy compiler errors!

13 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 7 May 2018 12:29:54 +0000 (14:29 +0200)]
Merge branch 'master' into blender2.8

13 months agoMore tweaks to strict compiler flags
Sergey Sharybin [Mon, 7 May 2018 12:28:22 +0000 (14:28 +0200)]
More tweaks to strict compiler flags

13 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 7 May 2018 12:20:47 +0000 (14:20 +0200)]
Merge branch 'master' into blender2.8

13 months agoSilence compilation error around possible fall-through
Sergey Sharybin [Mon, 7 May 2018 12:19:12 +0000 (14:19 +0200)]
Silence compilation error around possible fall-through

13 months agoFix wrong comparison of drop target URI on X11
Sergey Sharybin [Mon, 7 May 2018 12:08:33 +0000 (14:08 +0200)]
Fix wrong comparison of drop target URI on X11

Need to compare, NOT to override passed file name.

13 months agoFix crash in debug drawing of fullscreen exit icon
Julian Eisel [Mon, 7 May 2018 11:46:00 +0000 (13:46 +0200)]
Fix crash in debug drawing of fullscreen exit icon

Steps to recreate were:
* Go into fullscreen mode (Alt+F10)
* Open debug menu (Ctrl+Alt+D)
* Set value to 1
* Confirming should crash (at least in debug builds)

13 months agoRemove alternative action-zone drawing for collapsed regions
Julian Eisel [Mon, 7 May 2018 11:26:48 +0000 (13:26 +0200)]
Remove alternative action-zone drawing for collapsed regions

Was hidden behind debug values 1, 2 and 3.

Also cleaned up logic in region_azone_edge_initialize. It was using a variable
called is_hidden that actually should've been called is_visible.

13 months agoEevee: Hair: Fix wrong color when shader is compiling.
Clément Foucault [Mon, 7 May 2018 11:06:57 +0000 (13:06 +0200)]
Eevee: Hair: Fix wrong color when shader is compiling.

13 months agoArmature: Fix BBones base face winding.
Clément Foucault [Mon, 7 May 2018 10:27:59 +0000 (12:27 +0200)]
Armature: Fix BBones base face winding.

Was producing wrong outline and backface culling.

13 months agoArmature: Remove big outlines for active bones & reduce axes color.
Clément Foucault [Mon, 7 May 2018 10:23:15 +0000 (12:23 +0200)]
Armature: Remove big outlines for active bones & reduce axes color.

13 months agoFix Bevel percent mode bug 54228
Howard Trickey [Mon, 7 May 2018 11:04:12 +0000 (07:04 -0400)]
Fix Bevel percent mode bug 54228

Previous new adjust pass commit should have excluded percent mode.

13 months agoFix T54324: remove stencil entries from weight paint keymap
Philipp Oeser [Mon, 7 May 2018 10:28:15 +0000 (12:28 +0200)]
Fix T54324: remove stencil entries from weight paint keymap

Reviewed By: mont29

Differential Revision: http://developer.blender.org/D3178