blender.git
9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 19:38:12 +0000 (20:38 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 19:25:35 +0000 (20:25 +0100)]
Merge branch 'blender-v2.82-release'

Merge conflict in source/blender/gpu/GPU_texture.h

9 months agoFluid: Fixes for flow objects and initial velocities
Sebastián Barschkis [Wed, 29 Jan 2020 18:21:09 +0000 (19:21 +0100)]
Fluid: Fixes for flow objects and initial velocities

This commit cleans up the flow emission code (i.e. the code that determines where flow is generated). It also addresses an issue with initial velocities.

Related issues (that might be fixed through this commit) are: T73422, T72949

9 months agoFix T73483: Mantaflow: Smoke inflow in liquid domain emits liquid
Sebastián Barschkis [Wed, 29 Jan 2020 18:15:22 +0000 (19:15 +0100)]
Fix T73483: Mantaflow: Smoke inflow in liquid domain emits liquid

Added an extra check in the flow object loop that compares flow object type and domain type prior to writing to flow maps.

9 months agoFluid: Added wavelet noise tile to the gitignore
Sebastián Barschkis [Wed, 29 Jan 2020 18:12:37 +0000 (19:12 +0100)]
Fluid: Added wavelet noise tile to the gitignore

This file is generated during bakes. It should not be committed to the blender repository. It just annoys developers when staging files.

9 months agoFluid: Updated UI
Sebastián Barschkis [Wed, 29 Jan 2020 11:41:48 +0000 (12:41 +0100)]
Fluid: Updated UI

UI updates include:
- More descriptive tool tips
- Removed texture panel for liquid flow objects
- Adjusted alignment for some smoke / fire parameters

9 months agoFluid: Removed wireframe drawtype setter for fluid domains
Sebastián Barschkis [Wed, 29 Jan 2020 11:25:22 +0000 (12:25 +0100)]
Fluid: Removed wireframe drawtype setter for fluid domains

Fluid domains with (auto-generated) particle systems were set to wireframe drawtype automatically. This was a convenience feature that made particles visible immediately. As the auto switching is sometimes a bit annoying though this has been removed. Instead, the Quick Liquid Operator switches the viewport shading type to wireframe.

9 months agoFluid: More cleanup related to flow emission maps
Sebastián Barschkis [Wed, 29 Jan 2020 10:58:01 +0000 (11:58 +0100)]
Fluid: More cleanup related to flow emission maps

In addition to 4670c68e3dd9544fe14656dacdff641fcabcd540 which removed the unused high-res emission maps.

9 months agoFluid: Cleanup in flow emission loops
Sebastián Barschkis [Mon, 27 Jan 2020 16:28:07 +0000 (17:28 +0100)]
Fluid: Cleanup in flow emission loops

- Initial velocities are no longer influenced by surface distance value.
- Added optimizations for different flow types (e.g. skip part of loop for liquid flow objects).
- Comments style cleanup and removed old todos.

9 months agoFluid: Removed the currently unused high-res smoke emission code
Sebastián Barschkis [Mon, 27 Jan 2020 14:33:47 +0000 (15:33 +0100)]
Fluid: Removed the currently unused high-res smoke emission code

This code is currently not in use and so removing it based on the YAGNI principle. If there really is need for a high-res emission loop it could be easily added again. However, I believe for the smoke noise it is sufficient to upscale the base emission map. A high-res emission map can easily be achieved by increasing the base resolution. Note also that in the new fluid system base loop and noise loop are decoupled making the need for a high-res emission loop even more unneccessary.

9 months agoUI: fsmenu_insert_entry Declaration Mismatch
Harley Acheson [Wed, 29 Jan 2020 18:20:30 +0000 (10:20 -0800)]
UI: fsmenu_insert_entry Declaration Mismatch

Code cleanup. Fixes a mismatch between definition and declaration of fsmenu_insert_entry().

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

Reviewed by Julian Eisel

9 months agoFix T73466: Unable to set particle rotation
Philipp Oeser [Wed, 29 Jan 2020 09:26:45 +0000 (10:26 +0100)]
Fix T73466: Unable to set particle rotation

Error in rB1f6ab32196d7.

Maniphest Tasks: T73466

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

9 months agoUI: Info Editor Visual Changes
Harley Acheson [Wed, 29 Jan 2020 17:24:54 +0000 (09:24 -0800)]
UI: Info Editor Visual Changes

Changes to Info Editor making it easier to read. Only visual changes, no functional changes.

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

Reviewed by Julian Eisel

9 months agoFix T73054: Add DNA defaults for pose_ik_segments
Pablo Dobarro [Thu, 23 Jan 2020 20:12:20 +0000 (21:12 +0100)]
Fix T73054: Add DNA defaults for pose_ik_segments

This fixes the crash with pose_ik_segments = 0 in old files.
Some files were saved with the property set to 0, so the versioning code
won't work in that cases. I also changed that to fix the crash in those
files.

Reviewed By: brecht

Maniphest Tasks: T73054

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

9 months agoFix T73453: Selecting playhead in VSE deselects all selected strips
Julian Eisel [Wed, 29 Jan 2020 15:26:19 +0000 (16:26 +0100)]
Fix T73453: Selecting playhead in VSE deselects all selected strips

Tool system handlers had higher priority than the overlayed animation
"regions" (fake regions in fact). Give animation (and View2D) handlers
priority over toolsystem handlers.

Gizmo's still have higher priority, but I'll leave that unless there's a
reason to change.

9 months agoFix T73487: Crash when opening filebrowser while error is displayed
Julian Eisel [Wed, 29 Jan 2020 14:00:31 +0000 (15:00 +0100)]
Fix T73487: Crash when opening filebrowser while error is displayed

More concretly, the crash would happen if a filebrowser is opened while
an error popup is visisble **in a different window**.

Code assumed the popup to be in the active window/screen, but it may
actually be displayed in a non-active window. Temporarily override
context to ensure this assumption is correct.

9 months agoFix T73188: RenderResult as Camera BG Image
Jeroen Bakker [Mon, 27 Jan 2020 15:28:55 +0000 (16:28 +0100)]
Fix T73188: RenderResult as Camera BG Image

In blender 2.79 you could use a render result as a camera background
image. This is useful during layout/compositing. During Blender 2.80
development there were 2 issues introduced that removed this feature.

* to receive a render result the image required a lock. This lock wasn't passed and therefore no image was read from the result. Generating an GPUTexture from an Blender image also didn't do the locking.
* the iuser->scene field wasn't set what is required for render results.

This change adds an optional `ibuf` parameter to `GPU_texture_from_blender` that can be passed when available.

Reviewed By: fclem, brecht

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

9 months agoIC keymap: Add extend & subtract box selection to animation channel lists
William Reynish [Wed, 29 Jan 2020 14:01:39 +0000 (15:01 +0100)]
IC keymap: Add extend & subtract box selection to animation channel lists

Same as recent change for default keymap

9 months agoUI: Theme tweak to selected animation channels
William Reynish [Wed, 29 Jan 2020 13:22:25 +0000 (14:22 +0100)]
UI: Theme tweak to selected animation channels

We have the problem that it's very hard to see which animation channels are selected. This is a very small tweak to make it more obvious, using the same text highlight color as the Outliner.

Really it should be overhauled to be more exactly like the Outliner, but this is just a quick fix to make it reasonably visible.

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

Reviewed by Julian Eisel

9 months agoKeymap: Add ability to extend or subtract animation channel box selections
William Reynish [Wed, 29 Jan 2020 13:07:26 +0000 (14:07 +0100)]
Keymap: Add ability to extend or subtract animation channel box selections

For some reason this was missing. Seems to be a simple oversight.

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

Reviewed by Julian Eisel

9 months agoMerge branch 'blender-v2.82-release'
Sergey Sharybin [Wed, 29 Jan 2020 12:41:43 +0000 (13:41 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoBuildbot: Increase number of compile thread for Linux Buildbot
Sergey Sharybin [Wed, 29 Jan 2020 12:41:04 +0000 (13:41 +0100)]
Buildbot: Increase number of compile thread for Linux Buildbot

9 months agoFix T73469: OSL: Vector Math Node modulo uses wrong function
Charlie Jolly [Wed, 29 Jan 2020 12:17:58 +0000 (12:17 +0000)]
Fix T73469: OSL: Vector Math Node modulo uses wrong function

This also fixes glsl version of fmod when both inputs are negative.

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

9 months agoApplying patch D6576, more tests for modifiers.
Howard Trickey [Wed, 29 Jan 2020 12:11:42 +0000 (07:11 -0500)]
Applying patch D6576, more tests for modifiers.

Patch from Jesse Y, reviewed by Habib Gahbiche.
Addes tests for modifiers: array, decimiate, mirror, screw, solidify,
subd, and weld.

9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 11:49:18 +0000 (12:49 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoDopesheet: Avoid deselect-all triggering on every box-select
Julian Eisel [Wed, 29 Jan 2020 11:31:33 +0000 (12:31 +0100)]
Dopesheet: Avoid deselect-all triggering on every box-select

This wouldn't only behave glitchy, but break certain copy-paste
workflows. See T70457 for details.

Addresses T70457

9 months agoFix T73014: Marker sync does not work correctly if moving strip so it overlaps anothe...
Philipp Oeser [Fri, 10 Jan 2020 12:33:25 +0000 (13:33 +0100)]
Fix T73014: Marker sync does not work correctly if moving strip so it overlaps another strip

Need to also offset markers in BKE_sequence_base_shuffle_time().
Also clarify/correct related comments.

Maniphest Tasks: T73014

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

9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 10:37:53 +0000 (11:37 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoFix T55622: Proportional editing for Gpencil/Masks in dope sheet not
Philipp Oeser [Tue, 28 Jan 2020 10:54:27 +0000 (11:54 +0100)]
Fix T55622: Proportional editing for Gpencil/Masks in dope sheet not
taking proportional size into account

Transform would always move all keyframes (e.g even when Proportional
size is 0.0).

'calculatePropRatio()' was setting td->factor correctly, but this was
not being considered in 'applyTimeTranslateValue()' if there was no
action [which greasepencil and masks do not have].

Maniphest Tasks: T55622

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

9 months agoFix T73482: Context Menu on any button is broken
Julian Eisel [Wed, 29 Jan 2020 10:11:55 +0000 (11:11 +0100)]
Fix T73482: Context Menu on any button is broken

What I removed here used to be needed in an earlier version of the
patch, to avoid use-after-frees. This is not the case anymore, so it
seems we can remove this.

Generally the context region code is very weak and inconsistent. If
things were done properly, the line I added shouldn't cause issues -
it's logically correct.

Also fixes T73475.

9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 10:19:20 +0000 (11:19 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoFix T67483: Cannot paste on unit-vector uibut
Jacques Lucke [Wed, 29 Jan 2020 10:12:34 +0000 (11:12 +0100)]
Fix T67483: Cannot paste on unit-vector uibut

Reviewers: campbellbarton

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

9 months agoFix T72089: Image Editor - Paint mode, Clone Tool - disfunctional clear
Philipp Oeser [Thu, 5 Dec 2019 00:32:23 +0000 (01:32 +0100)]
Fix T72089: Image Editor - Paint mode, Clone Tool - disfunctional clear
button in the Image slot in the Brush panel

Caused/exposed by rBaf9ca138ba7b
Also relevant was rB828905190e12

Above commits moved the WM_UI_HANDLER_BREAK around so it would not be
returned anymore.
We need WM_UI_HANDLER_BREAK, otherwise we wont get through to to
KM_RELEASE. There are two places that explicitly check for KM_RELEASE
(call to `ui_do_but_extra_operator_icon` in both
`ui_do_but_SEARCH_UNLINK` / `ui_do_button`), and without the above we
only ever get here with KM_PRESS.

This patch restores the behavior regarding WM_UI_HANDLER_BREAK to what
is was before the two culprit commits.

Checked that both this report (T72089) and T69755 are working.

Maniphest Tasks: T72089

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

9 months agoMerge branch 'blender-v2.82-release'
Philipp Oeser [Wed, 29 Jan 2020 09:59:51 +0000 (10:59 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoFix T67654: missing ui refresh when changing active particle system
Philipp Oeser [Tue, 28 Jan 2020 14:19:43 +0000 (15:19 +0100)]
Fix T67654: missing ui refresh when changing active particle system

Since changing the active particle system uses NC_OBJECT | ND_DRAW
for 'RNA_def_property_update()' we need to redraw/refresh
BCONTEXT_PARTICLE in 'buttons_area_listener()' as well.

Maniphest Tasks: T67654

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

9 months agoUI: Enable decorators in NLA Animated Influence and Strip Time panels
William Reynish [Wed, 29 Jan 2020 08:56:07 +0000 (09:56 +0100)]
UI: Enable decorators in NLA Animated Influence and Strip Time panels

Since the whole point of these properties is for them to be animated, enable decorators here for easy keyframing.

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Wed, 29 Jan 2020 06:00:26 +0000 (17:00 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoUI: pose X-ray state wasn't shown in the header
Campbell Barton [Wed, 29 Jan 2020 05:56:21 +0000 (16:56 +1100)]
UI: pose X-ray state wasn't shown in the header

9 months agoUI: Linux Platform File Browser System List
Harley Acheson [Wed, 29 Jan 2020 05:26:02 +0000 (16:26 +1100)]
UI: Linux Platform File Browser System List

Since we can now use separate icons for the items in the File Browser
lists, the following rounds out the "System" list for Linux.

Adds a few more folders that are available in most distributions
at installation, but only if they exist.

9 months agoFix solidify complex fixed thickness on flipped normal boundary
Henrik Dick [Wed, 29 Jan 2020 03:28:03 +0000 (14:28 +1100)]
Fix solidify complex fixed thickness on flipped normal boundary

Fixed thickness with zero offset gave uneven results for complex
solidify cases (3+ faces sharing an edge).

See D6643 for steps to redo the error.

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Wed, 29 Jan 2020 02:02:31 +0000 (13:02 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoUI: hide filter alembic option
Campbell Barton [Wed, 29 Jan 2020 01:59:57 +0000 (12:59 +1100)]
UI: hide filter alembic option

This was showing along side image save options.

9 months agoCleanup: minor style changes, use const vars for bmp.c
Campbell Barton [Wed, 29 Jan 2020 01:52:57 +0000 (12:52 +1100)]
Cleanup: minor style changes, use const vars for bmp.c

9 months agoimbuf: support writing grayscale BMP images
James Fulop [Wed, 29 Jan 2020 01:37:14 +0000 (12:37 +1100)]
imbuf: support writing grayscale BMP images

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Wed, 29 Jan 2020 00:11:40 +0000 (11:11 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoCleanup: revert wrapping from D6692
Campbell Barton [Wed, 29 Jan 2020 00:11:09 +0000 (11:11 +1100)]
Cleanup: revert wrapping from D6692

9 months agoEEVEE: Micro optimize disk light
Clément Foucault [Wed, 29 Jan 2020 00:01:11 +0000 (01:01 +0100)]
EEVEE: Micro optimize disk light

Try to never do operation twice and try to use MADD operations. Even if this
is very unlikely to make any difference, it can help compilers do some
optimization. I did not measure any difference as probes have much higher
impact on render time because of texture lookups.

Note that disk light is currently the most expensive light type so it
does not hurt to micro optimize.

9 months agoFix T67060 EEVEE: Noise caused by disk lights
Clément Foucault [Tue, 28 Jan 2020 23:32:45 +0000 (00:32 +0100)]
Fix T67060 EEVEE: Noise caused by disk lights

This is an issue on some drivers that might output NaN out of sqrt if the
number is infinity.

9 months agoTool System: add shear tool to non-mesh edit-modes
William Reynish [Tue, 28 Jan 2020 23:25:09 +0000 (10:25 +1100)]
Tool System: add shear tool to non-mesh edit-modes

9 months agoUI: Fix typo in tooltip
William Reynish [Tue, 28 Jan 2020 22:17:32 +0000 (23:17 +0100)]
UI: Fix typo in tooltip

9 months agoFix T73433: Transform options (Affect Only) tooltips are confusing
William Reynish [Tue, 28 Jan 2020 22:03:29 +0000 (23:03 +0100)]
Fix T73433: Transform options (Affect Only) tooltips are confusing

Change these to be more descriptive and understandable.

9 months agoFix memory leak of NLA child panel-types
Julian Eisel [Tue, 28 Jan 2020 17:43:41 +0000 (18:43 +0100)]
Fix memory leak of NLA child panel-types

Panel types always need to be registered in the region-panel-types list,
or they won't get free'd.

9 months agoMerge branch 'blender-v2.82-release'
Brecht Van Lommel [Tue, 28 Jan 2020 17:39:58 +0000 (18:39 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoUI: Edit Menu - Undo History List and Operator Polling
Harley Acheson [Tue, 28 Jan 2020 17:33:41 +0000 (09:33 -0800)]
UI: Edit Menu - Undo History List and Operator Polling

Enable and Disable Edit Menu items based on whether those actions are currently applicable.

https://developer.blender.org/D4846

Reviewed by Brecht Van Lommel

9 months agoFix T62730 Overlay: Selected edit hair points highlight is incorrect
Clément Foucault [Tue, 28 Jan 2020 17:28:10 +0000 (18:28 +0100)]
Fix T62730 Overlay: Selected edit hair points highlight is incorrect

This was due to the fact the drawing code was expecting the editpoints
to be equaly spaced. Reuse the code in particle.c to output the select
mask in red color channel of the particle (which is unused in new code).

9 months agoCleanup: fix compiler warnings related to deprecated members
Brecht Van Lommel [Tue, 28 Jan 2020 17:19:44 +0000 (18:19 +0100)]
Cleanup: fix compiler warnings related to deprecated members

For Freestyle, it helps to move the struct copy from C++ to C, where the
compiler knows that copying deprecated members is ok.

9 months agoMerge remote-tracking branch 'origin/blender-v2.82-release'
Sybren A. Stüvel [Tue, 28 Jan 2020 17:24:17 +0000 (18:24 +0100)]
Merge remote-tracking branch 'origin/blender-v2.82-release'

9 months agoUI: Windows Platform File Browser System List
Harley Acheson [Tue, 28 Jan 2020 17:10:50 +0000 (09:10 -0800)]
UI: Windows Platform File Browser System List

Showing Windows special folder locations with icons in File Browser System list.

https://developer.blender.org/D6405

Reviewed by Brecht Van Lommel

9 months agoAlembic depsgraph: explicitly add ANIMATION -> CACHE dependency
Sybren A. Stüvel [Tue, 28 Jan 2020 16:56:53 +0000 (17:56 +0100)]
Alembic depsgraph: explicitly add ANIMATION -> CACHE dependency

This dependency was removed in fd0bc7e002ced8ffd85e9aa3edcae173dbd13392,
as there already were dependencies ANIMATION -> PARAMETERS and
PARAMETERS -> CACHE, making ANIMATION -> CACHE unnecessary.

Upon subsequent inspection, the ANIMATION -> PARAMETERS dependency was
there due to the fallback behaviour in
`RNANodeQuery::construct_node_identifier()`. Now this is no longer
relied upon, and the required relation is made explicit again.

9 months agoFix T72143: editing image frame start/offset does not update in Eevee
Brecht Van Lommel [Tue, 28 Jan 2020 16:48:30 +0000 (17:48 +0100)]
Fix T72143: editing image frame start/offset does not update in Eevee

9 months agoFix T63999: Filepath property won't open filebrowser from a popover
Julian Eisel [Tue, 28 Jan 2020 14:08:26 +0000 (15:08 +0100)]
Fix T63999: Filepath property won't open filebrowser from a popover

To issues caused this:
* The code to launch the filebrowser from a button didn't respect popup
  menus stored in context
* There was actually no popup menu region stored in context for this
  case. Doing so *may* introduce other issues, but the way I did things
  already fixes all issues I've found.

9 months agoFix T72593 Blender crashes when modifier change the material count
Clément Foucault [Tue, 28 Jan 2020 15:39:33 +0000 (16:39 +0100)]
Fix T72593 Blender crashes when modifier change the material count

Instead of changing the modifiers behavior, we make sure to always use
the data->totcol instead of the ob->totcol. Also we centralize getting
this number to avoid future issues.

Fix T72593 Blender crashes when separating mesh
Fix T72017 Crash on set visibility change

9 months agoMerge remote-tracking branch 'origin/blender-v2.82-release'
Sybren A. Stüvel [Tue, 28 Jan 2020 15:34:33 +0000 (16:34 +0100)]
Merge remote-tracking branch 'origin/blender-v2.82-release'

9 months agoFix T72660: Alembic caches are not properly updated by drivers
Sybren A. Stüvel [Tue, 28 Jan 2020 15:15:40 +0000 (16:15 +0100)]
Fix T72660: Alembic caches are not properly updated by drivers

Drivers were not considered when building the dependency graph for
`CacheFile` datablocks.

9 months agoCleanup: reformatted after NULL -> nullptr in depsgraph C++ code
Sybren A. Stüvel [Tue, 28 Jan 2020 15:16:45 +0000 (16:16 +0100)]
Cleanup: reformatted after NULL -> nullptr in depsgraph C++ code

No functional changes.

9 months agoMerge branch 'blender-v2.82-release'
Bastien Montagne [Tue, 28 Jan 2020 15:10:37 +0000 (16:10 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoPartially fix & comment about bad handling of `wrong_id` in `read_libblock()`.
Bastien Montagne [Tue, 28 Jan 2020 14:46:51 +0000 (15:46 +0100)]
Partially fix & comment about bad handling of `wrong_id` in `read_libblock()`.

Not fully fixing it for now since I do not see an easy way to remove freed
pointer from libmap, and it does not seem to be an actual, practical
issue currently, but eeek...

9 months agoFix T67006: Crash RenderEngine with preview
Jeroen Bakker [Mon, 20 Jan 2020 10:30:19 +0000 (11:30 +0100)]
Fix T67006: Crash RenderEngine with preview

In a minimal render engine blender crashes as it cannot create a preview
of the material yet. This patch adds a failsafe test for this specific
scenario.

Reviewed By: brecht

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

9 months agoFix T54422 FluidSim: ColorRamp set position does not update the viewport
Clément Foucault [Tue, 28 Jan 2020 14:54:07 +0000 (15:54 +0100)]
Fix T54422 FluidSim: ColorRamp set position does not update the viewport

This was a missing notification because of wrong type. Also remove
the id tag as the changes are still picked up by workbench and does not
affect geometry or the particle system directly.

9 months agoDisable some longer running tests from previous commit.
Howard Trickey [Tue, 28 Jan 2020 14:52:45 +0000 (09:52 -0500)]
Disable some longer running tests from previous commit.

9 months agoFix T73271, Delaunay Triangulation not robust enough.
Howard Trickey [Tue, 28 Jan 2020 14:42:40 +0000 (09:42 -0500)]
Fix T73271, Delaunay Triangulation not robust enough.

A big rework of the code now uses exact predicates for orientation
and incircle. Also switched the main algorithm to use a faster
divide and conquer algorithm, which is possible with the exact
predicates.

9 months agoCleanup: changed NULL to nullptr in depsgraph C++ code
Sybren A. Stüvel [Tue, 28 Jan 2020 13:50:13 +0000 (14:50 +0100)]
Cleanup: changed NULL to nullptr in depsgraph C++ code

No functional changes.

9 months agoMerge branch 'blender-v2.82-release'
Brecht Van Lommel [Tue, 28 Jan 2020 13:45:19 +0000 (14:45 +0100)]
Merge branch 'blender-v2.82-release'

9 months agoUI: better preserve icon sharpness at different UI scales
Yevgeny Makarov [Tue, 28 Jan 2020 13:30:58 +0000 (14:30 +0100)]
UI: better preserve icon sharpness at different UI scales

This changes the GL_TEXTURE_MIN_FILTER parameter from GL_LINEAR_MIPMAP_LINEAR
to GL_LINEAR_MIPMAP_NEAREST. It gives a sharper result, since with these
settings only down scaling is used.

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

9 months agoFix T66699 EEVEE: Material Preview "World" option doesn't work
Clément Foucault [Tue, 28 Jan 2020 13:34:35 +0000 (14:34 +0100)]
Fix T66699 EEVEE: Material Preview "World" option doesn't work

Just hide the button for now.

9 months agoUI: NLA Editor Sidebar overhaul
William Reynish [Tue, 28 Jan 2020 12:13:45 +0000 (13:13 +0100)]
UI: NLA Editor Sidebar overhaul

The NLA Editor sidebar is currently out of step with the rest of Blender, and in particular the Sequencer, which offers similar features and functionality. This patch makes a number of UI layout changes to make it fit in.

  - Remove Active Track panel, since the track names can just be edited in the source list on the left
  - Rejiggered the categories to be more understandable. 'Strip' includes settings for the current strip, and 'Edited Action' includes settings for the action that is currently being edited
  - Use single column split layout
  - Use name + mute toggle configuration like in the Sequencer
  - Fix an issue with the theme, where the sidebar background was too dark, breaking the bright -> dark hierarchical logic
  - Use sub-panels for animated strip properties controls

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

Reviewed by Brecht van Lommel

9 months agomacOS: add trackpad smart zoom event support
Yevgeny Makarov [Tue, 28 Jan 2020 10:29:38 +0000 (11:29 +0100)]
macOS: add trackpad smart zoom event support

This is done with two-finger double tap on trackpads, and is usually used to
zoom into an element under the cursor.

It can now be used for toggling local view in the 3D viewport.

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

9 months agoUI: show better volume names and icons in file browser on macOS
Yevgeny Makarov [Tue, 28 Jan 2020 10:10:35 +0000 (11:10 +0100)]
UI: show better volume names and icons in file browser on macOS

Now it shows "Macintosh HD" instead of "/", and a different icon for
removable and network drives.

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

9 months agoLinux: update EGL context code to fully work, including offscreen rendering
Christian Rauch [Tue, 28 Jan 2020 09:32:29 +0000 (10:32 +0100)]
Linux: update EGL context code to fully work, including offscreen rendering

This is a step towards Wayland and headless rendering support, using EGL
instead of GLX. The EGL backend is not enabled by default, it can be tested
using WITH_GL_EGL=ON.

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

9 months agoFix T65350: scrolling popovers with trackpad not working on macOS
Yevgeny Makarov [Tue, 28 Jan 2020 09:27:40 +0000 (10:27 +0100)]
Fix T65350: scrolling popovers with trackpad not working on macOS

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

9 months agoUI: Empty image Properties layout tweaks
William Reynish [Tue, 28 Jan 2020 09:25:46 +0000 (10:25 +0100)]
UI: Empty image Properties layout tweaks

  - Enable decorators
  - Use sub-panel for transparency

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

Reviewed by Brecht van Lommel

9 months agoFix: icon alpha theme option does not affect toolbar icons correctly
Yevgeny Makarov [Tue, 28 Jan 2020 09:13:53 +0000 (10:13 +0100)]
Fix: icon alpha theme option does not affect toolbar icons correctly

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

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Tue, 28 Jan 2020 05:46:09 +0000 (16:46 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoFix T68960: Crash loading app-template keymap
Campbell Barton [Tue, 28 Jan 2020 05:44:24 +0000 (16:44 +1100)]
Fix T68960: Crash loading app-template keymap

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Tue, 28 Jan 2020 05:22:37 +0000 (16:22 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoError in last comment (redundant assignment)
Campbell Barton [Tue, 28 Jan 2020 05:20:44 +0000 (16:20 +1100)]
Error in last comment (redundant assignment)

9 months agoMerge branch 'blender-v2.82-release'
Campbell Barton [Tue, 28 Jan 2020 05:15:38 +0000 (16:15 +1100)]
Merge branch 'blender-v2.82-release'

9 months agoFix T69213: App-Template doesn't run scripts in BLENDER_USER_SCRIPTS
Campbell Barton [Tue, 28 Jan 2020 03:01:18 +0000 (14:01 +1100)]
Fix T69213: App-Template doesn't run scripts in BLENDER_USER_SCRIPTS

9 months agoCleanup: warnings, clang-format
Campbell Barton [Tue, 28 Jan 2020 00:42:24 +0000 (11:42 +1100)]
Cleanup: warnings, clang-format

9 months agobmesh_intersect_edges: Don't detect faces if an edge already exists
mano-wii [Mon, 27 Jan 2020 21:31:15 +0000 (18:31 -0300)]
bmesh_intersect_edges: Don't detect faces if an edge already exists

For optimization.

9 months agobmesh_intersect_edges: Improve detection of the best_face
mano-wii [Mon, 27 Jan 2020 20:43:12 +0000 (17:43 -0300)]
bmesh_intersect_edges: Improve detection of the best_face

`lambda_a` made it more restricted than it should be.

9 months agobmesh_intersect_edges: Fix asserts
mano-wii [Mon, 27 Jan 2020 20:29:05 +0000 (17:29 -0300)]
bmesh_intersect_edges: Fix asserts

9 months agoFix T67552 EEVEE: Vector Curves node clamps maximum input value at 1.0
Clément Foucault [Mon, 27 Jan 2020 18:48:31 +0000 (19:48 +0100)]
Fix T67552 EEVEE: Vector Curves node clamps maximum input value at 1.0

9 months agoFix T69070 EEVEE: Volume shader glitch if object as axis with 0.0 scale
Clément Foucault [Mon, 27 Jan 2020 16:31:12 +0000 (17:31 +0100)]
Fix T69070 EEVEE: Volume shader glitch if object as axis with 0.0 scale

9 months agoUI: Win32 - Restore Minimized App On WM_Close
Harley Acheson [Mon, 27 Jan 2020 18:41:39 +0000 (10:41 -0800)]
UI: Win32 - Restore Minimized App On WM_Close

Changes needed for Windows 10 to restore and show close dialog from minimized state.

https://developer.blender.org/D5107

Reviewed by Brecht Van Lommel

9 months agoMerge remote-tracking branch 'origin/blender-v2.82-release'
Ray Molenkamp [Mon, 27 Jan 2020 17:49:18 +0000 (10:49 -0700)]
Merge remote-tracking branch 'origin/blender-v2.82-release'

9 months agoFix: Building without WITH_MOD_FLUID
Ray Molenkamp [Mon, 27 Jan 2020 17:46:55 +0000 (10:46 -0700)]
Fix: Building without WITH_MOD_FLUID

When MOD_FLUID was off and WITH_CYCLES was on there was a build error.

Reviewed By: brecht

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

9 months agoMerge branch 'blender-v2.82-release'
mano-wii [Mon, 27 Jan 2020 17:17:51 +0000 (14:17 -0300)]
Merge branch 'blender-v2.82-release'

9 months agoFix undefined behavior in tangent space computation
Simon G [Mon, 27 Jan 2020 16:53:49 +0000 (17:53 +0100)]
Fix undefined behavior in tangent space computation

Use an improved implementation for circular shift.

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

9 months agoFix particle instance modifier generating NaN polygons in some cases
Miguel Pozo [Mon, 27 Jan 2020 16:36:50 +0000 (17:36 +0100)]
Fix particle instance modifier generating NaN polygons in some cases

Particles that don't exist should not be used, for example due to a
density texture.

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