blender.git
17 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

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

17 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.

17 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

17 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

17 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

17 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

17 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.

17 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

17 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

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

17 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

17 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

17 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

17 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.

17 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.

17 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().

17 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

17 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

17 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

17 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.

17 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

17 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

17 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.

17 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.

17 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.

17 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.

17 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

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

17 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.

17 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

17 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

17 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

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

17 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

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

17 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

17 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

17 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.

17 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().

17 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!

17 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

17 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

17 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

17 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

17 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.

17 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)

17 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.

17 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.

17 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.

17 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.

17 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.

17 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

17 months agoModifier stack: move Edge Split to new Mesh-based system.
Bastien Montagne [Mon, 7 May 2018 10:26:42 +0000 (12:26 +0200)]
Modifier stack: move Edge Split to new Mesh-based system.

17 months agoModifier stack: Fix broken 'dirty normals' flag for new mesh-aware modifiers.
Bastien Montagne [Mon, 7 May 2018 10:24:23 +0000 (12:24 +0200)]
Modifier stack: Fix broken 'dirty normals' flag for new mesh-aware modifiers.

Since modifier stack is still primarily based on DM in blender2.8, we
need to copy over 'dirty normals' flag from temp Mesh to DM after
modifier has been evaluated.

17 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

17 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 7 May 2018 10:26:06 +0000 (12:26 +0200)]
Merge branch 'master' into blender2.8

17 months agoFix T54594: Lattice with Armature modifier not updating correctly
Sergey Sharybin [Mon, 7 May 2018 10:04:50 +0000 (12:04 +0200)]
Fix T54594: Lattice with Armature modifier not updating correctly

17 months agoUI: Hide & shrink scroll-bars based on cursor position
Julian Eisel [Sun, 6 May 2018 23:31:18 +0000 (01:31 +0200)]
UI: Hide & shrink scroll-bars based on cursor position

Scroll-bars are now hidden unless the cursor approaches them, in which case they
smoothly grow and become more & more visible. Note that since 0d309144020168e55,
scroll-bars are drawn on top of editor contents. There's no more jumping of
buttons when scroll-bars appear.

Technical notes:
* AZones are used to adjust scrollbars based on mouse movements

  We may want to support screen level AZones if we want scrollbars to also
  smoothly appear when approaching them from a different area.
  I also plan to make further changes to AZones to clean up stuff a bit.
* Had to move AZone handling to a post ARegion init stage, since we need the
  updated View2D data from there.
* View2D masks and scroller rectangles are now updated on every redraw. It's
  cheap to do that though.

17 months agoUI: Draw scroll-bars overlapping with editor content
Julian Eisel [Thu, 26 Apr 2018 22:49:00 +0000 (00:49 +0200)]
UI: Draw scroll-bars overlapping with editor content

Scroll-bars used to draw in a little extra space in the editor, causing
buttons to jump a bit when they appeared/disappeared. Now they draw on
top of the buttons, just small enough to avoid bigger overlaps. Followup commits
will do further adjustments.

With this we can get rid of a hack that was calling the (often Python
defined) panel definition - the panel 'draw' callback - twice.

17 months agoMulti-object edge collapse
Dalai Felinto [Mon, 7 May 2018 09:26:00 +0000 (11:26 +0200)]
Multi-object edge collapse

17 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 7 May 2018 09:15:31 +0000 (11:15 +0200)]
Merge branch 'master' into blender2.8

17 months agoFix T54966: mathutils.noise.voronoi Memory leak
Bastien Montagne [Mon, 7 May 2018 09:07:11 +0000 (11:07 +0200)]
Fix T54966: mathutils.noise.voronoi Memory leak

C code was not correctly handling release of temp data, not technically
a memory leak, but indeed rather annoying bug! ;)

17 months agoArmature: Add back relationship lines.
Clément Foucault [Sun, 6 May 2018 22:24:30 +0000 (00:24 +0200)]
Armature: Add back relationship lines.

17 months agoObject Mode: Use stipple shader for relationship lines.
Clément Foucault [Sun, 6 May 2018 22:22:03 +0000 (00:22 +0200)]
Object Mode: Use stipple shader for relationship lines.

17 months agoReset number values when entering an empty value
Dalai Felinto [Sun, 6 May 2018 17:30:47 +0000 (19:30 +0200)]
Reset number values when entering an empty value

Note: This rely on the property having a pre-defined default.

Also, be aware that trying to multi-drag and multi-ui-edit is not working
at the moment (T54976).

With changes by Campbell Barton.

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

17 months agoRNA default: Scene start/end frames
Dalai Felinto [Sun, 6 May 2018 17:31:16 +0000 (19:31 +0200)]
RNA default: Scene start/end frames

17 months agoFix wrong header alignment in user preferences, after recent commit.
Brecht Van Lommel [Sun, 6 May 2018 19:23:53 +0000 (21:23 +0200)]
Fix wrong header alignment in user preferences, after recent commit.

17 months agoUI: fix popover menus sometimes going off screen, after recent commit.
Brecht Van Lommel [Sun, 6 May 2018 18:43:02 +0000 (20:43 +0200)]
UI: fix popover menus sometimes going off screen, after recent commit.

17 months agoUI: keep header top/bottom alignment the same when switching editor types.
Brecht Van Lommel [Sun, 6 May 2018 18:20:40 +0000 (20:20 +0200)]
UI: keep header top/bottom alignment the same when switching editor types.

17 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Sun, 6 May 2018 18:15:14 +0000 (20:15 +0200)]
Merge branch 'master' into blender2.8

17 months agoUI: fixes for 3D viewport popovers moving / flipping on edits.
Brecht Van Lommel [Sun, 6 May 2018 16:08:27 +0000 (18:08 +0200)]
UI: fixes for 3D viewport popovers moving / flipping on edits.

* Ensure popover does not change direction or location.
* Open popover towards the relevant editor, like pulldown menus.
* Use a bigger maximum assumed size to deal with some corner cases.
* Do proper 3D viewport header refresh on shading mode changes.

17 months agoCleanup: deprecate area.headertype.
Brecht Van Lommel [Sun, 6 May 2018 16:36:54 +0000 (18:36 +0200)]
Cleanup: deprecate area.headertype.

This was still used in a few places but not kept in sync with the actual
header position. Always get alignment from the header region now.

17 months agoNodes: show node labels (like image name) in material properties node view.
Brecht Van Lommel [Mon, 19 Feb 2018 13:39:27 +0000 (14:39 +0100)]
Nodes: show node labels (like image name) in material properties node view.

17 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 6 May 2018 16:35:39 +0000 (18:35 +0200)]
Merge branch 'master' into blender2.8

17 months agoArmature: Add a special Pass for bone axes.
Clément Foucault [Sun, 6 May 2018 16:36:27 +0000 (18:36 +0200)]
Armature: Add a special Pass for bone axes.

In object mode, the axes are drawn like any other wire objects with
depth test and depth write. Thus enabling MSAA to work but not their xray
behaviour.

In edit armature/pose mode, draw smooth line without depth testing. This
produces wrong draw ordering problem but still gives the desired xray
behaviour. We do it outside of the MSAA pass since the xray behaviour is not
compatible with it. But we are drawing smoothed lines so no need for MSAA.
The lines are 2px thick and improve readability.

17 months agoArmature: Fix bone axes not using bone color.
Clément Foucault [Sun, 6 May 2018 16:29:49 +0000 (18:29 +0200)]
Armature: Fix bone axes not using bone color.

17 months agoArmature: Put passes in a struct easier to pass around.
Clément Foucault [Sun, 6 May 2018 16:28:11 +0000 (18:28 +0200)]
Armature: Put passes in a struct easier to pass around.

17 months agoDRW: Add DRW_STATE_WIRE_SMOOTH to draw smooth wires.
Clément Foucault [Sun, 6 May 2018 16:23:53 +0000 (18:23 +0200)]
DRW: Add DRW_STATE_WIRE_SMOOTH to draw smooth wires.

This is only useful if depth test/wire is disabled.

17 months agoArmature: Fix/Change bone axes display.
Clément Foucault [Sun, 6 May 2018 14:09:25 +0000 (16:09 +0200)]
Armature: Fix/Change bone axes display.

Now the axes are displayed correctly at the tip of the bone and with the
axes names.

I've made some modifications though:
- Axes are colored. (should not be in object mode but that's TODO)
- Axes ends are not flat arrows anymore. Replaced with a small diamond.
- Axes names are now scale by their respective axes instead of being
  affected by other axes.
- Changed axes names "font" to be a bit more sexy.

17 months agoCleanup: split rotation_from_view
Campbell Barton [Sun, 6 May 2018 16:32:18 +0000 (18:32 +0200)]
Cleanup: split rotation_from_view

Add a function that takes only a quat, instead of the 3D view.

Allows for using non-view orientations.

17 months agoFix update for manipulator w/ 3D cursor change
Campbell Barton [Sun, 6 May 2018 14:41:32 +0000 (16:41 +0200)]
Fix update for manipulator w/ 3D cursor change

17 months agoCleanup: transform manipulator filename
Campbell Barton [Sun, 6 May 2018 14:12:42 +0000 (16:12 +0200)]
Cleanup: transform manipulator filename

Use matching 2d/3d suffix.

17 months agoCorrect extrude poll function
Campbell Barton [Sun, 6 May 2018 14:13:43 +0000 (16:13 +0200)]
Correct extrude poll function

17 months agoWorkbench: if no material is available, use color 0.8 like default material.
Brecht Van Lommel [Sun, 6 May 2018 13:58:01 +0000 (15:58 +0200)]
Workbench: if no material is available, use color 0.8 like default material.

17 months agoFix use of removed Blender Internal property.
Brecht Van Lommel [Sun, 6 May 2018 13:58:48 +0000 (15:58 +0200)]
Fix use of removed Blender Internal property.

17 months agoFix issue with hidden headers after previous commit.
Brecht Van Lommel [Sun, 6 May 2018 14:07:34 +0000 (16:07 +0200)]
Fix issue with hidden headers after previous commit.

17 months agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 6 May 2018 14:00:27 +0000 (16:00 +0200)]
Merge branch 'master' into blender2.8

17 months agoObject Snap: add object & matrix to view ray cast
Campbell Barton [Sun, 6 May 2018 13:56:09 +0000 (15:56 +0200)]
Object Snap: add object & matrix to view ray cast

Some snap functions already exposed this.

17 months agoUI: region overlap now works for headers as well.
Brecht Van Lommel [Sat, 21 Apr 2018 16:37:03 +0000 (18:37 +0200)]
UI: region overlap now works for headers as well.

This is for the 3D viewport and image editor. A remaining issue is
that pulldown menu buttons only show text, which is not visible on
all background colors, so making the header entirely transparent
does not work well at the moment.

17 months agoEdit-mesh: multi-object reveal
Dalai Felinto [Sun, 6 May 2018 11:51:40 +0000 (13:51 +0200)]
Edit-mesh: multi-object reveal

17 months agoEdit-mesh: multi-object hide
Dalai Felinto [Sun, 6 May 2018 11:51:30 +0000 (13:51 +0200)]
Edit-mesh: multi-object hide

17 months agoEdit-mesh: multi-object delete edge loops
Dalai Felinto [Sun, 6 May 2018 11:44:11 +0000 (13:44 +0200)]
Edit-mesh: multi-object delete edge loops

17 months agoFix crash with select linked when nothing is under the cursor
Dalai Felinto [Sun, 6 May 2018 11:19:17 +0000 (13:19 +0200)]
Fix crash with select linked when nothing is under the cursor

There is no object to update anyways, and there is no valid basact when the
nified_findnearest() test fails.

How to reproduce the bug: Try to select linked (L) with selected faces but
withotu mouse hovering any mesh.

Bug introduced on: rBbfc9d426bb95 (original multi-object edit commit).

17 months agoEdit-mesh: multi-object select less
Dalai Felinto [Sun, 6 May 2018 11:08:59 +0000 (13:08 +0200)]
Edit-mesh: multi-object select less

17 months agoEdit-mesh: multi-object select more
Dalai Felinto [Sun, 6 May 2018 11:03:59 +0000 (13:03 +0200)]
Edit-mesh: multi-object select more

17 months agoFix missing show_weight from overlay UI
Campbell Barton [Sun, 6 May 2018 10:17:53 +0000 (12:17 +0200)]
Fix missing show_weight from overlay UI

Missed when moving settings out of the mesh.

17 months agoShow the 3D cursor by default
Campbell Barton [Sun, 6 May 2018 09:56:26 +0000 (11:56 +0200)]
Show the 3D cursor by default

Was committed as part of unrelated change: D3198.

17 months agoFix extrude glitch where undo state was visible
Campbell Barton [Sun, 6 May 2018 09:48:32 +0000 (11:48 +0200)]
Fix extrude glitch where undo state was visible

17 months agoEditMesh: initial extrude manipulator
Campbell Barton [Sun, 6 May 2018 08:00:37 +0000 (10:00 +0200)]
EditMesh: initial extrude manipulator

This manipulator is a test for mixing do/redo,
there are still some glitches that need sorting out in
transform & the undo stack.