blender.git
8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 21:17:00 +0000 (08:17 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: style
Campbell Barton [Fri, 30 Nov 2018 21:15:25 +0000 (08:15 +1100)]
Cleanup: style

8 months agoWin32: Use the nicer looking blender-drawn confirmation message box when
Antony Ryakiotakis [Fri, 30 Nov 2018 20:11:59 +0000 (21:11 +0100)]
Win32: Use the nicer looking blender-drawn confirmation message box when
quitting with unsaved changes, instead of an ugly messagebox

8 months agoFix file browsers thumbnail selection with tablet failing, after recent changes.
Brecht Van Lommel [Fri, 30 Nov 2018 18:11:14 +0000 (19:11 +0100)]
Fix file browsers thumbnail selection with tablet failing, after recent changes.

8 months agoFix T58244: Proportional editing center is wrong
Antonioya [Fri, 30 Nov 2018 18:04:14 +0000 (19:04 +0100)]
Fix T58244: Proportional editing center is wrong

The global center was not calculated at all. Now a center is calculated using the selected points

8 months agoFix T58267: node socket grabbing not working well with box select tool.
Brecht Van Lommel [Fri, 30 Nov 2018 17:27:04 +0000 (18:27 +0100)]
Fix T58267: node socket grabbing not working well with box select tool.

8 months agoFix T58235: broken baking of tangent space normals.
Brecht Van Lommel [Fri, 30 Nov 2018 14:54:46 +0000 (15:54 +0100)]
Fix T58235: broken baking of tangent space normals.

8 months agoAnnotation: Replace ALT key to CTRL for Eraser
Antonioya [Fri, 30 Nov 2018 15:23:22 +0000 (16:23 +0100)]
Annotation: Replace ALT key to CTRL for Eraser

This makes the keymap consistent with Grease Pencil.

8 months agoStudioLight Editor: Add copy settings and overwrite prompt
Clément Foucault [Fri, 30 Nov 2018 14:40:46 +0000 (15:40 +0100)]
StudioLight Editor: Add copy settings and overwrite prompt

Copy settings let users create variations more easily.

Ovewrite prompt is there to be able to edit already existing studiolight.

8 months agoStudioLight Editor: Fix defaults
Clément Foucault [Fri, 30 Nov 2018 14:39:15 +0000 (15:39 +0100)]
StudioLight Editor: Fix defaults

8 months agoStudioLight: Renaming stuffs
Clément Foucault [Fri, 30 Nov 2018 13:10:20 +0000 (14:10 +0100)]
StudioLight: Renaming stuffs

8 months agoStudioLight: Add a 4th light to adjust lighting
Clément Foucault [Fri, 30 Nov 2018 12:58:27 +0000 (13:58 +0100)]
StudioLight: Add a 4th light to adjust lighting

There was a bug due to non-aligned struct in the DNA that prevented us
to increase the size of the userdef light array.

Since the studio lights are now presets and stored in external files,
there is no need to keep backward compatibility with theses lights.

Remove the old array and create a new one.

Add blue tint light for specular.

8 months agoStudiolight: Fix bad memcpy size
Clément Foucault [Fri, 30 Nov 2018 12:27:00 +0000 (13:27 +0100)]
Studiolight: Fix bad memcpy size

8 months agoWorkbench: Add Shadow Focus and change Shadow Orientation
Clément Foucault [Fri, 30 Nov 2018 12:26:30 +0000 (13:26 +0100)]
Workbench: Add Shadow Focus and change Shadow Orientation

Shadow focus let the user choose how hard are is the shadows transition.
Harder shadow transition can be used for stylistic effects or more uniform
shading.

Make shadow orientation respect the same orientation as the studio light
(view from +Y direction aka. front view). Make the default shadow direction
more similar to the default light position (the default light object, not
the default studio lighting).

8 months agoFix T58150: crash in Texture Paint after changing selection in Edit Mode.
Alexander Gavrilov [Fri, 30 Nov 2018 14:10:52 +0000 (17:10 +0300)]
Fix T58150: crash in Texture Paint after changing selection in Edit Mode.

Texture paint code was retrieving the evaluated mesh from the
original object, which isn't supposed to happen, so the cached
mesh isn't properly cleaned up by Edit Mode toggle.

8 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 30 Nov 2018 11:16:19 +0000 (12:16 +0100)]
Merge branch 'master' into blender2.8

8 months agoFix missing "need eval data" for texpaint mode toggle op.
Bastien Montagne [Fri, 30 Nov 2018 10:57:14 +0000 (11:57 +0100)]
Fix missing "need eval data" for texpaint mode toggle op.

Note that am not sure that is actually needed, since switching to that
mode does not actually use any eval data, it's only needed during init
of first stroke... But in doubt, that won't hurt to have it here anyway.

8 months agoCleanup: remove useless depsgraph parameter in some texpaint helper func.
Bastien Montagne [Fri, 30 Nov 2018 10:08:40 +0000 (11:08 +0100)]
Cleanup: remove useless depsgraph parameter in some texpaint helper func.

8 months agoFix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.
Brecht Van Lommel [Fri, 30 Nov 2018 10:50:23 +0000 (11:50 +0100)]
Fix T58275: WITH_OPENSUBDIV not enabled by default with some CMake versions.

Solution provided by Ulysse Martin.

8 months agoGP: Fix ALT key conflict with Eraser
Antonioya [Fri, 30 Nov 2018 10:05:00 +0000 (11:05 +0100)]
GP: Fix ALT key conflict with Eraser

8 months agoFix Alt key conflict in Annotation Eraser
Antonioya [Fri, 30 Nov 2018 09:58:12 +0000 (10:58 +0100)]
Fix Alt key conflict in Annotation Eraser

There was a conflict when the Alt key was pressed while drawing and this makes eraser very difficult.

8 months agoFix T58279: crush when load this scene _ with simple materials and simple objects.
Bastien Montagne [Fri, 30 Nov 2018 09:45:16 +0000 (10:45 +0100)]
Fix T58279: crush when load this scene _ with simple materials and simple objects.

Not sure why eevee's light_cache is NULL in that file, but this can be
handled gracefully instead of crashing. ;)

8 months agoRevert "3D View: locked camera was using the original view offset"
Campbell Barton [Fri, 30 Nov 2018 08:01:03 +0000 (19:01 +1100)]
Revert "3D View: locked camera was using the original view offset"

This reverts commit 3f31c28a025cf61e2c4df33f28467771ae603965.

Gives issues zooming, could be resolved but it mostly worked OK before,
and it's not a priority to spend time on, so leave as is for now.

8 months agoBe sure Annotations use default color and thickness
Antonioya [Fri, 30 Nov 2018 07:57:36 +0000 (08:57 +0100)]
Be sure Annotations use default color and thickness

Depending of the last tool used, the Note layer was created when draw but it was using the wrong color and thickness.

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 07:15:52 +0000 (18:15 +1100)]
Merge branch 'master' into blender2.8

8 months ago3D View: locked camera was using the original view offset
Campbell Barton [Fri, 30 Nov 2018 07:11:04 +0000 (18:11 +1100)]
3D View: locked camera was using the original view offset

Now used the original dist instead, since using the distance between
the camera and the views offset may seem random from the users POV.

This addresses strange behavior noticed in T56934.

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 06:07:59 +0000 (17:07 +1100)]
Merge branch 'master' into blender2.8

8 months agoCorrect missing semicolon in recent commit
Campbell Barton [Fri, 30 Nov 2018 06:07:13 +0000 (17:07 +1100)]
Correct missing semicolon in recent commit

8 months agoFix T58255: "Set Spline Type" missing in the menu
Campbell Barton [Fri, 30 Nov 2018 05:40:39 +0000 (16:40 +1100)]
Fix T58255: "Set Spline Type" missing in the menu

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 04:46:26 +0000 (15:46 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: ensure '_END' macros end with a semicolon
Campbell Barton [Fri, 30 Nov 2018 04:35:15 +0000 (15:35 +1100)]
Cleanup: ensure '_END' macros end with a semicolon

Missing these breaks auto-indent for editors that don't expand macros.

8 months agoRemove from Local View operator
Dalai Felinto [Fri, 30 Nov 2018 01:44:37 +0000 (23:44 -0200)]
Remove from Local View operator

This was the old, obscure, little known, M shortcut operator when in local view
back in the 2.7x days.

8 months agoCleanup: name macros w/ matching BEGIN/END
Campbell Barton [Fri, 30 Nov 2018 04:22:01 +0000 (15:22 +1100)]
Cleanup: name macros w/ matching BEGIN/END

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 04:11:32 +0000 (15:11 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: name macros w/ matching BEGIN/END
Campbell Barton [Fri, 30 Nov 2018 04:08:47 +0000 (15:08 +1100)]
Cleanup: name macros w/ matching BEGIN/END

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 03:58:46 +0000 (14:58 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: style
Campbell Barton [Fri, 30 Nov 2018 03:51:16 +0000 (14:51 +1100)]
Cleanup: style

8 months agoCleanup: duplicate include
Campbell Barton [Fri, 30 Nov 2018 03:21:28 +0000 (14:21 +1100)]
Cleanup: duplicate include

8 months agoCleanup: style
Campbell Barton [Fri, 30 Nov 2018 03:20:41 +0000 (14:20 +1100)]
Cleanup: style

8 months agoFix sculpt app-template editing the users startup
Campbell Barton [Fri, 30 Nov 2018 02:33:17 +0000 (13:33 +1100)]
Fix sculpt app-template editing the users startup

8 months agoPyAPI: add load_factory_startup_post handler
Campbell Barton [Fri, 30 Nov 2018 02:33:13 +0000 (13:33 +1100)]
PyAPI: add load_factory_startup_post handler

Needed so we can apply changes to the startup file,
only in the case when it's load loaded from a user-saved startup.

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 02:24:17 +0000 (13:24 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: unused return arg
Campbell Barton [Fri, 30 Nov 2018 02:21:12 +0000 (13:21 +1100)]
Cleanup: unused return arg

8 months agoWorkbench: StudioLight: Fix worldspace rotation
Clément Foucault [Fri, 30 Nov 2018 01:02:21 +0000 (02:02 +0100)]
Workbench: StudioLight: Fix worldspace rotation

8 months agoWorkbench: Cleanups & Simplifications
Clément Foucault [Fri, 30 Nov 2018 00:53:50 +0000 (01:53 +0100)]
Workbench: Cleanups & Simplifications

* Move the curvature computation to the cavity pass: One can argue it's not
  the best performance wise (it gets a tiny perf pernalty if it is done
  alone without the ssao), but it make the code cleaner and reduce
  considerably the number of shader variation possible.
* Lower shader variation to 2^8 instead of 2^12

8 months agoGPUTexture: Add support for GL_R16 texture format
Clément Foucault [Fri, 30 Nov 2018 00:42:51 +0000 (01:42 +0100)]
GPUTexture: Add support for GL_R16 texture format

8 months agoFix T57981: Crash entering sculpt mode
Sergey Sharybin [Fri, 30 Nov 2018 00:46:42 +0000 (11:46 +1100)]
Fix T57981: Crash entering sculpt mode

8 months agoFix T58240: mathutils.noise.voronoi crash
Campbell Barton [Fri, 30 Nov 2018 00:22:17 +0000 (11:22 +1100)]
Fix T58240: mathutils.noise.voronoi crash

8 months agoUI: helpful text when favourites menu is empty
Campbell Barton [Thu, 29 Nov 2018 23:40:44 +0000 (10:40 +1100)]
UI: helpful text when favourites menu is empty

8 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 29 Nov 2018 22:54:30 +0000 (23:54 +0100)]
Merge branch 'master' into blender2.8

8 months agoIcons: uv-sculpt
William Reynish [Thu, 29 Nov 2018 22:51:40 +0000 (09:51 +1100)]
Icons: uv-sculpt

8 months agoUI: move curve point/segment menus into header
Campbell Barton [Thu, 29 Nov 2018 22:45:13 +0000 (09:45 +1100)]
UI: move curve point/segment menus into header

Now matches mesh vertex/edge/face menu placement.

Also move some menu items to match mesh vertex menu.

8 months agoFix T58183: crash with CPU + GPU rendering after profiling changes.
Brecht Van Lommel [Thu, 29 Nov 2018 22:30:17 +0000 (23:30 +0100)]
Fix T58183: crash with CPU + GPU rendering after profiling changes.

Multi-device was not passing along profiler to the CPU.

8 months agoFix T58213: Crash w/ Vertex paint average
Campbell Barton [Thu, 29 Nov 2018 22:29:30 +0000 (09:29 +1100)]
Fix T58213: Crash w/ Vertex paint average

8 months agoDocs: rename group -> collection
Campbell Barton [Thu, 29 Nov 2018 22:10:04 +0000 (09:10 +1100)]
Docs: rename group -> collection

8 months agoCleanup: de-duplicate default object tools
Campbell Barton [Thu, 29 Nov 2018 22:06:36 +0000 (09:06 +1100)]
Cleanup: de-duplicate default object tools

8 months agoTool System: add tools for edit-mode surface
Campbell Barton [Thu, 29 Nov 2018 22:02:11 +0000 (09:02 +1100)]
Tool System: add tools for edit-mode surface

8 months agoDocs: update quickstart for 2.8
Campbell Barton [Thu, 29 Nov 2018 21:43:41 +0000 (08:43 +1100)]
Docs: update quickstart for 2.8

8 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 29 Nov 2018 21:39:59 +0000 (08:39 +1100)]
Merge branch 'master' into blender2.8

8 months agoCleanup: trailing space
Campbell Barton [Thu, 29 Nov 2018 21:38:25 +0000 (08:38 +1100)]
Cleanup: trailing space

8 months agoFix T58196: Annotation thickness is 0
Antonioya [Thu, 29 Nov 2018 21:34:01 +0000 (22:34 +0100)]
Fix T58196: Annotation thickness is 0

When the annotation is created by other tools, the thickness was set to 0

8 months agoFix crash creating enum tooltips
Campbell Barton [Thu, 29 Nov 2018 21:01:41 +0000 (08:01 +1100)]
Fix crash creating enum tooltips

Error from recent changes to shortcut display.

8 months agoEnable annotations when GP object is selected.
Antonioya [Thu, 29 Nov 2018 20:59:29 +0000 (21:59 +0100)]
Enable annotations when GP object is selected.

Now when try to add annotation, if a grease pencil object is selected, first the object is unselected. This solution is not perfect but it's better than cancel the annotation.

Thanks Dalai for his help.

8 months agoUI: Minor changes to studiolight user preferences
Clément Foucault [Thu, 29 Nov 2018 20:52:24 +0000 (21:52 +0100)]
UI: Minor changes to studiolight user preferences

8 months agoWorkbench: Add button to go out of studiolight edit mode
Clément Foucault [Thu, 29 Nov 2018 20:33:14 +0000 (21:33 +0100)]
Workbench: Add button to go out of studiolight edit mode

This makes it more clean why you cannot choose studio lights in this mode.

8 months agoWorkbench: Add 4 default studio lights
Clément Foucault [Thu, 29 Nov 2018 20:23:56 +0000 (21:23 +0100)]
Workbench: Add 4 default studio lights

Made by me. Not definitive, subject to change.

8 months agoWorkbench: Add option to have world space lighting in studio light mode
Clément Foucault [Thu, 29 Nov 2018 19:57:09 +0000 (20:57 +0100)]
Workbench: Add option to have world space lighting in studio light mode

This option is per viewport.

Having view space shading make sense when working on isolated objects like
if you were holding them in your hands. But for entire scene work, it is
better to have the lighting fixed to have a better spatial representation.

8 months agoWorkbench: Add back studio lighting presets
Clément Foucault [Thu, 29 Nov 2018 18:54:23 +0000 (19:54 +0100)]
Workbench: Add back studio lighting presets

This changes a bit how the userprefs solid lights works. They are not
visible until enabling the "Edit Solid Light" checkbox. Once enabled the
current studiolight used for solid mode will be overwritten.

Once the lighting settings are tweaked, the user can click the
"Save as Studio light" button to save the current settings.
This makes it easy to create new lighting without messing the other
presets.

The studio lights are stored as ASCII files on the disk using a dead
simple custom format.

The UI/UX is not perfect and will be improved in other commits.

Also includes:
* Separate LookDev HDRI selection from Solid Lights
* Hide LookDev HDRIs from the Solid Lights selection list

8 months agoWorkbench: Rename orientation to type and Camera studio light to Studio
Clément Foucault [Wed, 28 Nov 2018 21:16:56 +0000 (22:16 +0100)]
Workbench: Rename orientation to type and Camera studio light to Studio

8 months agoTemplates: tweak sculpt to work w/o opensubdiv
Campbell Barton [Thu, 29 Nov 2018 20:10:52 +0000 (07:10 +1100)]
Templates: tweak sculpt to work w/o opensubdiv

8 months agoadd: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary [Thu, 29 Nov 2018 15:56:33 +0000 (16:56 +0100)]
add: visual studio Compiler warning (order of attribute init in c++ constructors)

8 months agoFix wrong property name in preview render Python script.
Brecht Van Lommel [Thu, 29 Nov 2018 17:26:48 +0000 (18:26 +0100)]
Fix wrong property name in preview render Python script.

8 months agoadd: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary [Thu, 29 Nov 2018 15:56:33 +0000 (16:56 +0100)]
add: visual studio Compiler warning (order of attribute init in c++ constructors)

8 months agoTexture Paint: fix artifacts when using masks with symmetry.
Alexander Gavrilov [Thu, 29 Nov 2018 15:54:32 +0000 (18:54 +0300)]
Texture Paint: fix artifacts when using masks with symmetry.

For most brushes, texture painting uses a special mask accumulation
table in order to ensure that the amount of added color only increases
when the same pixel is touched multiple times by the stroke.

Unfortunately, only the mask texture was added to the mask before
this check, while normal, stencil, texture alpha masks were applied
after this check. This means that the check can pass if e.g. the
pressure is increased, but the final mask value is actually lower.
One might think that the mask values are fixed per pixel, but with
symmetry that isn't true. The result is a nasty stripe artifact due
to the discrete cutoff nature of the accumulation test.

In order to fix this, apply all masks before accumulation.

8 months agoBump version to 2.80 beta.
Brecht Van Lommel [Wed, 28 Nov 2018 17:31:03 +0000 (18:31 +0100)]
Bump version to 2.80 beta.

8 months agoNew splash image for Beta.
Brecht Van Lommel [Wed, 28 Nov 2018 15:36:48 +0000 (16:36 +0100)]
New splash image for Beta.

This one focuses on the development fund campaign. We plan to do more
more splash updates during the Beta.

8 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 29 Nov 2018 15:49:21 +0000 (16:49 +0100)]
Merge branch 'master' into blender2.8

8 months agoGP: Add option to draw primatives from center
Charlie Jolly [Thu, 29 Nov 2018 10:50:21 +0000 (10:50 +0000)]
GP: Add option to draw primatives from center

This allows primatives to be drawn from the center using the ALT key.
Also fixes SHIFT constraint not working correctly in all directions.
Both options can be used together.

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

8 months agoFix internal compiler error when building with VS 2017 (15.9.3).
Brecht Van Lommel [Thu, 29 Nov 2018 15:41:10 +0000 (16:41 +0100)]
Fix internal compiler error when building with VS 2017 (15.9.3).

It doesn't like alignment for function arguments, and I don't think this
alignment is needed.

Solution found by Ray Molenkamp.

8 months agoFix T57796: bad 'draw emitter' conversion, importing shared particle systems from...
Bastien Montagne [Thu, 29 Nov 2018 15:23:27 +0000 (16:23 +0100)]
Fix T57796: bad 'draw emitter' conversion, importing shared particle systems from 2.79b to 2.80

Not sure what those #ifdef's were supposed to do exactly... But one
thing is for sure, clearing that flag in particlesettings after first
encounter would prevent transferring it properly to other objects that
would use same particlesettings.

8 months agoCleanup: mark `PART_DRAW_EMITTER` of ParticleSetting drawflags as dreprecated.
Bastien Montagne [Thu, 29 Nov 2018 15:16:10 +0000 (16:16 +0100)]
Cleanup: mark `PART_DRAW_EMITTER` of ParticleSetting drawflags as dreprecated.

8 months agoFix depth offset in paint mode wireframe.
Alexander Gavrilov [Thu, 29 Nov 2018 14:51:25 +0000 (17:51 +0300)]
Fix depth offset in paint mode wireframe.

The original offset was wrong because it applied a constant to
homogenous coordinates (the actual depth is z/w), which broke
totally if near clip distance was reduced.

A correct depth offset has to take slope into account like
glPolygonOffset in order to avoid dotted lines caused by
interpolation precision variations. When drawing wire lines
however only the slope of the line itself is accessible, so
also generally increase the offset when the object is close.

8 months agoFix T57878: 2.8 Opening project in Blender Crashes.
Bastien Montagne [Thu, 29 Nov 2018 14:48:08 +0000 (15:48 +0100)]
Fix T57878: 2.8 Opening project in Blender Crashes.

Crash was due to some modifier trying to access the editmesh of its
target just after loading, when that editmesh has not yet been
re-created...

8 months agoFix T58068: gizmo crash for bone on a disabled armature layer
Philipp Oeser [Wed, 28 Nov 2018 13:38:12 +0000 (14:38 +0100)]
Fix T58068: gizmo crash for bone on a disabled armature layer

Maniphest Tasks: T58068

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

8 months agoFix rotate around point under cursor 'seeing' hidden faces in paint modes.
Alexander Gavrilov [Thu, 29 Nov 2018 11:24:30 +0000 (14:24 +0300)]
Fix rotate around point under cursor 'seeing' hidden faces in paint modes.

8 months agoUI: make Q key available for quick favorites in clip editor.
Sebastian Koenig [Thu, 29 Nov 2018 11:22:04 +0000 (12:22 +0100)]
UI: make Q key available for quick favorites in clip editor.

8 months agoFix T58105: Subdivision Set operator stuck in relative mode
Philipp Oeser [Thu, 29 Nov 2018 09:10:31 +0000 (10:10 +0100)]
Fix T58105: Subdivision Set operator stuck in relative mode

Maniphest Tasks: T58105

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

8 months agoFix T58100: Crash on bpy.context.object.visible_get()
Philipp Oeser [Tue, 27 Nov 2018 22:56:24 +0000 (23:56 +0100)]
Fix T58100: Crash on bpy.context.object.visible_get()

Maniphest Tasks: T58100

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

8 months agoUI: put clip editor annotation panel in own tab in sidebar.
Sebastian Koenig [Thu, 29 Nov 2018 10:51:30 +0000 (11:51 +0100)]
UI: put clip editor annotation panel in own tab in sidebar.

8 months agoTransform: re-revert new user-axis-first behavior
Campbell Barton [Thu, 29 Nov 2018 10:51:56 +0000 (21:51 +1100)]
Transform: re-revert new user-axis-first behavior

This restores old behavior but leaves in new code
which is more flexible.

See: 6491d50d02b7 for feedback on why this isn't ideal.

8 months agoRevert "Transform: use scene-orientation for MMB axis constraint"
Campbell Barton [Thu, 29 Nov 2018 10:52:16 +0000 (21:52 +1100)]
Revert "Transform: use scene-orientation for MMB axis constraint"

This reverts commit 78a6c2e12c8d144d10f759d05cbb3503f555883b.

8 months agoUI: add back clip editor tool tabs until there is a toolbar.
Brecht Van Lommel [Thu, 29 Nov 2018 10:30:56 +0000 (11:30 +0100)]
UI: add back clip editor tool tabs until there is a toolbar.

8 months agoFix T57653: Fix T58075: Crash when switching between Edit and Sculpt/Paint modes.
Bastien Montagne [Thu, 29 Nov 2018 09:31:56 +0000 (10:31 +0100)]
Fix T57653: Fix T58075: Crash when switching between Edit and Sculpt/Paint modes.

Sculpt (and paint) modes rely on valid evaluated data at their initialization.

Added code to ensure that in `ED_object_mode_toggle()`, when relevant
toggle operator requires it (looks like sculpt/paint should be the only
ones affected, although particle edit may be too...).

8 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 29 Nov 2018 08:35:39 +0000 (09:35 +0100)]
Merge branch 'master' into blender2.8

8 months agoAtomic: Avoid conflicts with definitions in other areas
Sergey Sharybin [Thu, 29 Nov 2018 08:33:50 +0000 (09:33 +0100)]
Atomic: Avoid conflicts with definitions in other areas

While atomics library was trying to use "user-space" defined
LIKELY() and UNLIKELY(), this is not always true that user
code was checking for those macro coming from an unrelated
area.

8 months agoUI: menu items for Ctrl-Tab dope sheet/graph switching
Campbell Barton [Thu, 29 Nov 2018 08:07:00 +0000 (19:07 +1100)]
UI: menu items for Ctrl-Tab dope sheet/graph switching

Make this shortcut discoverable.

8 months agoUI: update shortcut display to check space cycling
Campbell Barton [Thu, 29 Nov 2018 07:45:37 +0000 (18:45 +1100)]
UI: update shortcut display to check space cycling

8 months agoKeymap: cycle space-subtypes on successive presses
Campbell Barton [Thu, 29 Nov 2018 07:13:01 +0000 (18:13 +1100)]
Keymap: cycle space-subtypes on successive presses

Some space types are exposed as multiple space types,
previously the key binding to set the space type would use the last
used space-type.

Now pressing the key again cycles to the next space sub-type.

Without this, shortcut display is confusing since some space types share
a key. Keymap display will need to be updated to support this.

8 months agoUI: support enum key shortcut detection
Campbell Barton [Thu, 29 Nov 2018 06:32:35 +0000 (17:32 +1100)]
UI: support enum key shortcut detection

Shows shortcuts in space-selector.

8 months agoFix paint initialization, incorrect pointer checks
Campbell Barton [Thu, 29 Nov 2018 04:19:29 +0000 (15:19 +1100)]
Fix paint initialization, incorrect pointer checks