blender.git
5 weeks agoFix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.
Bastien Montagne [Tue, 11 Jun 2019 20:25:01 +0000 (22:25 +0200)]
Fix/Cleanup: I18N: Bad usage of IFACE_ instead of TIP_.

Cheap tip: anything that is not "Camel Case" and/or that is more than
a few words long should use `TIP_` translation, not `IFACE_` one.

Also added several missing strings (including the one reported in D5056
by Jean First (@robbott), thanks).

5 weeks agoCleanup: remove unused var.
Bastien Montagne [Tue, 11 Jun 2019 19:16:36 +0000 (21:16 +0200)]
Cleanup: remove unused var.

5 weeks agoFix T64430: Removing objects from sub-collection doesn't update instances of parent...
Bastien Montagne [Tue, 11 Jun 2019 19:13:37 +0000 (21:13 +0200)]
Fix T64430: Removing objects from sub-collection doesn't update instances of parent collection.

Collections are a tad annoying with all their caching of objects... When
we modify content of a children collection, we need to tag DeG for CoW
update of all of the ancestors.

For now keeping that recursive tagging helper private, but would not be
surprised if we found more similar cases and needed to expose it to more
code...

5 weeks agoFix (unreported) message wrongly using IFACE_ for its translation.
Bastien Montagne [Tue, 11 Jun 2019 18:54:43 +0000 (20:54 +0200)]
Fix (unreported) message wrongly using IFACE_ for its translation.

`IFACE_` is for short strings always shown in UI (like labels of buttons,
menu entries...). Every thing else, especially when more than a couple
of words, must use `TIP_`.

5 weeks agoFix T64608: DOF Focus object, not linked to new copy, Scen "full_copy".
Bastien Montagne [Tue, 11 Jun 2019 18:48:52 +0000 (20:48 +0200)]
Fix T64608: DOF Focus object, not linked to new copy, Scen "full_copy".

Note that there are probably many other similar cases... This code is
really legacy, should use library_query helpers and other modern
BKE_library code instead of doing its own dirty cooking...

5 weeks agoEdit Mode: Fix face alpha being too strong in xray mode
Clément Foucault [Tue, 11 Jun 2019 15:48:06 +0000 (17:48 +0200)]
Edit Mode: Fix face alpha being too strong in xray mode

This make the xray & wireframe follows the same style as the solid
mode.

5 weeks agoFix T65406 Edit Mode: Edge selection is below wireframe overlay
Clément Foucault [Tue, 11 Jun 2019 15:29:31 +0000 (17:29 +0200)]
Fix T65406 Edit Mode: Edge selection is below wireframe overlay

This was due to a double offset of the wireframe. We also reduce
the wireframe offset. The look of the wireframe overlay changes
a little with on distant wires.

5 weeks agoFFmpeg: Fix integer overflow when writing custom FPS with high denominator
Sybren A. Stüvel [Tue, 11 Jun 2019 13:51:39 +0000 (15:51 +0200)]
FFmpeg: Fix integer overflow when writing custom FPS with high denominator

FFmpeg uses a fraction of integers to indicate the frame rate, whereas
Blender uses `int / float`. When a custom frame rate is used with
non-integer base, the FPS and Base settings were multiplied with 100000
before passing to FFmpeg as `int`. This could overflow when a high
enough FPS setting was used, which is the case when importing a video of
almost-but-not-quite-integer frame rate into the VSE. The overflow
caused FFmpeg to return an error "The encoder timebase is not set",
which is rather cryptic for users.

The new solution is to take the max int and divide that by the frame
rate, and use that ratio to pass to FFmpeg. This won't overflow, and
thus allows exporting arbitrary frame rates.

5 weeks agoOpenGL Render: Fix crash when using audio
Sergey Sharybin [Tue, 11 Jun 2019 13:40:03 +0000 (15:40 +0200)]
OpenGL Render: Fix crash when using audio

Was very easy to reproduce by rendering sequencer with sound strip.

Need to use evaluated scene to open movie handle, since that is the only
scene which has proper sound handle with everything else attached to it.

5 weeks agoSound: Fix missing sound sequences length update on FPS change
Sergey Sharybin [Tue, 11 Jun 2019 13:19:32 +0000 (15:19 +0200)]
Sound: Fix missing sound sequences length update on FPS change

5 weeks agoSound: Fix queries of sound info
Sergey Sharybin [Tue, 11 Jun 2019 08:55:13 +0000 (10:55 +0200)]
Sound: Fix queries of sound info

A lot of areas were querying sound information directly using audio handle
which does not exist on an original sound IDs.

This change basically makes it so it's possible to query information about
given sound ID, without worrying about whether it's loaded or not: if it is
needed to load it first it happens automatically (no automatically-opened
handles are left behind though).

While this seems a bit extreme to open files on such queries it is still
better than the old situation when all sound handles were opened on file
load, no matter if it's needed or not. Besides, none of the changed code
paths are performance critical, just handful of tools.

Fixes T65696: Sequencer fails to create a new sound sequence strip via Python
Fixes T65656: Audio strip - SHIFT K crashes Blender

Reviewers: brecht

Reviewed By: brecht

Subscribers: ISS

Maniphest Tasks: T65696, T65656

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

5 weeks agoFix T65671: Armature X-Mirror inconsistencies
mano-wii [Tue, 11 Jun 2019 12:41:18 +0000 (09:41 -0300)]
Fix T65671: Armature X-Mirror inconsistencies

Apparently the `rna_Armature_editbone_transform_update` function was incomplete because it didn't copy all mirrored transform values.

I also noticed that the same logic seen in `rna_Armature_editbone_transform_update` is also seen in `ED_armature_edit_transform_mirror_update`.
So the solution is expose and use that logic that updates a mirrored bone. Thus deduplicating and fixing T65671.

Reviewers: brecht, zeddb

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

5 weeks agoDocumentation: Update description with documentation
Jeroen Bakker [Tue, 11 Jun 2019 12:27:18 +0000 (14:27 +0200)]
Documentation: Update description with documentation

5 weeks agofix T65576 collada exporter duplicates node tree when exported material already uses...
Gaia Clary [Tue, 11 Jun 2019 11:56:31 +0000 (13:56 +0200)]
fix T65576 collada exporter duplicates node tree when exported material already uses nodes

5 weeks agoFix T65702: Load factory erases setting without confirmation
Campbell Barton [Tue, 11 Jun 2019 11:49:05 +0000 (21:49 +1000)]
Fix T65702: Load factory erases setting without confirmation

It could be argued this was correct behavior, since auto-save
defaults to 'on' nevertheless, auto-saving settings once
the user has disabled auto-save can lead to accidents.

Don't reset the preferences flag when resetting preferences.

5 weeks agoFix T65715: Instant crash when grouping strips in VSE
Sergey Sharybin [Tue, 11 Jun 2019 11:22:59 +0000 (13:22 +0200)]
Fix T65715: Instant crash when grouping strips in VSE

5 weeks agoFix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"
Sergey Sharybin [Tue, 11 Jun 2019 09:56:30 +0000 (11:56 +0200)]
Fix T65626: Use Nodes checkbox locks after being checked with "insert keyframe"

Not sure if this is something what is supported by render pipeline, but this report
discovered some actual error in logic.

5 weeks agoSequencer: Fix missing relations and recalc tags in RNA
Sergey Sharybin [Tue, 11 Jun 2019 09:18:47 +0000 (11:18 +0200)]
Sequencer: Fix missing relations and recalc tags in RNA

5 weeks agoFix T65677: Creating a scene sequencer strip with python crash blender
Sergey Sharybin [Tue, 11 Jun 2019 09:15:52 +0000 (11:15 +0200)]
Fix T65677: Creating a scene sequencer strip with python crash blender

5 weeks agoFix extend being ignored for left/right sequencer selection
Campbell Barton [Tue, 11 Jun 2019 08:11:35 +0000 (18:11 +1000)]
Fix extend being ignored for left/right sequencer selection

5 weeks agoKeymap: fix conflict introduced by recent Alt-LMB for scrubbing
Campbell Barton [Tue, 11 Jun 2019 07:44:30 +0000 (17:44 +1000)]
Keymap: fix conflict introduced by recent Alt-LMB for scrubbing

Use Ctrl-Alt modifier for select-left/right.

5 weeks agoFix T65393: Error live editing UI scripts
Campbell Barton [Tue, 11 Jun 2019 06:08:32 +0000 (16:08 +1000)]
Fix T65393: Error live editing UI scripts

Disable relative imports for UI scripts.

5 weeks agoFix panel-type re-registration with parents
Campbell Barton [Tue, 11 Jun 2019 06:01:19 +0000 (16:01 +1000)]
Fix panel-type re-registration with parents

The order of panel types changes when re-registering existing types.
Fixes an error exposed by T65393.

5 weeks agoFix T65470: Scale set to zero after extrude
Campbell Barton [Tue, 11 Jun 2019 03:27:10 +0000 (13:27 +1000)]
Fix T65470: Scale set to zero after extrude

5 weeks agoFix gpencil weight paint mode having no active tool
Campbell Barton [Tue, 11 Jun 2019 02:28:40 +0000 (12:28 +1000)]
Fix gpencil weight paint mode having no active tool

5 weeks agoFix T62875: Tooltips behave erratically with view gizmos
Campbell Barton [Tue, 11 Jun 2019 01:43:48 +0000 (11:43 +1000)]
Fix T62875: Tooltips behave erratically with view gizmos

Improvements to behavior for gizmo tool-tips.

- 2D gizmos no longer cancel tool-tips on cursor motion
  (matching the behavior of UI widgets).

- 3D gizmos still close on motion since 3D gizmos may have a large
  on-screen area which would cause them to stay visible even after the
  cursor has been moved a large distance. The motion threshold is used
  so they don't close on unintended cursor motion.

- Changing highlighted gizmo now cancels the tool-tip & resets the timer.

5 weeks agoFix T65699: gpencil weight paint unresponsive
Campbell Barton [Mon, 10 Jun 2019 23:20:33 +0000 (09:20 +1000)]
Fix T65699: gpencil weight paint unresponsive

5 weeks agoFix T65295: Convert curve to mesh fails with Keep Original.
Bastien Montagne [Mon, 10 Jun 2019 09:06:16 +0000 (11:06 +0200)]
Fix T65295: Convert curve to mesh fails with Keep Original.

This code now expects to wrok from fully evaluated data, however when we
keep original, we are actually working from data just copied from orig
one.

Ideally, we'd do a single depsgraph update/eval *after* we have created
all new required data, but that is tricky to do properly in that code
without risking breaking one thing or another.

So for now, just going for the simple, if not optimal solution, and just
repeatedly re-evaluating whole deg every time we duplicate an object to
be converted. Yep, dummy, but simple and... safe. ;)

5 weeks agoFix: Default keymap was missing Alt-click to scrub in the Graph Editor
William Reynish [Mon, 10 Jun 2019 07:28:58 +0000 (09:28 +0200)]
Fix: Default keymap was missing Alt-click to scrub in the Graph Editor

5 weeks agoFix T65301: Convert to mesh with Keep Original loses adjust operator panel.
Bastien Montagne [Sun, 9 Jun 2019 21:43:33 +0000 (23:43 +0200)]
Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.

That was a dummy typo in `duplibase_for_convert()` in fact...

5 weeks agoRevert "Fix T65301: Convert to mesh with Keep Original loses adjust operator panel."
Bastien Montagne [Sun, 9 Jun 2019 21:39:55 +0000 (23:39 +0200)]
Revert "Fix T65301: Convert to mesh with Keep Original loses adjust operator panel."

This reverts commit rB78bbf374f475 (and part of rB702d85d7cddbf81).

Fix for this is actually simpler, done in next commit.

5 weeks agoFix (unreported) several issues when converting MBall to Mesh.
Bastien Montagne [Sun, 9 Jun 2019 20:56:37 +0000 (22:56 +0200)]
Fix (unreported) several issues when converting MBall to Mesh.

Redo panel would be hidden (when 'keep original' was not set), due to
same kind of (un)selected issue as in T65301 (see previous commit).

Further more, not all MBall objects of the family were properly removed.

5 weeks agoFix T65301: Convert to mesh with Keep Original loses adjust operator panel.
Bastien Montagne [Sun, 9 Jun 2019 20:53:48 +0000 (22:53 +0200)]
Fix T65301: Convert to mesh with Keep Original loses adjust operator panel.

We need to properly select new objects (and deselect 'source' ones) when
converting to another type while keeping original ones. Otherwise poll
check of the operator fails, and redo panel cannot be shown.

Note that this is actually a design flaw in redo system currently, since
*new* state has to still allow last operator to be ran, when it should
actually be previous step in history that matters here...

5 weeks agoFix T65657: crash in float texture painting, after recent changes
Brecht Van Lommel [Sun, 9 Jun 2019 20:03:01 +0000 (22:03 +0200)]
Fix T65657: crash in float texture painting, after recent changes

5 weeks agoFix T65638: memory leak - modifiers on curves.
Bastien Montagne [Sun, 9 Jun 2019 19:11:37 +0000 (21:11 +0200)]
Fix T65638: memory leak - modifiers on curves.

We need to tag the `mesh_eval` of curve as owned, when we generate one,
otherwise freeing code would not free it.

5 weeks agoFix: Build error with clang on windows.
Ray Molenkamp [Sun, 9 Jun 2019 00:10:48 +0000 (18:10 -0600)]
Fix: Build error with clang on windows.

clang does not seem support the static_assert with
message overload.

5 weeks agoIndustry Compat keymap: Fix nodes interaction
William Reynish [Sat, 8 Jun 2019 13:24:47 +0000 (15:24 +0200)]
Industry Compat keymap: Fix nodes interaction

  - Dragging to move, scale and setting links now works normally and correctly

5 weeks agoCleanup: use doxygen sections for 2D view operators
Campbell Barton [Fri, 7 Jun 2019 23:23:11 +0000 (09:23 +1000)]
Cleanup: use doxygen sections for 2D view operators

5 weeks agoFix T65420: Crash in file saved with edit mesh
Dalai Felinto [Fri, 7 Jun 2019 20:15:52 +0000 (17:15 -0300)]
Fix T65420: Crash in file saved with edit mesh

Reviewers: brecht, sergey

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

5 weeks agoCollections: Never change the collection views visibility when unhiding it
Dalai Felinto [Fri, 7 Jun 2019 21:41:37 +0000 (18:41 -0300)]
Collections: Never change the collection views visibility when unhiding it

How to reproduce: use 1-10 to change the visible collection. If the
collection was globally invisible, it would be set to globally visible.

This was a left over from the previous collection visibility design.

Now that we have a more clear separation between temporary visibility
(i.e., layer collection visibiilty) and a global visibility setting
(i.e., collection visibility) we should keep them separated.

5 weeks agoFix T65613: Memory leak in Audaspace with 3D sound
Jörg Müller [Fri, 7 Jun 2019 20:29:52 +0000 (22:29 +0200)]
Fix T65613: Memory leak in Audaspace with 3D sound

5 weeks agoFix T62121: Cycles crash with viewport render and smoke/pointclouds
Brecht Van Lommel [Fri, 7 Jun 2019 19:02:57 +0000 (21:02 +0200)]
Fix T62121: Cycles crash with viewport render and smoke/pointclouds

5 weeks agoCleanup: fix compiler warning
Brecht Van Lommel [Fri, 7 Jun 2019 18:40:06 +0000 (20:40 +0200)]
Cleanup: fix compiler warning

5 weeks agoFix T64625: Eevee image textures with alpha have dark edges
Brecht Van Lommel [Fri, 7 Jun 2019 15:49:58 +0000 (17:49 +0200)]
Fix T64625: Eevee image textures with alpha have dark edges

Now texture storage of images is defined by the alpha mode of the image. The
downside of this is that there can be artifacts near alpha edges where pixels
with zero alpha bleed in. It also adds more code complexity since image textures
are no longer all stored the same way.

This changes allows us to keep using sRGB texture formats, which have edge
darkening when stored with premultiplied alpha. Game engines seems to generally
do the same thing, and we want to be compatible with them.

5 weeks agoFix T65612: Ungroup in Node Editor Crashes
Sergey Sharybin [Fri, 7 Jun 2019 15:45:31 +0000 (17:45 +0200)]
Fix T65612: Ungroup in Node Editor Crashes

5 weeks agoCleanup: Reformat GPencil multiedit frame selection
Antonio Vazquez [Fri, 7 Jun 2019 14:07:32 +0000 (16:07 +0200)]
Cleanup: Reformat GPencil multiedit frame selection

5 weeks agoSound: Fix 3D sound coming from scene strips
Sergey Sharybin [Fri, 7 Jun 2019 13:54:22 +0000 (15:54 +0200)]
Sound: Fix 3D sound coming from scene strips

Need to pull in speakers from scene strips and make sure they
are properly updated.

5 weeks agoSet lower minimum drag thresholds
William Reynish [Fri, 7 Jun 2019 12:29:34 +0000 (14:29 +0200)]
Set lower minimum drag thresholds

Was 3px, but even lower values work too, so setting minimum now to 1px.

5 weeks agoGNUMakeFile: Fix bad command line to generate QTCreator project.
Dmitriy Efimov [Fri, 7 Jun 2019 12:19:56 +0000 (14:19 +0200)]
GNUMakeFile: Fix bad command line to generate QTCreator project.

Report with fix in D5035 by Dmitriy Efimov (@DarkDemiurg), thanks.

5 weeks agoEevee: Try to fix NaN caused by normal maps + bentnormals
Clément Foucault [Fri, 7 Jun 2019 11:53:30 +0000 (13:53 +0200)]
Eevee: Try to fix NaN caused by normal maps + bentnormals

Should help with T65118.

5 weeks agoGPencil: Remove unused Cursor function after add new Paint cursor.
Antonio Vazquez [Fri, 7 Jun 2019 11:25:59 +0000 (13:25 +0200)]
GPencil: Remove unused Cursor function after add new Paint cursor.

5 weeks agoGPencil: Create new CURSOR for paint modes
Antonio Vazquez [Fri, 7 Jun 2019 10:59:47 +0000 (12:59 +0200)]
GPencil: Create new CURSOR for paint modes

This new cursor is used instead of the ARROW because it was too disruptive while you are drawing.

The change affects all paint modes that are used Brushes.

See D5036 for details.

Reviewers: @brecht @billreynish @mendio
Cursor designed by:  @billreynish

5 weeks agoCleanup: Rename to avoid shadow variable
Antonio Vazquez [Fri, 7 Jun 2019 10:49:33 +0000 (12:49 +0200)]
Cleanup: Rename to avoid shadow variable

5 weeks agoDrawManager: OpenGL State Image Rendering
Jeroen Bakker [Fri, 7 Jun 2019 08:23:16 +0000 (10:23 +0200)]
DrawManager: OpenGL State Image Rendering

The OpenGL state was not set to blender defaults when using
`DRW_render_to_image` path. This is only used when doing F12-rendering.
Cause of changes with the `RESTART_INDEX` hair rendering was rendering
the restart_index as an actual vertex index.

Reviewed By: fclem

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

5 weeks agoSequencer: Fix missing sound from nested scene strips
Sergey Sharybin [Fri, 7 Jun 2019 09:27:34 +0000 (11:27 +0200)]
Sequencer: Fix missing sound from nested scene strips

5 weeks agoSound: Use dependency graph instead of bmain
Sergey Sharybin [Fri, 7 Jun 2019 08:58:51 +0000 (10:58 +0200)]
Sound: Use dependency graph instead of bmain

Allows to move scene sound update to dependency graph evaluation.

5 weeks agoCleanup: Remove unused variable and move definition
Antonio Vazquez [Fri, 7 Jun 2019 09:51:10 +0000 (11:51 +0200)]
Cleanup: Remove unused variable and move definition

5 weeks agoGPencil: Cleanup multiframe code
Antonio Vazquez [Fri, 7 Jun 2019 09:46:11 +0000 (11:46 +0200)]
GPencil: Cleanup multiframe code

5 weeks agoFix T65591: GPencil Arrange Strokes operator does not work in multiframe
Antonio Vazquez [Fri, 7 Jun 2019 09:41:11 +0000 (11:41 +0200)]
Fix T65591: GPencil Arrange Strokes operator does not work in multiframe

5 weeks agoRemove Deform Delay armature option
Sergey Sharybin [Fri, 7 Jun 2019 08:44:18 +0000 (10:44 +0200)]
Remove Deform Delay armature option

This option can not be supported by a new granular dependency graph,
and, especially, copy-on-write.

It was always doing full update ever since initial commit of new dependency
graph which we are using here in the studio for the past years and lack of
this option was never brought up.

Fixes T65557: Delay refresh option in armatures is broken

5 weeks agoSculpt toolbar: Group new Mask Lasso tool with the Mask Border tool
William Reynish [Fri, 7 Jun 2019 08:35:07 +0000 (10:35 +0200)]
Sculpt toolbar: Group new Mask Lasso tool with the Mask Border tool

Also flip Simplify and Mask, so that all the mask-related tools are next to each other.

5 weeks agoForgot this file in last commit
William Reynish [Fri, 7 Jun 2019 08:33:01 +0000 (10:33 +0200)]
Forgot this file in last commit

5 weeks agoAdd Lasso Mask icon for Sculpt Mode toolbar
William Reynish [Fri, 7 Jun 2019 08:24:19 +0000 (10:24 +0200)]
Add Lasso Mask icon for Sculpt Mode toolbar

5 weeks agoCleanup: keymaps
Campbell Barton [Fri, 7 Jun 2019 08:14:34 +0000 (18:14 +1000)]
Cleanup: keymaps

5 weeks agoIndustry Compat keymap: Fix alt-key navigation over gizmos
William Reynish [Fri, 7 Jun 2019 07:59:29 +0000 (09:59 +0200)]
Industry Compat keymap: Fix alt-key navigation over gizmos

This broke recently after recent gizmo keymap changes

5 weeks agoFix missing autosmooth update when animated
Sergey Sharybin [Thu, 6 Jun 2019 10:27:28 +0000 (12:27 +0200)]
Fix missing autosmooth update when animated

Consists of few simple steps.

Don't tag object data's bounding box as dirty before re-evaluaiton

Most of the time this actually tags evaluated mesh which will be tossed
away few lines below anyway. And this causes issues if the evaluated
mesh is actually owned by the mesh datablock.

The bounding box now has clear separation between original object data
and object data after modifiers, so this should not be causing any
issues.

Free evaluated mesh when owner mesh changes

Ensures that evaluated mesh shares the same settings as its owner when
updates related on animation system happens.

Depsgraph: Update mesh when its geometry settings changes

Allows to have options like autosmooth animated.

Reviewers: brecht, mont29

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

5 weeks agoFree evaluated mesh when owner mesh changes
Sergey Sharybin [Thu, 6 Jun 2019 10:26:40 +0000 (12:26 +0200)]
Free evaluated mesh when owner mesh changes

Ensures that evaluated mesh shares the same settings as its owner when
updates related on animation system happens.

5 weeks agoDon't tag object data's bounding box as dirty before re-evaluaiton
Sergey Sharybin [Thu, 6 Jun 2019 10:24:40 +0000 (12:24 +0200)]
Don't tag object data's bounding box as dirty before re-evaluaiton

Most of the time this actually tags evaluated mesh which will be tossed
away few lines below anyway. And this causes issues if the evaluated
mesh is actually owned by the mesh datablock.

The bounding box now has clear separation between original object data
and object data after modifiers, so this should not be causing any
issues.

5 weeks agoFix T65558: Crash on adding linked scene to Video Sequence Editor
Sergey Sharybin [Thu, 6 Jun 2019 13:05:20 +0000 (15:05 +0200)]
Fix T65558: Crash on adding linked scene to Video Sequence Editor

This commit fixes crash but the possible 3D sound is still missing.
Also, sound from sequencer coming from a scene strip is also missing.

This is partially a regression, at least for F12 case. The editing
was already behaving wrong: it was needed to have scene strip to be
actually rendered in preview.

5 weeks agoSequencer: Typo
Jeroen Bakker [Fri, 7 Jun 2019 06:39:43 +0000 (08:39 +0200)]
Sequencer: Typo

5 weeks agoTool System: add sculpt mask lasso tool
Campbell Barton [Fri, 7 Jun 2019 06:04:12 +0000 (16:04 +1000)]
Tool System: add sculpt mask lasso tool

5 weeks agoFix T65229: Crash adjusting last operator after using undo history
Campbell Barton [Fri, 7 Jun 2019 05:30:49 +0000 (15:30 +1000)]
Fix T65229: Crash adjusting last operator after using undo history

Undo history also missed updating the tool system and
calling undo pre/post handlers.

5 weeks agoFix T64669: Redo transform fails with constrained axis
Campbell Barton [Fri, 7 Jun 2019 04:11:54 +0000 (14:11 +1000)]
Fix T64669: Redo transform fails with constrained axis

5 weeks agoFly mode: Enable fancy icons instead of text for shortcuts
Campbell Barton [Fri, 7 Jun 2019 03:01:37 +0000 (13:01 +1000)]
Fly mode: Enable fancy icons instead of text for shortcuts

5 weeks agoFix T63744: Overlapping axis gizmo for 3D view translate & scale
Campbell Barton [Fri, 7 Jun 2019 02:48:45 +0000 (12:48 +1000)]
Fix T63744: Overlapping axis gizmo for 3D view translate & scale

5 weeks agoMissed removing unused property from last commit
Campbell Barton [Fri, 7 Jun 2019 02:22:30 +0000 (12:22 +1000)]
Missed removing unused property from last commit

5 weeks agoKeymap: expose gizmo press/drag as a preference
Campbell Barton [Fri, 7 Jun 2019 02:04:59 +0000 (12:04 +1000)]
Keymap: expose gizmo press/drag as a preference

- Right click select always activates on press
  since this was added as a workaround to left click select conflict.
- Left click has the option to set this to drag or press.

Make this change based on feedback on 8778dd0c8b461.

5 weeks agoKeymap: gizmos now use a map that optionally activates on press
Campbell Barton [Fri, 7 Jun 2019 01:45:50 +0000 (11:45 +1000)]
Keymap: gizmos now use a map that optionally activates on press

The legacy keymap now activates on press.

5 weeks agoFix T65479: Gizmo drag unusable with tools that activate on press
Campbell Barton [Fri, 7 Jun 2019 00:54:17 +0000 (10:54 +1000)]
Fix T65479: Gizmo drag unusable with tools that activate on press

5 weeks agoCleanup: unused var warning
Campbell Barton [Fri, 7 Jun 2019 01:05:56 +0000 (11:05 +1000)]
Cleanup: unused var warning

5 weeks agoFIX: `use_proxy` strip property state has no effect.
Richard Antalik [Thu, 6 Jun 2019 22:23:53 +0000 (15:23 -0700)]
FIX: `use_proxy` strip property state has no effect.

Author: Olly Funkster, Richard Antalík

Reviewed By: brecht

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

5 weeks agoVSE: Cache invalidation
Richard Antalik [Thu, 6 Jun 2019 21:44:12 +0000 (14:44 -0700)]
VSE: Cache invalidation

Add invalidation to strip add functions
Add invalidation for scene and movieclip strips
Skip invalidation for sound strips

Reviewed By: brecht

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

5 weeks agoFix T65333: VSE: Playback speed regression
Richard Antalik [Thu, 6 Jun 2019 19:42:41 +0000 (12:42 -0700)]
Fix T65333: VSE: Playback speed regression

3D engine settings were used to select image scaling method.
Use higher quality scaling only for rendering.

Reviewed By: brecht

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

5 weeks agoFix T63729 Eevee: Bump does not follow normal direction
Clément Foucault [Thu, 6 Jun 2019 17:32:43 +0000 (19:32 +0200)]
Fix T63729 Eevee: Bump does not follow normal direction

5 weeks agoFix T65505: crash applying modifiers in paint and sculpt modes
Brecht Van Lommel [Thu, 6 Jun 2019 16:44:03 +0000 (18:44 +0200)]
Fix T65505: crash applying modifiers in paint and sculpt modes

We need to find a better solution for mixing normal refreshes in some corner
cases. We actually had similar issues in 2.79 anyway, not crashing is more
important.

5 weeks agoFix T63701 Eevee: High Volumetric end distance darkens the image
Clément Foucault [Thu, 6 Jun 2019 16:46:35 +0000 (18:46 +0200)]
Fix T63701 Eevee: High Volumetric end distance darkens the image

5 weeks agoFix T60441, T60619: incorrect values for color values > 1.0
Bruno Boaventura Scholl [Thu, 6 Jun 2019 16:00:56 +0000 (18:00 +0200)]
Fix T60441, T60619: incorrect values for color values > 1.0

Modulo makes no sense here at all, is from an old bugfix to prevent a crash
that is no longer an issue.

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

5 weeks agoFix T65383 UI graphics glitches on macOS with Intel HD 4000
Clément Foucault [Thu, 6 Jun 2019 15:21:12 +0000 (17:21 +0200)]
Fix T65383 UI graphics glitches on macOS with Intel HD 4000

glDrawArrays is not supposed to be affected by primitive restart
but osx drivers never cease to surprise me.

5 weeks agoSequencer: Viewport Rendering Annotation
Jeroen Bakker [Thu, 6 Jun 2019 12:41:54 +0000 (14:41 +0200)]
Sequencer: Viewport Rendering Annotation

When rendering the Sequencer using viewport rendering the annotations
were not scaled to respect the scene render size. This was because the
matrices were calculated based on the output size and not the actual
rendersize.

Reviewed By: brecht

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

6 weeks agoPython API Docs: fix some examples
Jacques Lucke [Thu, 6 Jun 2019 15:12:49 +0000 (17:12 +0200)]
Python API Docs: fix some examples

6 weeks agoFix T64742 Eevee: SSRefract broken with planar reflections
Clément Foucault [Thu, 6 Jun 2019 14:51:17 +0000 (16:51 +0200)]
Fix T64742 Eevee: SSRefract broken with planar reflections

6 weeks agocmake/msvc: Add ninja support for precompiled headers
Ray Molenkamp [Thu, 6 Jun 2019 14:26:15 +0000 (08:26 -0600)]
cmake/msvc: Add ninja support for precompiled headers

Ninja was unable to see the dependency between the cpp
that generated the pch and the compile units that used
it. Explicitly managing this now makes precompiled headers
work with both msvc and clang, with both msbuild and ninja
based generators.

6 weeks agoParticles: remove unused particle settings from UI
Jacques Lucke [Thu, 6 Jun 2019 13:54:46 +0000 (15:54 +0200)]
Particles: remove unused particle settings from UI

Didn't touch rna to make sure that the Python API does not break.
Maybe I missed some, but these don't seem to be used anywere internally.

Reviewers: brecht

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

6 weeks agoFix T64533: Using "X-Axis Mirror" while posing with auto keyframe on does not keyfram...
Sebastian Parborg [Thu, 6 Jun 2019 13:52:52 +0000 (15:52 +0200)]
Fix T64533: Using "X-Axis Mirror" while posing with auto keyframe on does not keyframe the mirrored bone

Use an additional pose bone flag so we can keep track of mirrored bones that should be autokeyframed.

Reviewed By: Brecht

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

6 weeks agoFix T58920: Dyntopo sculpt and snake hook brush artifacts.
mano-wii [Thu, 6 Jun 2019 13:46:47 +0000 (10:46 -0300)]
Fix T58920: Dyntopo sculpt and snake hook brush artifacts.

This is a mix of solutions rBe60b18d51d58 and rB52af5fa31fbc.
What happened was that when a node of the BVH gets 0 vertices, the batch is untouched and therefore still drawn.

6 weeks agoFix: Build error with ninja on windows
Ray Molenkamp [Thu, 6 Jun 2019 13:19:58 +0000 (07:19 -0600)]
Fix: Build error with ninja on windows

Ninja has issues detecting the implicit dependency on the
precompiled header output for freestyle. Disabled ninja
support for now until a proper solution can be found.

6 weeks agoPython API: allow external render engines to use Eevee for LookDev shading
Brecht Van Lommel [Thu, 6 Jun 2019 12:36:40 +0000 (14:36 +0200)]
Python API: allow external render engines to use Eevee for LookDev shading

This is enabled with bl_use_eevee_viewport = True. It allows external engines
to generate an Cycles/Eevee shader node setup to emulate their materials in
the realtime viewport, or to leave it to users to do manually.

Removed bl_use_exclude_layers and bl_use_shading_nodes that did nothing
anymore. This should not break API compatibility, any scripts setting those
should continue to work the same as before.

Also adds descriptions for some RenderEngine settings.

6 weeks agoPython Templates: fix operator_mesh_uv template
Jacques Lucke [Thu, 6 Jun 2019 12:36:08 +0000 (14:36 +0200)]
Python Templates: fix operator_mesh_uv template

6 weeks agoDepsgraph: Add relations for spline animation
Sergey Sharybin [Thu, 6 Jun 2019 12:21:39 +0000 (14:21 +0200)]
Depsgraph: Add relations for spline animation

Currently only obvious setting which can be animated is Smooth.

The rest requires more proper support from animation update on
the Curve datablock.

But at least with this change it's not a "dependency graph fault"

6 weeks agoFix T59176: Missing Animation Update for Surface Resolution U & V
Sergey Sharybin [Thu, 6 Jun 2019 12:15:07 +0000 (14:15 +0200)]
Fix T59176: Missing Animation Update for Surface Resolution U & V

While fix in dependency graph for those is trivial, adopting underlying
code to become aware of animated settings is quite a rabbit hole: there
are non-obvious hidden inter-dependencies between settings, which are
especially tricky for NURBS.

For until we have more dedicated time for this disabling animation.