2 years agoSubdiv: Set edge render flags according to Optimal Display
Sergey Sharybin [Mon, 3 Dec 2018 15:59:11 +0000 (16:59 +0100)]
Subdiv: Set edge render flags according to Optimal Display

This is a part of T58609, but work is still needed to properly
support this flag in the draw manager.

2 years agoDepsgraph: completely move customdata_mask to the ID node.
Alexander Gavrilov [Mon, 3 Dec 2018 15:09:45 +0000 (18:09 +0300)]
Depsgraph: completely move customdata_mask to the ID node.

Move all mask-related fields from Object and OperationDepsNode
to Object_Runtime and IDDepsNode. Auto-apply DEG_TAG_GEOMETRY
if the mask changes after DEG rebuild. Update DEG API and all
code that uses it.

This fixes "source mesh data is not ready" errors from Data
Transfer modifier when parameters are changed in the UI after
the recent mesh_get_eval_final fix.

Reviewers: sergey

Differential Revision:

2 years agoT58338 Edit Mode rotation doesn't work if object is far away from world origin
Antonioya [Mon, 3 Dec 2018 15:26:31 +0000 (16:26 +0100)]
T58338 Edit Mode rotation doesn't work if object is far away from world origin

The fix code was done by Brecht Van Lommel, I only tested that the solution works.

2 years agoFix T57858: Add validation callback to CustomData layers.
Bastien Montagne [Mon, 3 Dec 2018 15:19:08 +0000 (16:19 +0100)]
Fix T57858: Add validation callback to CustomData layers.

Our mesh validation was only checking cd layout so far, not their actual
data. While this might only be needed for a few types, this is a
required addition for things like imported UVs, else we have no way to
avoid nasty things like NANs & co.

Note that more layer types may need that callback, time will say. For
now added it to some obvious missing cases...

2 years agoCleanup: Use BLI's is_finite_v helpers instead of manualy checking each item.
Bastien Montagne [Mon, 3 Dec 2018 13:42:22 +0000 (14:42 +0100)]
Cleanup: Use BLI's is_finite_v helpers instead of manualy checking each item.

2 years agoDepsgraph: Add missing cache file handling in build_id()
Sergey Sharybin [Mon, 3 Dec 2018 15:05:17 +0000 (16:05 +0100)]
Depsgraph: Add missing cache file handling in build_id()

2 years agoData Transfer Modifier: fix mesh_get_eval_final usage.
Alexander Gavrilov [Mon, 3 Dec 2018 13:56:11 +0000 (16:56 +0300)]
Data Transfer Modifier: fix mesh_get_eval_final usage.

It can't be used during modifier evaluation, and rna
enum code should access the evaluated objects.

2 years agoDepsgraph: assert that mesh_get_eval_final/deform aren't used in eval.
Alexander Gavrilov [Mon, 3 Dec 2018 12:22:19 +0000 (15:22 +0300)]
Depsgraph: assert that mesh_get_eval_final/deform aren't used in eval.

Using those functions during multithreaded evaluation is a sure
way to have a race condition and crash.

2 years agoFix T58258: Select Objects in Collection not working
Philipp Oeser [Mon, 3 Dec 2018 11:55:12 +0000 (12:55 +0100)]
Fix T58258: Select Objects in Collection not working

Maniphest Tasks: T58258

Differential Revision:

2 years ago3D View: remove non tool-system ruler
Campbell Barton [Mon, 3 Dec 2018 10:20:05 +0000 (21:20 +1100)]
3D View: remove non tool-system ruler

There was duplicate code for the ruler being accessed
as a tool and an operator.

Remove the modal operator code in favor of tool access.

2 years agoFix T58556: Some remaining 'dupli_types' in pycode after renaming.
Bastien Montagne [Mon, 3 Dec 2018 09:38:46 +0000 (10:38 +0100)]
Fix T58556: Some remaining 'dupli_types' in pycode after renaming.

2 years agoFix T58594: Modal circle select can't select & de-select
Campbell Barton [Mon, 3 Dec 2018 08:29:06 +0000 (19:29 +1100)]
Fix T58594: Modal circle select can't select & de-select

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 3 Dec 2018 08:31:54 +0000 (19:31 +1100)]
Merge branch 'master' into blender2.8

2 years agoFix T58535 Crash on Load
Antonioya [Mon, 3 Dec 2018 08:12:29 +0000 (09:12 +0100)]
Fix T58535 Crash on Load

The particles was not ready when the drawing cache try to use it.

2 years agoFix T54580: Pointer buttons skip undo push
Campbell Barton [Mon, 3 Dec 2018 07:43:33 +0000 (18:43 +1100)]
Fix T54580: Pointer buttons skip undo push

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 3 Dec 2018 07:01:19 +0000 (18:01 +1100)]
Merge branch 'master' into blender2.8

2 years agoUse scene active object for sculptmode enter/exit calls
Campbell Barton [Mon, 3 Dec 2018 07:00:20 +0000 (18:00 +1100)]
Use scene active object for sculptmode enter/exit calls

Match logic in previous commit.

2 years agoFix T56331: Undo crash w/ sculpt on hidden layer
Campbell Barton [Mon, 3 Dec 2018 06:42:26 +0000 (17:42 +1100)]
Fix T56331: Undo crash w/ sculpt on hidden layer

2 years agoFix T56642: 3D view gizmo orientation wont update
Campbell Barton [Mon, 3 Dec 2018 05:52:21 +0000 (16:52 +1100)]
Fix T56642: 3D view gizmo orientation wont update

2 years agoCleanup: warning, style
Campbell Barton [Mon, 3 Dec 2018 05:50:50 +0000 (16:50 +1100)]
Cleanup: warning, style

2 years agoFix T58528: Assign material skips non-active
Campbell Barton [Mon, 3 Dec 2018 04:26:25 +0000 (15:26 +1100)]
Fix T58528: Assign material skips non-active

2 years agoFix/workaround T58368: Crash w/ mapped mesh + autosmooth
Campbell Barton [Mon, 3 Dec 2018 03:58:29 +0000 (14:58 +1100)]
Fix/workaround T58368: Crash w/ mapped mesh + autosmooth

2 years agoCleanup: remove flag from GizmoCommonData
Campbell Barton [Mon, 3 Dec 2018 02:01:04 +0000 (13:01 +1100)]
Cleanup: remove flag from GizmoCommonData

Use struct member instead,
there are already many gizmo flags to keep track of.

2 years agoFix T58573: Camera lens gizmo error on click
Campbell Barton [Mon, 3 Dec 2018 01:55:55 +0000 (12:55 +1100)]
Fix T58573: Camera lens gizmo error on click

2 years agoFix camera lens gizmo sensor comparison
Campbell Barton [Mon, 3 Dec 2018 00:26:03 +0000 (11:26 +1100)]
Fix camera lens gizmo sensor comparison

2 years agoFix T58566: Blender 2.7x keymap not correct for select all toggle and spacebar.
Brecht Van Lommel [Sun, 2 Dec 2018 23:38:40 +0000 (00:38 +0100)]
Fix T58566: Blender 2.7x keymap not correct for select all toggle and spacebar.

2 years agoFix T56996: MacOS: Lagging when rotating the view
Clément Foucault [Sun, 2 Dec 2018 21:33:31 +0000 (22:33 +0100)]
Fix T56996: MacOS: Lagging when rotating the view

It happens on multiple configuration so we cannot isolate the fix to only
some config.

Thanks Hugo Lamarche for helping finding the fix.

2 years agoFix T58101 : Image empties are only rendering their border when using MSAA
Clément Foucault [Sun, 2 Dec 2018 19:11:23 +0000 (20:11 +0100)]
Fix T58101 : Image empties are only rendering their border when using MSAA

2 years agoTexture Paint: fix fast selection update to also work without modifiers.
Alexander Gavrilov [Sun, 2 Dec 2018 16:59:57 +0000 (19:59 +0300)]
Texture Paint: fix fast selection update to also work without modifiers.

If there are no (non-deform) modifiers, the evaluated mesh simply
shares arrays with the base COW copy instead of having CD_ORIGINDEX.

2 years agoGP: Fix line primitive when using to square behaviour
Charlie Jolly [Fri, 30 Nov 2018 12:06:04 +0000 (12:06 +0000)]
GP: Fix line primitive when using to square behaviour

Previously the shift key for line primitives only allowed diagonals.
This change allows the line to constrain to vertical and horizontal lines.

Differential Revision:

2 years agoFix texture previews not updating when parameters are changed.
Alexander Gavrilov [Sun, 2 Dec 2018 11:57:38 +0000 (14:57 +0300)]
Fix texture previews not updating when parameters are changed.

Maybe there is a more correct way, but this works for now.

2 years agoPartial fix for T58113 bevel harden normals bug.
Howard Trickey [Sun, 2 Dec 2018 11:29:58 +0000 (06:29 -0500)]
Partial fix for T58113 bevel harden normals bug.

This fixes the problem where not all faces got hardened properly
when using a hardening mode in the bevel modifier.

2 years agoKeymap: fix error in recent enum-menu support
Campbell Barton [Sun, 2 Dec 2018 04:09:15 +0000 (15:09 +1100)]
Keymap: fix error in recent enum-menu support

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 2 Dec 2018 03:32:31 +0000 (14:32 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: BKE b-bone API naming
Campbell Barton [Sun, 2 Dec 2018 03:29:54 +0000 (14:29 +1100)]
Cleanup: BKE b-bone API naming

Use BKE_pchan_bbone prefix.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 2 Dec 2018 03:15:43 +0000 (14:15 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: BKE_effect.h naming
Campbell Barton [Sun, 2 Dec 2018 03:14:51 +0000 (14:14 +1100)]
Cleanup: BKE_effect.h naming

2 years agoKeymap: use strict format for keymap definitions
Campbell Barton [Sun, 2 Dec 2018 02:58:52 +0000 (13:58 +1100)]
Keymap: use strict format for keymap definitions

Ensure we use lists for keymap items and item properties.

This means scripts can access keymap definitions from other layouts,
manipulating them without sometimes encountering a tuple that needs
to be converted into a list.

2 years agoCleanup: simplify poll function
Campbell Barton [Sun, 2 Dec 2018 02:59:43 +0000 (13:59 +1100)]
Cleanup: simplify poll function

2 years agoFix T57455: Fix faulty gpu detection
Clément Foucault [Sun, 2 Dec 2018 02:49:26 +0000 (03:49 +0100)]
Fix T57455: Fix faulty gpu detection

2 years agoCleanup: de-duplicate gpencil material UI
Campbell Barton [Sun, 2 Dec 2018 02:26:10 +0000 (13:26 +1100)]
Cleanup: de-duplicate gpencil material UI

Top-bar and properties-editor were near duplicates.

2 years agoCleanup: remove redundant gpencil material checks
Campbell Barton [Sun, 2 Dec 2018 02:09:15 +0000 (13:09 +1100)]
Cleanup: remove redundant gpencil material checks

Poll checks for an object, no need to check for non-object
materials in the draw function.

2 years agoAdd missing include
Campbell Barton [Sun, 2 Dec 2018 02:11:47 +0000 (13:11 +1100)]
Add missing include

2 years agoFix T57455: Laggy, freezing UI with Linux and Intel UHD 620
Clément Foucault [Sun, 2 Dec 2018 00:57:22 +0000 (01:57 +0100)]
Fix T57455: Laggy, freezing UI with Linux and Intel UHD 620

Seems like a driver bug but doing glFlush() before these calls fixes it.

2 years agoOptimize ghash usage
Campbell Barton [Sat, 1 Dec 2018 21:13:31 +0000 (08:13 +1100)]
Optimize ghash usage

Avoid double hash calculation.

2 years agoFix button data access for python context menus
Campbell Barton [Sat, 1 Dec 2018 20:50:25 +0000 (07:50 +1100)]
Fix button data access for python context menus

D4016 by @raa

2 years agoFix T58460: Proportional edit icon disappears
Antonioya [Sat, 1 Dec 2018 23:05:01 +0000 (00:05 +0100)]
Fix T58460: Proportional edit icon disappears

2 years agoWorkbench: Don't use alpha channel if not doing render
Clément Foucault [Sat, 1 Dec 2018 19:38:30 +0000 (20:38 +0100)]
Workbench: Don't use alpha channel if not doing render

Lower Vram usage a bit

2 years agoWM: Optimization: Don't clear the window color buffer
Clément Foucault [Sat, 1 Dec 2018 19:15:23 +0000 (20:15 +0100)]
WM: Optimization: Don't clear the window color buffer

This is not needed and is rather costly.

Can be reverted if that causes problem.

2 years agoUI: Simplify the area border drawing
Clément Foucault [Sat, 1 Dec 2018 18:49:31 +0000 (19:49 +0100)]
UI: Simplify the area border drawing

Instead of doing a lot of alpha blended drawing with jittering, use the
fragment shader to do the masking using a circle mask.

This is much simpler and requires much less resources.

Hopefully this may solve the issue we have with the Intels UHD Graphics 620
on linux.

2 years agoFix T58433: Limit Distance constraint distance not auto-computed.
Alexander Gavrilov [Sat, 1 Dec 2018 17:02:14 +0000 (20:02 +0300)]
Fix T58433: Limit Distance constraint distance not auto-computed.

Another case of a value that needs to be written back to non-COW copy.

2 years agoFix T58412: in weight paint + pose mode certain armature operations crash.
Alexander Gavrilov [Sat, 1 Dec 2018 16:43:10 +0000 (19:43 +0300)]
Fix T58412: in weight paint + pose mode certain armature operations crash.

The cause is that FOREACH_OBJECT_IN_MODE_BEGIN assumed that the active
object is in the correct mode, which is wrong in this case. It also
only considered objects of the same type as active, which had to be
replaced with an explicit type parameter.

2 years agoFix more cases of evaluated mesh being built for non-COW objects.
Alexander Gavrilov [Sat, 1 Dec 2018 16:06:44 +0000 (19:06 +0300)]
Fix more cases of evaluated mesh being built for non-COW objects.

2 years agofix: Collada exporter has similar issue as reproted in T58150
Gaia Clary [Sat, 1 Dec 2018 14:38:18 +0000 (15:38 +0100)]
fix: Collada exporter has similar issue as reproted in T58150

2 years agofix T58293 Collada: Does not export Texture coordinates when option 'only selected...
Gaia Clary [Sat, 1 Dec 2018 13:18:11 +0000 (14:18 +0100)]
fix T58293 Collada: Does not export Texture coordinates when option 'only selected UV Map' is enabled

2 years agoTexture Paint: implement efficient face selection updates.
Alexander Gavrilov [Sat, 1 Dec 2018 12:40:48 +0000 (15:40 +0300)]
Texture Paint: implement efficient face selection updates.

Fix the old code that propagates selection changes to the
evaluated mesh directly without rebuilding, and avoid tagging
DEG_TAG_COPY_ON_WRITE if it succeeds.

2 years agoFix usage of mesh_get_eval_final in vertex selection.
Alexander Gavrilov [Sat, 1 Dec 2018 11:46:55 +0000 (14:46 +0300)]
Fix usage of mesh_get_eval_final in vertex selection.

It's a very bad idea to call this on non-COW instances - see T58150.
Also, when rebuilding mesh it's better to accumulate mask flags to
avoid possible repeated rebuilds from different users.

2 years agoTexture Paint: fix face selection with subsurface.
Alexander Gavrilov [Sat, 1 Dec 2018 11:38:11 +0000 (14:38 +0300)]
Texture Paint: fix face selection with subsurface.

2 years agoTexture Paint: emulate subsurf optimal display in paint mode wireframe.
Alexander Gavrilov [Sat, 1 Dec 2018 10:44:29 +0000 (13:44 +0300)]
Texture Paint: emulate subsurf optimal display in paint mode wireframe.

The wireframe is intended for showing selected faces, and selection is
based on original faces, so the extra wireframe lines are pure noise.

2 years agoTexture Paint: fix wireframe and hiding not working with subsurf.
Alexander Gavrilov [Sat, 1 Dec 2018 10:20:18 +0000 (13:20 +0300)]
Texture Paint: fix wireframe and hiding not working with subsurf.

The editflag field is only valid in the original mesh instance.

2 years agoTexture Paint: avoid rebuilding evaluated mesh on first stroke.
Alexander Gavrilov [Sat, 1 Dec 2018 09:12:18 +0000 (12:12 +0300)]
Texture Paint: avoid rebuilding evaluated mesh on first stroke.

Ensure all relevant CustomDataMask bits are set during normal evaluation.

2 years agoFix camera gizmo sensor check
Campbell Barton [Sat, 1 Dec 2018 08:38:37 +0000 (19:38 +1100)]
Fix camera gizmo sensor check

Also correct wrong but harmless assignment.

2 years agoCleanup: style
Campbell Barton [Sat, 1 Dec 2018 08:55:37 +0000 (19:55 +1100)]
Cleanup: style

2 years agoCleanup: redundant NULL checks
Campbell Barton [Sat, 1 Dec 2018 08:36:57 +0000 (19:36 +1100)]
Cleanup: redundant NULL checks

Also use unsigned shifting for values not in int range.

2 years agoRevert "Win32: Use the nicer looking blender-drawn confirmation message box when"
Antony Ryakiotakis [Fri, 30 Nov 2018 22:25:45 +0000 (23:25 +0100)]
Revert "Win32: Use the nicer looking blender-drawn confirmation message box when"

This reverts commit 60d6eb0b5d578eb02c5f1f31cb51a6cbeea6ee6f.

There is already a full patch (D3118) by brecht for this, will leave it up to him.

2 years agoCleanup: duplicate include
Campbell Barton [Fri, 30 Nov 2018 21:29:26 +0000 (08:29 +1100)]
Cleanup: duplicate include

2 years 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

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

2 years 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

2 years 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.

2 years 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

2 years 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.

2 years 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.

2 years 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.

2 years 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.

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

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

2 years 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.

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

2 years 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

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

2 years 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.

2 years 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

2 years 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.

2 years 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.

2 years 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.

2 years 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

2 years 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.

2 years 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. ;)

2 years 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.

2 years 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.

2 years 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

2 years 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.

2 years 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

2 years 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

2 years 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

2 years 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

2 years 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.

2 years 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.

2 years 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

2 years 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