blender.git
2 months agoFix T66658: Undo steps gets out sync with text/edit-mode
Campbell Barton [Wed, 10 Jul 2019 23:42:36 +0000 (09:42 +1000)]
Fix T66658: Undo steps gets out sync with text/edit-mode

2 months agoUndo System: add is_final argument (no functional changes)
Campbell Barton [Wed, 10 Jul 2019 23:36:59 +0000 (09:36 +1000)]
Undo System: add is_final argument (no functional changes)

This is needed step out of undo steps which accumulate changes,
larger changes could be made to handle this but better not
make them at this point.

2 months agoCleanup: avoid recursion for undo/redo step skipping
Campbell Barton [Wed, 10 Jul 2019 23:11:49 +0000 (09:11 +1000)]
Cleanup: avoid recursion for undo/redo step skipping

Simplifies making further changes.

2 months agoCleanup: clang-format
Campbell Barton [Wed, 10 Jul 2019 23:14:31 +0000 (09:14 +1000)]
Cleanup: clang-format

2 months agoCleanup: quiet warning
Campbell Barton [Wed, 10 Jul 2019 23:22:19 +0000 (09:22 +1000)]
Cleanup: quiet warning

2 months agoFix T66654: wireframe overlay crash in vertex paint in some cases
Jeroen Bakker [Wed, 10 Jul 2019 15:05:15 +0000 (17:05 +0200)]
Fix T66654: wireframe overlay crash in vertex paint in some cases

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

2 months agoSplash: new image for 2.80 by Andy Goralczyk and the Spring team
Brecht Van Lommel [Wed, 10 Jul 2019 13:54:41 +0000 (15:54 +0200)]
Splash: new image for 2.80 by Andy Goralczyk and the Spring team

2 months agoFix T66567: Weight painting crashes with specific mesh
Sergey Sharybin [Wed, 10 Jul 2019 14:03:19 +0000 (16:03 +0200)]
Fix T66567: Weight painting crashes with specific mesh

Seems the deform group index and deform vertices went out of sync somehow.

Added extra NULL pointer check, which seems to be safe and matches checks
in other places in the neighbourhood.

2 months agoFix strict compiler warning
Sergey Sharybin [Wed, 10 Jul 2019 13:03:57 +0000 (15:03 +0200)]
Fix strict compiler warning

2 months agoSplash: put version number in top right, refactor code for easier changes
Brecht Van Lommel [Wed, 10 Jul 2019 12:53:47 +0000 (14:53 +0200)]
Splash: put version number in top right, refactor code for easier changes

2 months agoSplash: use red heart icon for development fund
Brecht Van Lommel [Wed, 10 Jul 2019 10:40:18 +0000 (12:40 +0200)]
Splash: use red heart icon for development fund

Now that the development fund image will disappear from the splash, this
draws a little more attention to this link.

2 months agoFix splash screen margins not being even and buttons not centered
Brecht Van Lommel [Wed, 10 Jul 2019 12:48:58 +0000 (14:48 +0200)]
Fix splash screen margins not being even and buttons not centered

2 months agoFix release notes not showing in splash without recent files
Brecht Van Lommel [Wed, 10 Jul 2019 12:42:08 +0000 (14:42 +0200)]
Fix release notes not showing in splash without recent files

2 months agoFix T61770 Multiple Hair Systems Not visible while in particle edit mode
Clément Foucault [Wed, 10 Jul 2019 12:43:58 +0000 (14:43 +0200)]
Fix T61770 Multiple Hair Systems Not visible while in particle edit mode

The check was for the whole object instead of individual particle system.

2 months agoFix T66631: Crash when converting objects from Curve to Mesh
Sybren A. Stüvel [Wed, 10 Jul 2019 10:58:39 +0000 (12:58 +0200)]
Fix T66631: Crash when converting objects from Curve to Mesh

When `BKE_mesh_new_from_object()` cannot convert an object to a mesh, it
returns `NULL`. This case was not handled at all in
`BKE_mesh_new_from_object_to_bmain()` or `curvetomesh()`, causing a
segmentation fault.

This commit fixes the segmentation fault, and leaves the curve object as
a curve object.

Reviewed By: mont29, brecht, sergey

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

2 months agoFix T66530: set_stereo_3d (pageflip) exists Blender
Dalai Felinto [Tue, 9 Jul 2019 18:50:45 +0000 (15:50 -0300)]
Fix T66530: set_stereo_3d (pageflip) exists Blender

Note: Although this fixes the issue (as in, it prevents a crash)
BKE_reports are not working because of CTX_wm_window_set().

Reviewers: campbellbarton

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

2 months agoFix T66627: Multiobject Edit UV constraint to image bounds
Dalai Felinto [Tue, 9 Jul 2019 23:07:08 +0000 (20:07 -0300)]
Fix T66627: Multiobject Edit UV constraint to image bounds

This was broken since the original commit to handle multi-object
editing: rBbfc9d426bb95.

2 months agoFix T57489 Eevee: Texture coordinate object reference not working for world
Clément Foucault [Wed, 10 Jul 2019 11:46:23 +0000 (13:46 +0200)]
Fix T57489 Eevee: Texture coordinate object reference not working for world

2 months agoUndo System: ensure the text ID for each undo step is used
Campbell Barton [Wed, 10 Jul 2019 11:29:31 +0000 (21:29 +1000)]
Undo System: ensure the text ID for each undo step is used

In practice this wasn't causing errors,
however it could be an issue in the future.

2 months agoFix T65850 Sculpt: Vertices not hidden if using shape keys
Clément Foucault [Wed, 10 Jul 2019 11:23:47 +0000 (13:23 +0200)]
Fix T65850 Sculpt: Vertices not hidden if using shape keys

2 months agoFix T66560 Sequencer: Shortcut keys no showing in menu for 'Move' and 'Refresh All'
Sebastian Parborg [Wed, 10 Jul 2019 10:55:15 +0000 (12:55 +0200)]
Fix T66560 Sequencer: Shortcut keys no showing in menu for 'Move' and 'Refresh All'

The menu shortcut context for 'Refresh All' was wrong and the actual operation
exectuted in the menu for the 'Move' command was different from the shortcut.

2 months agoFix crash when clicking in window while Blender starts
Sybren A. Stüvel [Wed, 10 Jul 2019 10:32:10 +0000 (12:32 +0200)]
Fix crash when clicking in window while Blender starts

A mouse click in the window will trigger the `VIEW3D_OT_cursor3d` operator
before the viewport is available. This causes a segfault in
`GPU_viewport_engines_data_validate()`.

Other callers of `WM_draw_region_get_viewport()` already check for `NULL`
being returned and handle it gracefully.

Reviewed By: jbakker, fclem

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

2 months agoDrawManager: Crash Face Selection
Jeroen Bakker [Wed, 10 Jul 2019 09:06:14 +0000 (11:06 +0200)]
DrawManager: Crash Face Selection

Init the scene of the draw context when selecting. When using face dot selection on
when the subsurf modifier is active on the cage, the scene needs to be
valid. It is read from the context in the
`DRW_mesh_batch_cache_create_requested` and used in the `isDisabled`
method of the SubSurfModifier.

Reviewers: fclem, sergey

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

2 months agoFix T66630 X-Ray + Subdivision surface Face select problem
Clément Foucault [Wed, 10 Jul 2019 10:12:50 +0000 (12:12 +0200)]
Fix T66630 X-Ray + Subdivision surface Face select problem

2 months agoFix T66626: Crash when using JACK audio device
Sergey Sharybin [Wed, 10 Jul 2019 09:57:13 +0000 (11:57 +0200)]
Fix T66626: Crash when using JACK audio device

Restore some context overrides which were originally happening in 2.79.

Made it a bit more paranoid, by storing old values and restoring them
afterwards, so the context is not being changed at the end of the function.

2 months agoUndo: print the undo stack when ed.undo logging is enabled
Campbell Barton [Wed, 10 Jul 2019 09:37:33 +0000 (19:37 +1000)]
Undo: print the undo stack when ed.undo logging is enabled

Print the undo stack on undo/redo when ed.undo logging is enabled.

2 months agoC Logging: add macro to check if logging is enabled
Campbell Barton [Wed, 10 Jul 2019 09:36:54 +0000 (19:36 +1000)]
C Logging: add macro to check if logging is enabled

2 months agoDocs: note about select debug value
Campbell Barton [Wed, 10 Jul 2019 09:07:16 +0000 (19:07 +1000)]
Docs: note about select debug value

2 months agoFix broken Mesh 'calc_smooth_groups' logic.
Bastien Montagne [Wed, 10 Jul 2019 09:21:43 +0000 (11:21 +0200)]
Fix broken Mesh 'calc_smooth_groups' logic.

We need to check both polygons of a manifold edge to be sure it is
actually smooth...

Reported by Hugo Sales (@someonewithpc) on blender.chat, thanks.

2 months agoFix T66571: Unable to change input color space of PSD
Sergey Sharybin [Wed, 10 Jul 2019 08:08:18 +0000 (10:08 +0200)]
Fix T66571: Unable to change input color space of PSD

Image reader must not override file's color space specification if it
is already specified.

2 months agoAlembic export: avoid BLI_assert() failure when object is not in depsgraph
Sybren A. Stüvel [Wed, 10 Jul 2019 07:56:27 +0000 (09:56 +0200)]
Alembic export: avoid BLI_assert() failure when object is not in depsgraph

When the object we iterate over is not part of the depsgraph, we cannot
get the evaluated copy to export. This workaround is temporary to avoid
a BLI_assert() failure getting the evaluated mesh of this object.

This will be handled more elegantly in the new AbstractHierarchyIterator
that I'm working on, but that requires a bigger change than we should
allow this close to the 2.80 release candidate.

This fixes a problem described in T58686.

2 months agoCleanup: avoid line breaks from trailing comments
Campbell Barton [Wed, 10 Jul 2019 04:41:19 +0000 (14:41 +1000)]
Cleanup: avoid line breaks from trailing comments

2 months agoCleanup: avoid accessing same vars multiple times
Campbell Barton [Wed, 10 Jul 2019 03:59:01 +0000 (13:59 +1000)]
Cleanup: avoid accessing same vars multiple times

2 months agoUI: use a label for strip 'frame_final_end'
Campbell Barton [Wed, 10 Jul 2019 03:48:03 +0000 (13:48 +1000)]
UI: use a label for strip 'frame_final_end'

This is intended for Python access and allows temporary negative frames
which is a problem when accessed from the UI.

This allows:

    seq.frame_final_start, seq.frame_final_end = frame_range

However it allows invalid sequence strips,
using a label is fine since there is a duration property here which
can change the length.

2 months agoCleanup: reserve single quotes for enums
Campbell Barton [Wed, 10 Jul 2019 03:39:56 +0000 (13:39 +1000)]
Cleanup: reserve single quotes for enums

2 months agoRevert strip start property to strip_start
Richard Antalik [Tue, 9 Jul 2019 22:45:08 +0000 (15:45 -0700)]
Revert strip start property to strip_start

Using strip_final_start affects strip offset while not moving content.

2 months agoFix T62580 Workbench: Shadow glitch due to degenerate threshold
Clément Foucault [Tue, 9 Jul 2019 18:38:40 +0000 (20:38 +0200)]
Fix T62580 Workbench: Shadow glitch due to degenerate threshold

Fix by adding a threshold instead of direct null comparison.

2 months agoFix T66565: crash linking unused light datablock during Cycles preview render
Brecht Van Lommel [Tue, 9 Jul 2019 17:48:38 +0000 (19:48 +0200)]
Fix T66565: crash linking unused light datablock during Cycles preview render

2 months agoFix T66605: Operation on origins not working correct
Sergey Sharybin [Tue, 9 Jul 2019 16:52:41 +0000 (18:52 +0200)]
Fix T66605: Operation on origins not working correct

2 months agoRaise particle count limit for 2.8 release
Sergey Sharybin [Tue, 9 Jul 2019 15:43:24 +0000 (17:43 +0200)]
Raise particle count limit for 2.8 release

Blender 2.8 features significant improvements in the creation of particles.
Removed hard limit and increased soft limit.

Patch by Gottfried Hofmann.
Differential Revision: https://developer.blender.org/D5120

2 months agoAlembic import: fix crash when loading invalid mesh
Sybren A. Stüvel [Tue, 9 Jul 2019 14:57:30 +0000 (16:57 +0200)]
Alembic import: fix crash when loading invalid mesh

These were just some missing nullptr checks.

2 months agoFix T52814 and T58686: Alembic crashing on fluid sim export
Sybren A. Stüvel [Tue, 9 Jul 2019 14:22:52 +0000 (16:22 +0200)]
Fix T52814 and T58686: Alembic crashing on fluid sim export

The velocities std::vector was allocated in too narrow a scope, causing
use-after-free errors.

2 months agoFix T66456: UV Editor missing update after selection change in 3D viewport
Philipp Oeser [Tue, 9 Jul 2019 11:28:27 +0000 (13:28 +0200)]
Fix T66456: UV Editor missing update after selection change in 3D viewport

Reviewers: brecht

Maniphest Tasks: T66456

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

2 months agoFix T66610: Planar Track extremely laggy when 3D View is open
Sergey Sharybin [Tue, 9 Jul 2019 13:43:42 +0000 (15:43 +0200)]
Fix T66610: Planar Track extremely laggy when 3D View is open

The issue was caused by modifications to planar track tagging clip for
copy-on-write, which was invalidating its cache and forcing current
frame in 3D viewport to be re-load.

Ideal solution would be to share movie cache across original and
evaluated movie clips which will reduce memory usage. However, doing
such ownership changes so close to the code freeze is not something
comfortable to do.

2 months agoFix (minor) some typos and other errors in UI messages.
Bastien Montagne [Tue, 9 Jul 2019 13:29:54 +0000 (15:29 +0200)]
Fix (minor) some typos and other errors in UI messages.

2 months agoFix crash on redo applying transforms
Philipp Oeser [Tue, 9 Jul 2019 12:59:30 +0000 (14:59 +0200)]
Fix crash on redo applying transforms

When accessing evaluated objects, make sure access to an
evaluated dependency graph is done. This solves possible
access to NULL data on redo.

See https://developer.blender.org/D5209

2 months agoFix uninitialized loop variable
Clément Foucault [Tue, 9 Jul 2019 12:55:27 +0000 (14:55 +0200)]
Fix uninitialized loop variable

Fix commit 226c6f086aa2

2 months agoFix T64149: Texture paint can act as a canvas and brush at the same time
Sebastian Parborg [Tue, 9 Jul 2019 12:43:25 +0000 (14:43 +0200)]
Fix T64149: Texture paint can act as a canvas and brush at the same time

I don't know if it was the intended behavior or not, but having brush
and canvas data at the same time with dymanic paint, would lead to the
object trying to act as a brush and a canvas at the same time.

We can't currently handle this with the new depsgraph, and it could
legitimately lead to bad feedback loops.

So now, to be more consistent with the GUI, I've made it only use the
current set type (brush or canvas) as the final type of the object.
That is, you can only have a object be a brush or a canvas, not both at
the same time.

2 months agoFix crash when redoing Set Origin operator
Sybren A. Stüvel [Tue, 9 Jul 2019 12:45:08 +0000 (14:45 +0200)]
Fix crash when redoing Set Origin operator

The operator was using a non-evaluated depsgraph to get the evaluated
scene, which caused the crash.

This fixes the crash reported in T66605, but not the problem where
sometimes object origins aren't set.

2 months agoEevee: Fix first sample being accumulated without SSR
Clément Foucault [Tue, 9 Jul 2019 12:34:38 +0000 (14:34 +0200)]
Eevee: Fix first sample being accumulated without SSR

We check if the previous iteration (sample) was using a valid double buffer.
If it wasn't, we request another iteration.

This fix the issue for viewport,viewport render and image render.

Related to T65761 Eevee render inconsistency between 3D View, Viewport render, and F12 Render

2 months agoFix T65761 Eevee: SSRefraction not working on first sample
Clément Foucault [Tue, 9 Jul 2019 12:32:02 +0000 (14:32 +0200)]
Fix T65761 Eevee: SSRefraction not working on first sample

There is no reason to disable the refraction on the first sample like SSR
does.

This was caussing issues when rendering.

2 months agoCleanup: GPU: Correct comment
Clément Foucault [Tue, 9 Jul 2019 10:46:20 +0000 (12:46 +0200)]
Cleanup: GPU: Correct comment

2 months agoFix T61474: laggy interaction on Windows/NVIDIA when gizmos are visible
Brecht Van Lommel [Tue, 9 Jul 2019 11:20:25 +0000 (13:20 +0200)]
Fix T61474: laggy interaction on Windows/NVIDIA when gizmos are visible

Thanks to Sergey and Clément for helping to track this down.

2 months agoFix T57652: Multires undo broken with shared object data
Sergey Sharybin [Tue, 9 Jul 2019 10:12:18 +0000 (12:12 +0200)]
Fix T57652: Multires undo broken with shared object data

2 months agoGPU: ATI Proxy check
Jeroen Bakker [Tue, 9 Jul 2019 09:36:11 +0000 (11:36 +0200)]
GPU: ATI Proxy check

The AMD PRO driver on linux PROXY check also fails. Now the
configuration ATI/Unix/Official driver  will also bypass the
Proxy test.

Reviewed By: fclem

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

2 months agoFix T64483: crash when hovering over outliner after closing render window
Sybren A. Stüvel [Tue, 9 Jul 2019 09:51:56 +0000 (11:51 +0200)]
Fix T64483: crash when hovering over outliner after closing render window

The `tselem->id` pointer can also be used for non-ID data (according to
this comment in DNA_outliner_types.h:

```
/* XXX We actually also store non-ID data in this pointer for identifying
 * the TreeStoreElem for a TreeElement when rebuilding the tree. Ugly! */
```

As such, I don't mind adding a `NULL`-check in the
`is_object_data_in_editmode()` function. After all, when there is no
object, its data certainly is not in edit mode.

2 months agoFix T66274: Object Texture Coordinate mode not updating in Lookdev / Eevee
Sergey Sharybin [Tue, 9 Jul 2019 09:24:39 +0000 (11:24 +0200)]
Fix T66274: Object Texture Coordinate mode not updating in Lookdev / Eevee

2 months agoImplement Movieclip filter for action editors
Sergey Sharybin [Mon, 8 Jul 2019 15:27:57 +0000 (17:27 +0200)]
Implement Movieclip filter for action editors

Allows to disable keyframes from movie clips in dopesheet.

Reviewers: brecht

Reviewed By: brecht

Subscribers: sebastian_k

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

2 months agoFix T66516: WPaint crash selecting bone with wire & face-mask
Campbell Barton [Tue, 9 Jul 2019 05:13:58 +0000 (15:13 +1000)]
Fix T66516: WPaint crash selecting bone with wire & face-mask

2 months agoFix T66359: UV editor ignores face-dot size
Campbell Barton [Tue, 9 Jul 2019 02:24:16 +0000 (12:24 +1000)]
Fix T66359: UV editor ignores face-dot size

D5178 by @deadpin

2 months agoAPI Docs: Change handling of Blender Version
Aaron Carlisle [Tue, 9 Jul 2019 00:52:29 +0000 (20:52 -0400)]
API Docs: Change handling of Blender Version

2 months agoAPI Docs: Hide Home Icon in Seach Area
Aaron Carlisle [Mon, 8 Jul 2019 23:44:47 +0000 (19:44 -0400)]
API Docs: Hide Home Icon in Seach Area

2 months agoGPU: added debug value to investigate lagging issue in T6147
Brecht Van Lommel [Mon, 8 Jul 2019 23:20:44 +0000 (01:20 +0200)]
GPU: added debug value to investigate lagging issue in T6147

2 months agoFix T55192: Speed fx applied to scene messed up animation
Richard Antalik [Mon, 8 Jul 2019 21:53:40 +0000 (14:53 -0700)]
Fix T55192: Speed fx applied to scene messed up animation

Don't update animdata after rendering scene
Rendering host scene from sequencer is not supported, removed code is unnecessary.

Reviewed By: brecht

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

2 months agoFix T66573 Heap Corruption when baking to irradiance volume probe
Clément Foucault [Mon, 8 Jul 2019 21:24:15 +0000 (23:24 +0200)]
Fix T66573 Heap Corruption when baking to irradiance volume probe

This is an AMD Proprietary driver bug. Will be reported upstream.

2 months agoFix (unreported) UI: useless setting shown for Text data-blocks.
Bastien Montagne [Mon, 8 Jul 2019 20:44:57 +0000 (22:44 +0200)]
Fix (unreported) UI: useless setting shown for Text data-blocks.

Since we do not have start/end settings for bevel object for Text,
mapping taper to those ends makes no sense here, we can hide that
setting.

2 months agoFix T61401: Failure to register a `GizmoGroup` after unregistering it
mano-wii [Mon, 8 Jul 2019 16:48:01 +0000 (13:48 -0300)]
Fix T61401: Failure to register a `GizmoGroup` after unregistering it

It does not seem right to rely on the python code to fix problems in the C code.
But this already works like this with the other Python Classes.

2 months agoRevert "Fix T61401: Failure to register a `GizmoGroup` after unregistering it"
mano-wii [Mon, 8 Jul 2019 16:44:03 +0000 (13:44 -0300)]
Revert "Fix T61401: Failure to register a `GizmoGroup` after unregistering it"

Problems with ClangFormat

This reverts commit c1bcde0c0feaf8bcfbd3664a52c50611806538ac.

2 months agoRevert "Revert "Fix T63447 Particle system: No particles after switching from hair...
mano-wii [Mon, 8 Jul 2019 16:41:27 +0000 (13:41 -0300)]
Revert "Revert "Fix T63447 Particle system: No particles after switching from hair to ...""

This reverts commit 45761e4c7cbbed2141afc97fb20b2bf26ce19ac2.

2 months agoRevert "Fix T63447 Particle system: No particles after switching from hair to ..."
mano-wii [Mon, 8 Jul 2019 16:40:06 +0000 (13:40 -0300)]
Revert "Fix T63447 Particle system: No particles after switching from hair to ..."

Problems with clang style

This reverts commit 8d6a5fb5d3c45cdfb0d06dd7f1f18aa8c870f8c1.

2 months agoFix T61401: Failure to register a `GizmoGroup` after unregistering it
mano-wii [Mon, 8 Jul 2019 16:37:17 +0000 (13:37 -0300)]
Fix T61401: Failure to register a `GizmoGroup` after unregistering it

2 months agoFix T63447 Particle system: No particles after switching from hair to ...
Clément Foucault [Mon, 8 Jul 2019 16:00:57 +0000 (18:00 +0200)]
Fix T63447 Particle system: No particles after switching from hair to ...

... emitter type

2 months agoFix T63659 "Viewport render image" don't process corectly "Display As" option
Clément Foucault [Mon, 8 Jul 2019 14:53:01 +0000 (16:53 +0200)]
Fix T63659 "Viewport render image" don't process corectly "Display As" option

2 months agoFix T66008 Viewport: hidden edges are partially visible
Clément Foucault [Mon, 8 Jul 2019 12:18:12 +0000 (14:18 +0200)]
Fix T66008 Viewport: hidden edges are partially visible

This was a regression from 2.79. The zoffset was doubled for some reason.

2 months agoFix T65534 Eevee don't respect active UVmap
Clément Foucault [Mon, 8 Jul 2019 11:35:55 +0000 (13:35 +0200)]
Fix T65534 Eevee don't respect active UVmap

2 months agoFix T66351 Wireframe display in sculpt-mode broke when hiding parts
Clément Foucault [Mon, 8 Jul 2019 09:56:57 +0000 (11:56 +0200)]
Fix T66351 Wireframe display in sculpt-mode broke when hiding parts

2 months agoFix T66348 Eevee: Broken shader if using textures and shader_to_rgb node
Clément Foucault [Sun, 7 Jul 2019 21:04:45 +0000 (23:04 +0200)]
Fix T66348 Eevee: Broken shader if using textures and shader_to_rgb node

Was caused by a missing texture resource.

2 months agoFix T66475 Spin Modifier: Merge Vert Makes mesh disappear
Clément Foucault [Sun, 7 Jul 2019 17:01:37 +0000 (19:01 +0200)]
Fix T66475 Spin Modifier: Merge Vert Makes mesh disappear

2 months agoFix T66470 Planar track is not adjustable
Clément Foucault [Sun, 7 Jul 2019 16:59:19 +0000 (18:59 +0200)]
Fix T66470 Planar track is not adjustable

The issue was that the shader used was expecting GL_LINES and the points
were using GL_TRIANGLE_FAN.

2 months agoFix T62941 Subdivision Modifier Showing all face dots
Clément Foucault [Sun, 7 Jul 2019 16:58:11 +0000 (18:58 +0200)]
Fix T62941 Subdivision Modifier Showing all face dots

Previously in 2.79 we were using a specialized drawing using derivedMesh.

Now the subsurf modifier tag each center vertex as facedot and let the
DRWManager pick it up.

Some modifiers (deforming ones) do not clear the tag so we can use this
technique even if there is deforming modifiers after subsurf modifiers.

2 months agoFix T61129 Eevee: alpha texture shadow bug
Clément Foucault [Fri, 5 Jul 2019 19:11:27 +0000 (21:11 +0200)]
Fix T61129 Eevee: alpha texture shadow bug

Seems like the AMD pro driver does not consider dead code the same as other
glsl compiler.

2 months agoAPI Docs: Fix file name
Aaron Carlisle [Mon, 8 Jul 2019 15:43:04 +0000 (11:43 -0400)]
API Docs: Fix file name

2 months agoFix T66556: Noisy drivers relations in certain cases
Sergey Sharybin [Mon, 8 Jul 2019 15:37:58 +0000 (17:37 +0200)]
Fix T66556: Noisy drivers relations in certain cases

2 months agoFix T62903: black line in UV editor on 32 bit
Brecht Van Lommel [Mon, 8 Jul 2019 15:34:22 +0000 (17:34 +0200)]
Fix T62903: black line in UV editor on 32 bit

2 months agoFix T66538: Menus in popups opening on mouse over
Campbell Barton [Mon, 8 Jul 2019 14:21:26 +0000 (00:21 +1000)]
Fix T66538: Menus in popups opening on mouse over

Caused by b708917d94afa

Solve by restricting this change to popovers
instead of other kinds of menus (enums mainly).

2 months agoFix T66554: Measure doesn't snap with Ctrl
Campbell Barton [Mon, 8 Jul 2019 14:06:59 +0000 (00:06 +1000)]
Fix T66554: Measure doesn't snap with Ctrl

2 months agoFix (unreported) broken 'compse' feature when editing text.
Bastien Montagne [Mon, 8 Jul 2019 14:09:28 +0000 (16:09 +0200)]
Fix (unreported) broken 'compse' feature when editing text.

Looks like that code was not updated when we switched to unicode, it was
still returning axtended ascii codes (iso-8859-15 ones I think)...

That was breaking some chars, which have a very different value in
unicode. Found while working on Text section of the Manual! ;)

2 months agoFix T66431: SE - Audio Caching crash
Sergey Sharybin [Mon, 8 Jul 2019 13:57:33 +0000 (15:57 +0200)]
Fix T66431: SE - Audio Caching crash

Moved the caching code from direct calls in DNA to dependency graph.

In fact, not much was needed to be done apart form removing the direct
cache updates. The rest seemed to work fine.

Possible to avoid full sound file re-load, but doesn't seem this is
causing any issues.

2 months agoFix T66499: Parenting a Mask to Plane Track doesnt work
Sergey Sharybin [Mon, 8 Jul 2019 12:48:24 +0000 (14:48 +0200)]
Fix T66499: Parenting a Mask to Plane Track doesnt work

2 months agoUI: Update tooltip of Vertex Selection masking
Pablo Vazquez [Mon, 8 Jul 2019 12:40:48 +0000 (14:40 +0200)]
UI: Update tooltip of Vertex Selection masking

Since it is now possible to use it in Vertex Paint, not just Weight Paint.

2 months agoFix T66526: child's objects move if change their origin position
Philipp Oeser [Mon, 8 Jul 2019 10:31:27 +0000 (12:31 +0200)]
Fix T66526: child's objects move if change their origin position

Reviewers: sergey

Maniphest Tasks: T66526

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

2 months agoFix T66524: Eyedropper in popover crashes
Campbell Barton [Mon, 8 Jul 2019 10:39:27 +0000 (20:39 +1000)]
Fix T66524: Eyedropper in popover crashes

2 months agoFix T66525: Wrong apply scale for children chain
Sergey Sharybin [Mon, 8 Jul 2019 10:23:24 +0000 (12:23 +0200)]
Fix T66525: Wrong apply scale for children chain

The operator did not behave correct when there was a chain of parents
longer than 1.

2 months agoFix T66517: Clip editor doesn't respect the 2D cursor
Sergey Sharybin [Mon, 8 Jul 2019 09:45:54 +0000 (11:45 +0200)]
Fix T66517: Clip editor doesn't respect the 2D cursor

Was caused by 91b768ccb1f4 which re-defined masks menu with the wrong
invoke type.

2 months agoFix wrong colors when creating a float normal map image in texture paint
Brecht Van Lommel [Fri, 5 Jul 2019 12:30:31 +0000 (14:30 +0200)]
Fix wrong colors when creating a float normal map image in texture paint

2 months agoCleanup: Spelling in function name
Sergey Sharybin [Mon, 8 Jul 2019 08:53:37 +0000 (10:53 +0200)]
Cleanup: Spelling in function name

2 months agoKeymap: Vertex Paint: Add ctrl to temporarily swich colors
Aaron Carlisle [Sun, 7 Jul 2019 23:52:57 +0000 (19:52 -0400)]
Keymap: Vertex Paint: Add ctrl to temporarily swich colors

This now matches Texture Painting
This was added in rB7d5fb2e103e03046194d69640aadf7e76a700620 but was
lost probably when migrating to python keymap.

2 months agoFix T66376: Problem with Gpencil fill tool
Antonioya [Sun, 7 Jul 2019 20:28:41 +0000 (22:28 +0200)]
Fix T66376: Problem with Gpencil fill tool

The fill material has an alpha > 0, but the show fill is disabled, but as the fill tool is considered the fill as visible and the stroke is not drawn, the fill area had a gap.

2 months agoCleanup: split enum types, use PF_CMP prefix
Campbell Barton [Sun, 7 Jul 2019 14:40:56 +0000 (00:40 +1000)]
Cleanup: split enum types, use PF_CMP prefix

2 months agoCleanup: move enum unto BKE_packedFile.h
Campbell Barton [Sun, 7 Jul 2019 14:06:52 +0000 (00:06 +1000)]
Cleanup: move enum unto BKE_packedFile.h

Use enum type for functions arguments.

Removed -1 check in switch statement, this isn't needed.