blender.git
5 weeks agocleanup: fix python related build error on windows.
Lazydodo [Wed, 14 Aug 2019 01:55:33 +0000 (19:55 -0600)]
cleanup: fix python related build error on windows.

Recent python changes caused issues on some systems.

5 weeks agomake.bat: Support running python from lib folder for make format
Lazydodo [Tue, 13 Aug 2019 23:03:09 +0000 (17:03 -0600)]
make.bat: Support running python from lib folder for make format

We are no longer depended on a system python being installed.

5 weeks agodeps: python 3.7.4 for windows.
Lazydodo [Tue, 13 Aug 2019 23:02:19 +0000 (17:02 -0600)]
deps: python 3.7.4 for windows.

This also updates to a new packaging method where python is runnable
from the library folder rather than having tarballs in the release
folder.

5 weeks agodeps/cleanup: remove partial boost-python support.
Lazydodo [Tue, 13 Aug 2019 23:00:23 +0000 (17:00 -0600)]
deps/cleanup: remove partial boost-python support.

boost python was not required by any dependency nor was it ever properly supported.

5 weeks agobuild_environment/python: Bump versions of our site-packages
Lazydodo [Tue, 13 Aug 2019 22:58:26 +0000 (16:58 -0600)]
build_environment/python: Bump versions of our site-packages

IDNA     2.8
CHARDET  3.0.4
URLLIB3  1.25.3
CERTIFI  2019.6.16
REQUESTS 2.22.0
NUMPY    1.17.0

5 weeks agoShading: Add Clamp node to Cycles and EEVEE.
OmarSquircleArt [Tue, 13 Aug 2019 20:22:15 +0000 (22:22 +0200)]
Shading: Add Clamp node to Cycles and EEVEE.

This patch adds a new node that clamps a value between a maximum and
a minimum values.

Reviewers: brecht

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

5 weeks agoFix T67516 VSE: Animation evaluated incorrectly when scene strip present
Sybren A. Stüvel [Thu, 1 Aug 2019 12:10:04 +0000 (14:10 +0200)]
Fix T67516 VSE: Animation evaluated incorrectly when scene strip present

The calls to `BKE_animsys_evaluate_all_animation()` and
`BKE_mask_evaluate_all_masks()` used the wrong timecode to evaluate the
animation system. This happened:

- Sequencer in scene A was rendered at frame X.
- Scene strip for scene B which should be evaluated at frame Y.
- BKE_animsys_evaluate_all_animation() was called with frame Y, which
  also re-evaluated the animation data in scene A.
- Other sequencer strips with animated values were then evaluated for
  frame Y and not frame X.

Since the depsgraph for rendering the scene strip is already OK and does
its job, it's no longer necessary to re-evaluate all the animation in
this way.

Removed `BKE_mask_evaluate_all_masks()` because it's no longer used.

Reviewers: sergey, brecht, iss

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

5 weeks agoShading: Add Map Range node to Cycles and EEVEE.
OmarSquircleArt [Tue, 13 Aug 2019 14:29:32 +0000 (16:29 +0200)]
Shading: Add Map Range node to Cycles and EEVEE.

This patch adds a new Map Range node that linearly remaps an input
value from a range to another. This node is similar to the compositor's
Map Range node.

Reviewers: brecht, JacquesLucke

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

5 weeks agoCustom Properties: officially support int and float arrays in the UI.
Alexander Gavrilov [Sat, 10 Aug 2019 11:42:14 +0000 (14:42 +0300)]
Custom Properties: officially support int and float arrays in the UI.

In some rare cases it is convenient to store a short array value
as a custom property, e.g. a vector or color. For example, it may
be helpful when importing/exporting certain formats that support
custom or nonstandard attributes on objects.

The custom property storage already can handle arrays in order to
support properties defined via python. The only thing missing is
UI support (and some bugs), and this patch fixes that:

- Allow editing short array properties via Custom Properties panel.
- Fix a UI layout sizing bug triggered by the previous item.
- Fix a dependency graph bug with drivers using such properties.
- Make RNA_*_get_default_array code robust in case of size mismatch.
- Support custom default values for array properties, allowing
  both an array and a scalar value.

Reviewers: campbellbarton

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

5 weeks agoUI: Fix wrong properties being grayed out
Jacques Lucke [Tue, 13 Aug 2019 13:45:54 +0000 (15:45 +0200)]
UI: Fix wrong properties being grayed out

This has been mentioned in T68610.

5 weeks agoFix T66373: Strange translation text behaviour.
Bastien Montagne [Tue, 13 Aug 2019 10:56:27 +0000 (12:56 +0200)]
Fix T66373: Strange translation text behaviour.

i18n code does not work from threads on some plaforms, so it is disabled
in Blender when called from non-main thread.

Means that we have to go to a slightly different approach, with dirty
tag and generating string on request for UI.

Note: Also had to update the `info` string size, to fit with expensive
asiatic scripts in utf-8... Using mem for that kind of runtime data is
not really nice, but for now it will have to do.

5 weeks agoAdd mathutils.geometry.delaunay_2d_cdt() function to Python API.
Howard Trickey [Tue, 13 Aug 2019 11:31:14 +0000 (07:31 -0400)]
Add mathutils.geometry.delaunay_2d_cdt() function to Python API.

Provides Python API access to recently added Constrained Delaunay
Triangulation routine.
Reviewed in D5467.

5 weeks agoFix T65670: bone envelope head radius missing from transform panel
Campbell Barton [Tue, 13 Aug 2019 08:15:43 +0000 (18:15 +1000)]
Fix T65670: bone envelope head radius missing from transform panel

Make the transforms section of the properties panel consistent with
the transforms section of the side-bar, and to expose some currently
hidden BBone properties in the Bendy Bone section.

- Object transformations were not consistent with Pose Bone
  transformations in that they did not use single-column layout.

- Even in Pose Bone transformations,
  the rotation mode option was after Scale.

- Edit Bone Transforms panel included "Tail Radius" and
  "Envelope Deform Distance", neither of which belong there. See T65670.

- Expose bbone_x and bbone_z.

D5454 by @Mets

5 weeks agoFix build errors with older GCC versions like 4.9
Brecht Van Lommel [Tue, 13 Aug 2019 04:02:48 +0000 (06:02 +0200)]
Fix build errors with older GCC versions like 4.9

We can add more fine grained checks for when these flags are supported so
that adding asan flags manually still has all the workarounds, but for now
compiling succesfully is more important.

5 weeks agoFix T68507: Gpencil: Show always the Select Menu in Edit Mode
Matias Mendiola [Mon, 12 Aug 2019 21:21:58 +0000 (23:21 +0200)]
Fix T68507: Gpencil: Show always the Select Menu in Edit Mode

In Grease Pencil Edit Mode the Select menu should always be visible. Right now the menu visibility is controlled by the Selection Mask button next interpolate popover

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

5 weeks agoFix T68547: Plane Constraint inaccuracy
mano-wii [Mon, 12 Aug 2019 20:13:23 +0000 (17:13 -0300)]
Fix T68547: Plane Constraint inaccuracy

If it is to prevent division by zero just check if the `factor` is zero (instead of using an epsilon).

5 weeks agoUI: Use singular noun form in add menus
Aaron Carlisle [Mon, 12 Aug 2019 19:46:07 +0000 (15:46 -0400)]
UI: Use singular noun form in add menus

5 weeks agoFix T68187: Factory Preferences doesn't update gizmo colors
Campbell Barton [Mon, 12 Aug 2019 18:44:25 +0000 (04:44 +1000)]
Fix T68187: Factory Preferences doesn't update gizmo colors

5 weeks agoFix T68557: Incorrect property reported in error
Campbell Barton [Mon, 12 Aug 2019 17:45:29 +0000 (03:45 +1000)]
Fix T68557: Incorrect property reported in error

Error spotted by @gbayliss

5 weeks agoCleanup: rename `BaseOffset` to `ObjectOffsets`
mano-wii [Mon, 12 Aug 2019 15:29:18 +0000 (12:29 -0300)]
Cleanup: rename `BaseOffset` to `ObjectOffsets`

5 weeks agoFix wrong detection in recent ninja build change
Brecht Van Lommel [Mon, 12 Aug 2019 15:26:59 +0000 (17:26 +0200)]
Fix wrong detection in recent ninja build change

5 weeks agoCleanup: DRW manager: Move `select_buffer.c` utilities out of the selection engine...
mano-wii [Mon, 12 Aug 2019 15:10:44 +0000 (12:10 -0300)]
Cleanup: DRW manager: Move `select_buffer.c` utilities out of the selection engine internals

5 weeks agoFix T67032: Do not systematically link 'orphaned' indirectly linked objects to scene.
Bastien Montagne [Mon, 12 Aug 2019 13:37:58 +0000 (15:37 +0200)]
Fix T67032: Do not systematically link 'orphaned' indirectly linked objects to scene.

Not even in append case. If those objects are already part of a
collection, we can now leave them fully un-instantiated in any scene,
since user can easily do it themselves as they need to.

5 weeks agoBuild: automatically detect ninja build system when running "make"
Brecht Van Lommel [Mon, 12 Aug 2019 13:20:31 +0000 (15:20 +0200)]
Build: automatically detect ninja build system when running "make"

So that you don't have to specify "make ninja" every time.

5 weeks agoFix Bullet build error with Clang 8 and Xcode 11
Brecht Van Lommel [Mon, 12 Aug 2019 13:08:07 +0000 (15:08 +0200)]
Fix Bullet build error with Clang 8 and Xcode 11

See D5366 and upstream:
https://github.com/bulletphysics/bullet3/commit/7f6c479ea6

5 weeks agoFix running space_node directly
Campbell Barton [Mon, 12 Aug 2019 12:52:43 +0000 (22:52 +1000)]
Fix running space_node directly

Part of T65393

5 weeks agoFix T68539: transferring uv (Ctrl+L) does not update immediately in
Philipp Oeser [Mon, 12 Aug 2019 12:32:47 +0000 (14:32 +0200)]
Fix T68539: transferring uv (Ctrl+L) does not update immediately in
object mode

5 weeks agoFix T66922: Merge by distance tooltip text wrong
Philipp Oeser [Mon, 12 Aug 2019 11:34:46 +0000 (13:34 +0200)]
Fix T66922: Merge by distance tooltip text wrong

merge/dissolve distance is actually a maximum, not a minimum

Reviewers: campbellbarton

Maniphest Tasks: T66922

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

5 weeks agoSculpt/Paint: Ignore INBETWEEN_MOUSEMOVE events on certain brush tools
Pablo Dobarro [Tue, 6 Aug 2019 23:36:17 +0000 (01:36 +0200)]
Sculpt/Paint: Ignore INBETWEEN_MOUSEMOVE events on certain brush tools

Some brush tools were being executed too often when using devices with high polling rates, causing performance issues. This should improve the performance of brushes that don't need those updates.

Reviewed By: brecht

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

5 weeks agoFix crashes caused by library placeholders.
Bastien Montagne [Mon, 12 Aug 2019 09:54:37 +0000 (11:54 +0200)]
Fix crashes caused by library placeholders.

This fixes inconsistencies in materials between objects and obdata
due to placeholders generation for missing libdata.

Note that we cannot do that when generating the obdata placeholder,
as not all objects using it might be already loaded...
So this has to be done near the end of the reading/linking process.

Reported here by Blender Studio.

Reviewers: brecht

Subscribers: jbakker, zeddb

Tags: #datablocks_and_libraries

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

5 weeks agoFix T68542: ParticleSystem.uv_on_emitter returns always 0,0 while Particle.uv_on_emit...
Bastien Montagne [Mon, 12 Aug 2019 09:44:44 +0000 (11:44 +0200)]
Fix T68542: ParticleSystem.uv_on_emitter returns always 0,0 while Particle.uv_on_emitter returns a value.

'cached' particles (for paths actually) are only generated for some kind
(hair, keyed, and baked system afaik), not for all.

Note that we could probably just use directly `totpart` and `totchild`,
but keeping code as close to what it was as possible, for now...

5 weeks agoFix error displaying brush panel (sidebar) in Vertex Paint mode
Philipp Oeser [Mon, 12 Aug 2019 09:37:24 +0000 (11:37 +0200)]
Fix error displaying brush panel (sidebar) in Vertex Paint mode

oversight in rB83fc8342d827

5 weeks agoView3D: Circle Select optimization
mano-wii [Mon, 12 Aug 2019 01:12:11 +0000 (22:12 -0300)]
View3D: Circle Select optimization

Don't recreate `select_bitmap` for each edited object.

5 weeks agoCleanup: spelling
Campbell Barton [Sun, 11 Aug 2019 12:41:04 +0000 (22:41 +1000)]
Cleanup: spelling

5 weeks agoCleanup: use doxy comments
Campbell Barton [Sun, 11 Aug 2019 12:41:04 +0000 (22:41 +1000)]
Cleanup: use doxy comments

5 weeks agoDocs: improve comments
Campbell Barton [Sun, 11 Aug 2019 12:34:22 +0000 (22:34 +1000)]
Docs: improve comments

5 weeks agoBLI_math: add isect_tri_tri_v2, wrap via mathutils.geometry
Campbell Barton [Fri, 9 Aug 2019 19:34:30 +0000 (05:34 +1000)]
BLI_math: add isect_tri_tri_v2, wrap via mathutils.geometry

5 weeks agoText: support comment without selection
Campbell Barton [Sun, 11 Aug 2019 10:50:02 +0000 (20:50 +1000)]
Text: support comment without selection

D5451 by @Poulpator with fixes.

5 weeks agoPreferences: tag as dirty when loading factory startup
Campbell Barton [Sun, 11 Aug 2019 08:03:17 +0000 (18:03 +1000)]
Preferences: tag as dirty when loading factory startup

5 weeks agoUI: clarify auto-save preference
Campbell Barton [Sun, 11 Aug 2019 07:51:09 +0000 (17:51 +1000)]
UI: clarify auto-save preference

- Grey out the option when factory settings have been loaded.
- Note it it's tool-top that it's ignored when factory settings
  have been loaded.

Suggestions by @JulienKaspar

5 weeks agoCleanup: clang-format
Campbell Barton [Sat, 10 Aug 2019 16:41:29 +0000 (02:41 +1000)]
Cleanup: clang-format

5 weeks agoCleanup: unused var
Campbell Barton [Sat, 10 Aug 2019 16:46:29 +0000 (02:46 +1000)]
Cleanup: unused var

5 weeks agoNodes: Display vector values expanded, except when specified as compact.
OmarSquircleArt [Sat, 10 Aug 2019 15:37:39 +0000 (17:37 +0200)]
Nodes: Display vector values expanded, except when specified as compact.

Change the default drawing method of vector sockets to use a column layout.
This allows more interactive use of nodes and avoids the one or two clicks
needed to edit vector sockets in the old default component layout.

Developers may still use the component layout by flaging the socket with the
`SOCK_COMPACT` socket flag. For now, we choose to draw the SSS scale vector
of the Principled and SSS nodes in a compact form because they don't require
much interactivity.

Reviewers: brecht, JacquesLucke

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

5 weeks agoGPencil: Refine tooltip for Simplify modifier
Antonio Vazquez [Sat, 10 Aug 2019 15:22:58 +0000 (17:22 +0200)]
GPencil: Refine tooltip for Simplify modifier

5 weeks agoGPencil: Hide selection tool in sculpt mode when mask is disabled
Matias Mendiola [Sat, 10 Aug 2019 15:19:54 +0000 (17:19 +0200)]
GPencil: Hide selection tool in sculpt mode when mask is disabled

The selection tool must be hidden if the sculpt mask is not enabled because these options are not usable in this mode.

Also, the Select tools have been moved to the bottom of the toolbar.

Now, the logic is similar to Meshes.

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

5 weeks agoGPencil: Add new Distance property to Simplify modifier
Antonio Vazquez [Sat, 10 Aug 2019 15:16:12 +0000 (17:16 +0200)]
GPencil: Add new Distance property to Simplify modifier

Before, the length variable was reused for Sample and Merge Simplify. Now, the Merge has its own distance property and variable in the modifier struct.

5 weeks agoGPencil: Fix tooltips for Simplify modifier
Antonio Vazquez [Sat, 10 Aug 2019 15:00:49 +0000 (17:00 +0200)]
GPencil: Fix tooltips for Simplify modifier

5 weeks agoGPencil: Disable Select operator for Sculpt mode if Mask is OFF
Antonio Vazquez [Sat, 10 Aug 2019 14:34:24 +0000 (16:34 +0200)]
GPencil: Disable Select operator for Sculpt mode if Mask is OFF

The selection is only valid when the mask is enabled, so the operators must be disabled.

This modification is part of D5452

5 weeks agoGPencil: New macros to check Sculpt and Weight Paint modes
Antonioya [Sat, 10 Aug 2019 14:26:59 +0000 (16:26 +0200)]
GPencil: New macros to check Sculpt and Weight Paint modes

5 weeks agoFix T68414: GPencil crash after using L key and Ctrl+Z in Draw Mode
Antonio Vazquez [Sat, 10 Aug 2019 08:44:44 +0000 (10:44 +0200)]
Fix T68414: GPencil crash after using L key and Ctrl+Z in Draw Mode

There is a segment fault because the operator was in modal but the Ctrl+Z breaks the custom data. Now, the Ctrl+Z ends the operator.

5 weeks agoAdd Constrained Delaunay Triangulation routine to Blenlib.
Howard Trickey [Sat, 10 Aug 2019 13:24:20 +0000 (08:24 -0500)]
Add Constrained Delaunay Triangulation routine to Blenlib.

See Design task T68277, and patch D5423.
This commit includes edits by @ideasman42 to patch in
branch temp-D5423-update, plus responses to his comments.

5 weeks agoGPencil: Improves Close stroke when the closing gap is very small
Antonio Vazquez [Sat, 10 Aug 2019 11:15:20 +0000 (13:15 +0200)]
GPencil: Improves Close stroke when the closing gap is very small

For very small gaps, we don't need generate geometry.

5 weeks agoUI: Add initial context menus for Info and Console editors
William Reynish [Sat, 10 Aug 2019 09:35:16 +0000 (11:35 +0200)]
UI: Add initial context menus for Info and Console editors

Both keymaps are also updated

5 weeks agoGPencil: Fix segment fault using Search menu
Antonio Vazquez [Sat, 10 Aug 2019 08:20:30 +0000 (10:20 +0200)]
GPencil: Fix segment fault using Search menu

The poll was not checking Object type

5 weeks agoText: minor change to text prefix behavior
Campbell Barton [Fri, 9 Aug 2019 18:25:22 +0000 (04:25 +1000)]
Text: minor change to text prefix behavior

Don't keep the cursor at the start of the line,
this was creating a selection when adding a prefix without a selection.

5 weeks agoFix T68486: GPencil ehen interpolate strokes, only display one stroke not all
Antonio Vazquez [Fri, 9 Aug 2019 18:28:12 +0000 (20:28 +0200)]
Fix T68486: GPencil ehen interpolate strokes, only display one stroke not all

The drawing loop exit too early.

5 weeks agoUI: add menus for the info editor
Campbell Barton [Fri, 9 Aug 2019 15:45:58 +0000 (01:45 +1000)]
UI: add menus for the info editor

D5444 by @tintwotin with edits

5 weeks agoKeymap: Ctrl-G now maps to Find Set Selected
Campbell Barton [Fri, 9 Aug 2019 15:35:41 +0000 (01:35 +1000)]
Keymap: Ctrl-G now maps to Find Set Selected

This finds using the current selection instead
of using the text in the find side-bar.

More useful for quickly jump to other instances of a word.

5 weeks agoCleanup: Remove blank lines and trim end line spaces
Antonioya [Fri, 9 Aug 2019 15:46:05 +0000 (17:46 +0200)]
Cleanup: Remove blank lines and trim end line spaces

5 weeks agoFix T67591: Gpencil reorganize Edit Menu
Matias Mendiola [Fri, 9 Aug 2019 15:36:27 +0000 (17:36 +0200)]
Fix T67591: Gpencil reorganize Edit Menu

The Grease Pencil Stroke Menu in Edit mode is cluttered with operators that act over stroke, points or the entire object.

To keep the consistency of the edit menu with other Blender Objects, we should separate the menu in: Grease Pencil - Stroke - Point.
Also we should add some missing operators and other menus like Show/hide or Weights among others

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

5 weeks agoFix T67821: Snap to Symmetry not updating
Sebastian Parborg [Fri, 9 Aug 2019 15:25:47 +0000 (17:25 +0200)]
Fix T67821: Snap to Symmetry not updating

Added a missing depsgraph update.

5 weeks agoUI: add back header icons to toggle text display options
Campbell Barton [Fri, 9 Aug 2019 15:14:40 +0000 (01:14 +1000)]
UI: add back header icons to toggle text display options

These were removed in D5028, adding back by popular demand.

5 weeks agoCleanup: alternate fix for T66019
Campbell Barton [Fri, 9 Aug 2019 14:35:18 +0000 (00:35 +1000)]
Cleanup: alternate fix for T66019

Prefer triple quoting to avoid having to escape quotes.

5 weeks agoCleanup: simplify preview check in sequencer
Campbell Barton [Fri, 9 Aug 2019 14:21:47 +0000 (00:21 +1000)]
Cleanup: simplify preview check in sequencer

Also removed XXX comment which is now resolved.

5 weeks agoUI: Show suffix '*' instead of graying out 'Save Preferences'
Campbell Barton [Fri, 9 Aug 2019 14:06:54 +0000 (00:06 +1000)]
UI: Show suffix '*' instead of graying out 'Save Preferences'

Save preferences still works when preferences have not been edited.

5 weeks agoCleanup: move space types under DNA_DEPRECATED
Campbell Barton [Fri, 9 Aug 2019 13:57:25 +0000 (23:57 +1000)]
Cleanup: move space types under DNA_DEPRECATED

Prevent accidental use

5 weeks agoCleanup: remove redundant time check
Campbell Barton [Fri, 9 Aug 2019 13:59:04 +0000 (23:59 +1000)]
Cleanup: remove redundant time check

5 weeks agoUI: Clean up Sequencer/Preview Menu and Preview Menu
William Reynish [Fri, 9 Aug 2019 13:35:42 +0000 (15:35 +0200)]
UI: Clean up Sequencer/Preview Menu and Preview Menu

The Sequencer/Preview Menu is a mixture of both the Sequencer and the Preview menu functions, but they are currently not presented in an organized way.

Moved the Preview Zoom functions up next to the Sequencer Zoom functions with a separator in between.
Moved the Preview Show functions up next to the Sequencer Show functions with a separator in between.
Uncommented Show Framenumber Indicator, since it does not work or have a function after scrubbing in the timebar was implemented.
Renamed Show Metadata to Show Image Metadata, since it does only show metadata for images.
Added Show Annotations to View Menu for consistency.
Added Frame Overlay to View Menu for consistency.
Added Fractional Zoom to a sub-menu, since Sequencer/Preview View menu became too long. This sub-menu is in consistency with the Fractional Zoom menu in the Image Editor.
In Sequencer/Preview mode the Fractional Zoom will be named Fractional Preview Zoom, to specify that this function is only for the Preview.

Patch by Peter Fog (tintwotin)

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

5 weeks agoFix T68322: Shear in Dopesheet causes crash
Sybren A. Stüvel [Thu, 8 Aug 2019 16:21:40 +0000 (18:21 +0200)]
Fix T68322: Shear in Dopesheet causes crash

The Shear transform operator is now disallowed in the timeline and
dopesheet editors.

Reviewers: campbellbarton

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

5 weeks agoClarify "Save on Exit" tooltip
Sybren A. Stüvel [Fri, 9 Aug 2019 12:35:28 +0000 (14:35 +0200)]
Clarify "Save on Exit" tooltip

The old text, "Save modified preferences on exit" suggests that only the
modified preferences are saved. This is not the case: all preferences
are saved at once. This distinction is especially important after having
loaded factory default settings.

As discussed with @campbellbarton and @JulienKaspar.

5 weeks agoUI: Sequencer Sidebar Text-Strip Panel adjustments
William Reynish [Fri, 9 Aug 2019 12:08:20 +0000 (14:08 +0200)]
UI: Sequencer Sidebar Text-Strip Panel adjustments

The functions are now divided into two nested sub panels, since it makes it easier to navigate through the options.

The Location values are moved above the Alignment values, to avoid the confusion that the alignment values could be presets for the location.

In the menu and context menu the Text Effect strip was among the functions which had the Input sub menu visible. Text strips do not take strip inputs, so this is a bug, which is solved with this diff.

Patch by Peter Fog (tintwotin)

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

5 weeks agoCleanup: Fix stupid style error in previous commit
Antonio Vazquez [Fri, 9 Aug 2019 09:41:50 +0000 (11:41 +0200)]
Cleanup: Fix stupid style error in previous commit

5 weeks agoGPencil: Add "Self Overlap" parameter to materials to disable Stencil
Antonioya [Fri, 9 Aug 2019 09:04:14 +0000 (11:04 +0200)]
GPencil: Add "Self Overlap" parameter to materials to disable Stencil

This parameter was removed in 2.80 and we decided to back again, but now is inverted.

5 weeks agoUI: expand on console menus
Campbell Barton [Fri, 9 Aug 2019 09:05:15 +0000 (19:05 +1000)]
UI: expand on console menus

Some features weren't exposed anywhere in the interface.

D5443 by @tintwotin

5 weeks agoUI: Sculpt menus cleanup
William Reynish [Thu, 8 Aug 2019 20:54:57 +0000 (22:54 +0200)]
UI: Sculpt menus cleanup

This removes the Brush pulldown menu from Sculpt and Paint modes. This menu only contained a random duplicated subset of brush options. Now everything is accessible centrally in the Brush Tool Settings.

The Sculpt menu likewise contained various random brush options. These are removed and replaced by a list of commands, just like the other paint modes.

Also removes the Show Mask option from the mode options panel since this is also in Overlays.

Reviewers: Campbell Barton

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

5 weeks agoBMesh: add utility to calculate normal from a vertex cloud
Campbell Barton [Thu, 8 Aug 2019 19:27:49 +0000 (05:27 +1000)]
BMesh: add utility to calculate normal from a vertex cloud

Extract from BM_verts_sort_radial_plane & simplify.

5 weeks agoCleanup: remove function already implemented in BKE_deform
Campbell Barton [Thu, 8 Aug 2019 16:02:32 +0000 (02:02 +1000)]
Cleanup: remove function already implemented in BKE_deform

5 weeks agoDocs: improve description of 3D view distance offset utility
Campbell Barton [Thu, 8 Aug 2019 13:18:20 +0000 (23:18 +1000)]
Docs: improve description of 3D view distance offset utility

5 weeks agoCleanup: use doxy sections
Campbell Barton [Thu, 8 Aug 2019 15:50:15 +0000 (01:50 +1000)]
Cleanup: use doxy sections

5 weeks agoCleanup: warnings
Campbell Barton [Thu, 8 Aug 2019 15:54:50 +0000 (01:54 +1000)]
Cleanup: warnings

5 weeks agoCleanup: Typo in naming (BLE instead of BKE, tssttt).
Bastien Montagne [Thu, 8 Aug 2019 15:18:15 +0000 (17:18 +0200)]
Cleanup: Typo in naming (BLE instead of BKE, tssttt).

5 weeks agoFix T52551: undo causes crash after enabling a new rigid body when scene uses a refer...
Bastien Montagne [Thu, 8 Aug 2019 15:16:54 +0000 (17:16 +0200)]
Fix T52551: undo causes crash after enabling a new rigid body when scene uses a referenced rigid body world.

Poll functions were not correct here, we cannot make objects part of
rigidbody sim if the RB collection is a linked one...

5 weeks agoGPencil: Add mode Merge to Simplify modifier
Antonio Vazquez [Thu, 8 Aug 2019 15:16:06 +0000 (17:16 +0200)]
GPencil: Add mode Merge to Simplify modifier

This option uses the same logic of the merge by distance but as an option of modifier to allow dynamic merge.

This option will be very useful for LANPR generated strokes.

5 weeks agoGPencil: New Simplify modifier mode Sample and operator
Antonioya [Thu, 8 Aug 2019 14:12:13 +0000 (16:12 +0200)]
GPencil: New Simplify modifier mode Sample and operator

This mode simplify the stroke doing a resampling of the points and generate new geometry at the distance defined.

Sample function developed by @NicksBest

New Resample Stroke operator

This operator recreates the stroke geometry with a predefined length between points.

The operator uses the same code used in Simplify modifier.

Reviewers: @mendio

5 weeks agoFix T68393: lift hardcoded limit on particle children 'child_radius'
Philipp Oeser [Thu, 8 Aug 2019 10:38:56 +0000 (12:38 +0200)]
Fix T68393: lift hardcoded limit on particle children 'child_radius'

Reviewers: jacqueslucke

Maniphest Tasks: T68393

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

5 weeks agoFix T68375: Polyline: can not make segment (cyclic)
Philipp Oeser [Thu, 8 Aug 2019 11:56:07 +0000 (13:56 +0200)]
Fix T68375: Polyline: can not make segment (cyclic)

Reviewers: campbellbarton

Maniphest Tasks: T68375

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

5 weeks agoFix T68360: Zoom too sensitive with hi-dpi
Campbell Barton [Thu, 8 Aug 2019 12:08:10 +0000 (22:08 +1000)]
Fix T68360: Zoom too sensitive with hi-dpi

Scale pixel-input by pixel size for zoom operators.

5 weeks agoCleanup: use static for undeclared function
Campbell Barton [Thu, 8 Aug 2019 12:47:10 +0000 (22:47 +1000)]
Cleanup: use static for undeclared function

5 weeks agoFix T67545: GPencil - New Merge by Distance operator
Antonioya [Thu, 8 Aug 2019 08:23:05 +0000 (10:23 +0200)]
Fix T67545: GPencil - New Merge by Distance operator

Merge points when the distance is less than a predefined value.

The method to interpolate the position created a wrong merge. Now, always the secondary point is merged with the first one (merge at first), except the last point.

5 weeks ago2nd attempt to fix build error from rB22bdd08dfd08
Philipp Oeser [Thu, 8 Aug 2019 08:44:32 +0000 (10:44 +0200)]
2nd attempt to fix build error from rB22bdd08dfd08

sorry for the noise, if that doesnt do it, I'll revert and check this
thoroughly...

5 weeks agoattempt to fix build error from rB22bdd08dfd08
Philipp Oeser [Thu, 8 Aug 2019 08:38:01 +0000 (10:38 +0200)]
attempt to fix build error from rB22bdd08dfd08

6 weeks agoFix T68250: Camera keyframing (Walk/Fly) despite canceling movement
Philipp Oeser [Thu, 8 Aug 2019 07:41:19 +0000 (09:41 +0200)]
Fix T68250: Camera keyframing (Walk/Fly) despite canceling movement

Reviewers: campbellbarton (thx!)

Maniphest Tasks: T68250

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

6 weeks agoKeymap: don't use 'any' modifiers for the text editor context menu
Campbell Barton [Thu, 8 Aug 2019 06:40:40 +0000 (16:40 +1000)]
Keymap: don't use 'any' modifiers for the text editor context menu

6 weeks agoCleanup: rename text toolbox to context menu
Campbell Barton [Thu, 8 Aug 2019 06:39:50 +0000 (16:39 +1000)]
Cleanup: rename text toolbox to context menu

6 weeks agoText: reorganize menus
Campbell Barton [Thu, 8 Aug 2019 05:49:21 +0000 (15:49 +1000)]
Text: reorganize menus

- Add "Live Edit" to Text menu.
- "Top/Bottom of File" renamed to "Top/Bottom" and placed in Navigation sub-menu.
- Added navigation functions to Navigation menu,
  since they were not exposed in the menus.
- Added selection functions to Select menu,
  since they were not exposed in the menus.
- Moved the Select menu to the Header in consistency with the 3D View.
- Inserted comment in context menu.

D5434 with edits.

6 weeks agoFix T67587: Fix Drawing in Wireframe Non X-Ray Mode
Jeroen Bakker [Thu, 25 Jul 2019 06:51:59 +0000 (08:51 +0200)]
Fix T67587: Fix Drawing in Wireframe Non X-Ray Mode

When using Vertex or Weight paint mode on a wireframe the overlay was
blended with the background. In this case we now use alpha blending.

Reviewed By: fclem

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

6 weeks agoFix T67638: Stretched Camera Background Images
Jeroen Bakker [Wed, 7 Aug 2019 13:43:44 +0000 (15:43 +0200)]
Fix T67638: Stretched Camera Background Images

The matrices that projects background images in the 3d view
were incorrect. The root cause was that the coordinate systems were not
respected, that was most noticeable when rotating a stretched image.

We re-validated conversions of coordinate spaces (UV -> Image -> Camera -> Window)
and made sure that the rotation is done in image space.

Reviewed By: campbellbarton

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

6 weeks agoKeymap: only use Alt-Left/Right for legacy keymap
Campbell Barton [Thu, 8 Aug 2019 05:31:47 +0000 (15:31 +1000)]
Keymap: only use Alt-Left/Right for legacy keymap

Ctrl-Left/Right aren't in conflict for the default keymap.

6 weeks agoUI: Remove Grease Pencil Interpolation from stroke menu
Aaron Carlisle [Wed, 7 Aug 2019 23:56:52 +0000 (19:56 -0400)]
UI: Remove Grease Pencil Interpolation from stroke menu

This is a bit redundant because there is the interpolation popover.
Also these options were available while drawing which is not useful.

6 weeks agoAPI Docs: Correct Hotkey
Aaron Carlisle [Wed, 7 Aug 2019 21:20:40 +0000 (17:20 -0400)]
API Docs: Correct Hotkey

Here we can link to the manual and keep the hotkey updated in the manual
rather than the API docs.

Fixes T68371