2 months agoGPencil: Split Curve geometry functions to new file
Antonio Vazquez [Wed, 6 May 2020 16:13:59 +0000 (18:13 +0200)]
GPencil: Split Curve geometry functions to new file

This prepare the code for future curve editors

2 months agoFix build error after rBb9bb752e0e852d
Hans Goudey [Wed, 6 May 2020 14:26:59 +0000 (10:26 -0400)]
Fix build error after rBb9bb752e0e852d

This looks like a misplaced variable definition, which is then used
out of scope later.

2 months agoMerge branch 'blender-v2.83-release'
Germano Cavalcante [Wed, 6 May 2020 14:13:50 +0000 (11:13 -0300)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76440: Follow Track -> Constraint to F-Curve has no effect
Germano Cavalcante [Wed, 6 May 2020 14:11:32 +0000 (11:11 -0300)]
Fix T76440: Follow Track -> Constraint to F-Curve has no effect

Differential Revision:

2 months agoAnnotations: Add different arrow styles for line tool
Juanfran Matheu [Wed, 6 May 2020 09:38:32 +0000 (11:38 +0200)]
Annotations: Add different arrow styles for line tool

This patch adds different kind of shapes/styles for the line extremes while using the annotation line tool.

Current Styles: (following @mendio mockup)
  - Arrow (closed arrow)
  - Open Arrow
  - Segment
  - Square
For future it would be great to have icons, it would be more intuitive (and less space) with previews of what each end / start of line does, like the google slides one as reference:


Reviewed By: #grease_pencil, antoniov, HooglyBoogly

Differential Revision:

2 months agoFix expanding time-line menus when searching
Campbell Barton [Wed, 6 May 2020 12:52:52 +0000 (22:52 +1000)]
Fix expanding time-line menus when searching

2 months agoFix error in last commit
Campbell Barton [Wed, 6 May 2020 12:52:10 +0000 (22:52 +1000)]
Fix error in last commit

2 months agoUI: search menus from all visible areas when using the edit menu
Campbell Barton [Wed, 6 May 2020 12:32:03 +0000 (22:32 +1000)]
UI: search menus from all visible areas when using the edit menu

Without this, only actions in the top-bar were visible
which isn't very useful.

Now menus are extracted from the areas used in the active window,
unless this search is activated by the key shortcut,
in this case the current area is used.

2 months agoDepsgraph: Fix memory leak
Jacques Lucke [Wed, 6 May 2020 12:01:44 +0000 (14:01 +0200)]
Depsgraph: Fix memory leak

I introduced the issue in rBb21a3e77027.

2 months agoMerge branch 'blender-v2.83-release'
Sebastián Barschkis [Wed, 6 May 2020 11:25:48 +0000 (13:25 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76430: Quick smoke not rendering Cycles and Eevee
Sebastián Barschkis [Wed, 6 May 2020 11:24:53 +0000 (13:24 +0200)]
Fix T76430: Quick smoke not rendering Cycles and Eevee

Temporary fix that will skip cache invalidation from flow / effector objects.

2 months agoMerge branch 'blender-v2.83-release'
Philipp Oeser [Wed, 6 May 2020 10:40:25 +0000 (12:40 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76416: Armature Deform parenting option doesn't work with Grease Pencil objects
Philipp Oeser [Tue, 5 May 2020 11:53:47 +0000 (13:53 +0200)]
Fix T76416: Armature Deform parenting option doesn't work with Grease Pencil objects

If we parent with type `PAR_ARMATURE` (where vertexgroups are already
set up and named correctly according to the corresponding bones), we
still need an armature modifier. This just wasnt added.

In contrast to meshes [which add their armature modifier early in
`ED_object_parent_set`], grease pencil used to do this (adding the
armature modifier) in `ED_gpencil_add_armature_weights`.

Now split ED_gpencil_add_armature_weights in two:
- ED_gpencil_add_armature
- ED_gpencil_add_armature_weights (which calls ED_gpencil_add_armature)
- use ED_gpencil_add_armature for the PAR_ARMATURE case

Maniphest Tasks: T76416

Differential Revision:

2 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Wed, 6 May 2020 10:22:25 +0000 (12:22 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76470: GPencil sequence interpolate crash when not enough frames in layer
Antonio Vazquez [Wed, 6 May 2020 10:21:53 +0000 (12:21 +0200)]
Fix T76470: GPencil sequence interpolate crash when not enough frames in layer

If try to interpolate a layer without an active a next frame, the interpolation failed.

Now, check for both frames before start interpolation.

2 months agoCleanup: Remove unused parameter
Antonio Vazquez [Wed, 6 May 2020 08:18:48 +0000 (10:18 +0200)]
Cleanup: Remove unused parameter

2 months agoCleanup: Remove old invalid comment
Antonio Vazquez [Wed, 6 May 2020 08:15:02 +0000 (10:15 +0200)]
Cleanup: Remove old invalid comment

2 months agoCleanup: move search templates into their own files
Campbell Barton [Wed, 6 May 2020 05:51:23 +0000 (15:51 +1000)]
Cleanup: move search templates into their own files

2 months agoCleanup: restore text alignment lost by clang-format
Campbell Barton [Wed, 6 May 2020 05:38:32 +0000 (15:38 +1000)]
Cleanup: restore text alignment lost by clang-format

2 months agoCleanup: use doxy sections
Campbell Barton [Wed, 6 May 2020 02:45:04 +0000 (12:45 +1000)]
Cleanup: use doxy sections

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Wed, 6 May 2020 02:26:01 +0000 (12:26 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoCleanup: warning
Campbell Barton [Wed, 6 May 2020 02:25:51 +0000 (12:25 +1000)]
Cleanup: warning

2 months agoFix T76445: Selecting an object no longer cycles past the active
Campbell Barton [Wed, 6 May 2020 02:18:18 +0000 (12:18 +1000)]
Fix T76445: Selecting an object no longer cycles past the active

In 2.79, selecting an object would cycle past the first object
even if selection cycling wasn't in use.

Restore this behavior as it wasn't intentionally removed
and it's useful to be able to select an object behind the
current active object.

2 months agoFix num-pad access on wayland
Campbell Barton [Wed, 6 May 2020 00:42:57 +0000 (10:42 +1000)]
Fix num-pad access on wayland

Always interpret keypad keys as if numpad is enabled,
this matches other platforms.

Also add missing quote key.

2 months agoFix T76429: GHOST/Wayland event's don't correspond to physical keys
Christian Rauch [Wed, 6 May 2020 00:20:32 +0000 (10:20 +1000)]
Fix T76429: GHOST/Wayland event's don't correspond to physical keys

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 22:30:37 +0000 (08:30 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 22:30:31 +0000 (08:30 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76392: Crash loading app-template with Load UI disabled
Campbell Barton [Tue, 5 May 2020 22:05:19 +0000 (08:05 +1000)]
Fix T76392: Crash loading app-template with Load UI disabled

2 months agoCleanup: warnings
Campbell Barton [Tue, 5 May 2020 22:17:27 +0000 (08:17 +1000)]
Cleanup: warnings

2 months agoFix wrong XR notifier bit value
Julian Eisel [Tue, 5 May 2020 20:53:18 +0000 (22:53 +0200)]
Fix wrong XR notifier bit value

2 months agoVarious fixes, cleanup and improvements to i18n module.
Bastien Montagne [Tue, 5 May 2020 16:04:22 +0000 (18:04 +0200)]
Various fixes, cleanup and improvements to i18n module.

* Remove multi-processing in messages class update, was no giving much
  speedup if any at all.
* Remove some debug prints.
* Make messages class pickleable.

* Filter better actual setting values from Settings class.
* Make settings pickleable.

All this will allow to use multi-processing in the i18n addon itself.

2 months agoMerge branch 'blender-v2.83-release'
Pablo Dobarro [Tue, 5 May 2020 15:16:27 +0000 (17:16 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix T75743: Implement restore for brushes that modify their own data
Pablo Dobarro [Wed, 15 Apr 2020 18:49:53 +0000 (20:49 +0200)]
Fix T75743: Implement restore for brushes that modify their own data

This implements the restore function for Draw Face Sets and Layer, which
don't affect coordinates or masks directly. This is needed for the
anchored and dot brush strokes.

Layer frees the current displacement and a new one is created on each
stroke sample. Draw Face Sets copies the data back from the first undo
node to the mesh datalayer.

Also fixes T75727

Reviewed By: jbakker

Maniphest Tasks: T75727

Differential Revision:

2 months agoFix T76414: crash using Python module that uses NVRTC
Brecht Van Lommel [Tue, 5 May 2020 14:01:18 +0000 (16:01 +0200)]
Fix T76414: crash using Python module that uses NVRTC

Hide the nvrtc* symbols just like we did for cu* already.

2 months agoUI: Gray out shortcut indicator in search menus
Julian Eisel [Tue, 5 May 2020 13:29:49 +0000 (15:29 +0200)]
UI: Gray out shortcut indicator in search menus

In other menus we already gray out the shortcut string, just in the search menu
that wasn't the case.

We may also want to draw other hints like this in the future, e.g. the library
name for linked data-blocks in search menus. And then it's also nicer to have
it grayed out to separate it visually from the data-block name.

2 months agoMerge branch 'blender-v2.83-release'
Brecht Van Lommel [Tue, 5 May 2020 13:14:09 +0000 (15:14 +0200)]
Merge branch 'blender-v2.83-release'

2 months agoFix build with precompiled libraries picking up OpenEXR from
Brecht Van Lommel [Tue, 5 May 2020 10:39:02 +0000 (12:39 +0200)]
Fix build with precompiled libraries picking up OpenEXR from

2 months agoCycles: mark CUDA 10.2 as officially supported
Brecht Van Lommel [Tue, 5 May 2020 10:59:25 +0000 (12:59 +0200)]
Cycles: mark CUDA 10.2 as officially supported

It appears to work fine after a recent bugfix and testing for the past few

2 months agoTasks: support build with TBB version 2017
Brecht Van Lommel [Mon, 4 May 2020 21:59:58 +0000 (23:59 +0200)]
Tasks: support build with TBB version 2017

Make the task pool implementation compatible with older versions that are
used by

2 months agoBuild: print TBB ON/OFF state on first configure, cleanup old TBB logic
Brecht Van Lommel [Mon, 4 May 2020 21:58:48 +0000 (23:58 +0200)]
Build: print TBB ON/OFF state on first configure, cleanup old TBB logic

2 months agoFix T76417: Gpencil Join did not supported weight join
Antonio Vazquez [Tue, 5 May 2020 10:51:39 +0000 (12:51 +0200)]
Fix T76417: Gpencil Join did not supported weight join

Now the operator keep the weights of all strokes when joining.

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 09:22:31 +0000 (19:22 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76402: App templates prevent factory settings theme reset
Campbell Barton [Tue, 5 May 2020 09:09:21 +0000 (19:09 +1000)]
Fix T76402: App templates prevent factory settings theme reset

2 months agoCleanup: use int instead of short for lasso array length
Campbell Barton [Tue, 5 May 2020 06:12:36 +0000 (16:12 +1000)]
Cleanup: use int instead of short for lasso array length

There was no reason to use a short here,
this was just a convention from existing code.

2 months agoCleanup: clang-format
Campbell Barton [Tue, 5 May 2020 06:06:12 +0000 (16:06 +1000)]
Cleanup: clang-format

Minor difference caused by clang-format v10.0

2 months agoCleanup: warnings
Campbell Barton [Tue, 5 May 2020 06:05:51 +0000 (16:05 +1000)]
Cleanup: warnings

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 03:47:10 +0000 (13:47 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 03:47:05 +0000 (13:47 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoMerge branch 'blender-v2.83-release'
Campbell Barton [Tue, 5 May 2020 03:46:58 +0000 (13:46 +1000)]
Merge branch 'blender-v2.83-release'

2 months agoFix T76224: Grid fill offset doesn't work
Campbell Barton [Tue, 5 May 2020 03:13:48 +0000 (13:13 +1000)]
Fix T76224: Grid fill offset doesn't work

Regression in own recent commit b1037aa88fedb.

2 months agoFix T76318: lower part of new preferences window does not work
Brecht Van Lommel [Mon, 4 May 2020 21:58:58 +0000 (23:58 +0200)]
Fix T76318: lower part of new preferences window does not work

Regression after recent changes. The precise cause is unclear to me, but
we do not need to update the size right after creating a new window.

3 months agoFix Cycles Python error when device name is not a valid UTF-8 string
Brecht Van Lommel [Mon, 4 May 2020 18:02:08 +0000 (20:02 +0200)]
Fix Cycles Python error when device name is not a valid UTF-8 string

This may fix or help diagnose T76378.

3 months agoMerge branch 'blender-v2.83-release'
Sebastián Barschkis [Mon, 4 May 2020 16:18:15 +0000 (18:18 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoFix T75883: Smoke simulations with Adaptive Domain broken for 'Final' bakes with...
Sebastián Barschkis [Mon, 4 May 2020 16:16:09 +0000 (18:16 +0200)]
Fix T75883: Smoke simulations with Adaptive Domain broken for 'Final' bakes with OpenVDB in 2.83

Config files always use the .uni extenstion.

3 months agoMerge remote-tracking branch 'origin/blender-v2.83-release'
Sybren A. Stüvel [Mon, 4 May 2020 16:08:17 +0000 (18:08 +0200)]
Merge remote-tracking branch 'origin/blender-v2.83-release'

3 months agoFix T76355: USD test fails in debug mode
Sybren A. Stüvel [Mon, 4 May 2020 16:03:19 +0000 (18:03 +0200)]
Fix T76355: USD test fails in debug mode

Thanks @LazyDodo for the help!

No functional changes.

3 months agoMerge branch 'blender-v2.83-release'
Sergey Sharybin [Mon, 4 May 2020 15:49:49 +0000 (17:49 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoFix T76251: Animated procedural texture does not influence particle system
Luc Revardel [Mon, 4 May 2020 15:47:08 +0000 (17:47 +0200)]
Fix T76251: Animated procedural texture does not influence particle system

Dependancy missing while building depsgraph for particle systems.
fix: adding a relation texture->particles when texture has animation data.

Reviewed By: sergey

Maniphest Tasks: T76251

Differential Revision:

3 months agoMerge branch 'blender-v2.83-release'
Sergey Sharybin [Mon, 4 May 2020 15:40:57 +0000 (17:40 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoRevert "Fix T76313: Redo in Multires doesn't bring back stroke made after a subdivide"
Sergey Sharybin [Mon, 4 May 2020 15:38:15 +0000 (17:38 +0200)]
Revert "Fix T76313: Redo in Multires doesn't bring back stroke made after a subdivide"

The fix was actually missing few bits:

- Firstly, the operator itself is not to do UNDO push
- Secondly, multires sculpt/top level are not pushed to the undo
  node, so undo can not happen reliably.

It should be possible to incorporate some of the work from WIP patch
for propagation undo, but it needs more work.

Reverting code base to the previous state, since currently things
are actually a bit more confusing then they used to be.

This reverts commit 0c928087a3c8a4f758a907fe3096346f88d678c9.

3 months agoMerge branch 'blender-v2.83-release'
Sergey Sharybin [Mon, 4 May 2020 15:17:38 +0000 (17:17 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoAdd StringMap.LookupOrAdd and StringMap.LookupOrAddDefault
Jacques Lucke [Mon, 4 May 2020 15:12:12 +0000 (17:12 +0200)]
Add StringMap.LookupOrAdd and StringMap.LookupOrAddDefault

3 months agoFix T76313: Redo in Multires doesn't bring back stroke made after a subdivide
Sergey Sharybin [Mon, 4 May 2020 13:59:32 +0000 (15:59 +0200)]
Fix T76313: Redo in Multires doesn't bring back stroke made after a subdivide

Differential Revision:

3 months agoWindows: Silence LNK4099 warning.
Ray Molenkamp [Mon, 4 May 2020 14:29:48 +0000 (08:29 -0600)]
Windows: Silence LNK4099 warning.

Ever since debug symbols were added for release builds the linker
has been on the chatty side about symbols being missing for our
binary libs.

There's currently no plans to supply those, so best for the linker
not to warn us about them.

3 months agoMerge branch 'blender-v2.83-release'
Hans Goudey [Mon, 4 May 2020 14:21:07 +0000 (10:21 -0400)]
Merge branch 'blender-v2.83-release'

3 months agoFix T76062: Interpolate Radius in Curve Subdivide Special Case
Hans Goudey [Fri, 1 May 2020 21:49:36 +0000 (16:49 -0500)]
Fix T76062: Interpolate Radius in Curve Subdivide Special Case

Differential Revision:

3 months agoCleanup: USD tests, use `EXPECT_LT` and `EXPECT_FALSE` where appropriate
Sybren A. Stüvel [Mon, 4 May 2020 14:17:54 +0000 (16:17 +0200)]
Cleanup: USD tests, use `EXPECT_LT` and `EXPECT_FALSE` where appropriate

Unfortunately there is no `EXPECT_NOT_LT`; as the `HierarchyContext` only
has an `operator<()` function, testing for `(A < B) == false` is different
than simply testing `(A >= B)`.

No functional changes.

3 months agoGPU: Set Default Buffer Size Immediate Mode
Jeroen Bakker [Mon, 4 May 2020 14:00:47 +0000 (16:00 +0200)]
GPU: Set Default Buffer Size Immediate Mode

We set the default buffer size for strict buffers to 0. This increased
the performance on intel but reduced the performance on old AMD cards.
This patch sets back the default buffer size for strict buffers. After
testing I didn't detect a slow-down anymore.

Note that today new firmwares were pushed to the device what might fix
some issues.

3 months agoAdded missing return statement
Sybren A. Stüvel [Mon, 4 May 2020 13:47:23 +0000 (15:47 +0200)]
Added missing return statement

Every code path through the `fcurve_eval_keyframes_interpolate()` function
has a valid `return` statement, but in debug mode GCC still doesn't like it.

3 months agoTweak the pressure/size dynamic range of Clay Strips
Pablo Dobarro [Fri, 24 Apr 2020 23:07:09 +0000 (01:07 +0200)]
Tweak the pressure/size dynamic range of Clay Strips

The current clay strips brush has a huge dynamic range which is nice for
certain effects, but in some pen tablets it is quite hard to control on
the higher values and it ends up producing unwanted artifacts. This
changes the input curves a bit in an attempt to make it more

After adding a brush management system I will expose all these values to
be configurable per brush (the round version of clay strips is a little
bit better with different curves, but that is something that we can't
support now), but for now this default are probably safer.

Reviewed By: jbakker

Differential Revision:

3 months agoMerge remote-tracking branch 'origin/blender-v2.83-release'
Sybren A. Stüvel [Mon, 4 May 2020 13:30:17 +0000 (15:30 +0200)]
Merge remote-tracking branch 'origin/blender-v2.83-release'

3 months agoT76121 Driver depending on animated modifier property does not update
Sybren A. Stüvel [Mon, 4 May 2020 11:43:15 +0000 (13:43 +0200)]
T76121 Driver depending on animated modifier property does not update

This fixes an issue where an animated modifier property that's used as
variable in a driver wouldn't animate that driver's value.

Building the relations for the driver target creates the relation
`PARAMETERS_EVAL` → `DRIVER(variable)`. Building the relations for the
FCurve targeting the modifier property creates the relation

This means that there is NOT a relation `ANIMATION_EXIT` →
`PARAMETERS_EVAL`, and as a result, the driver is not properly updated
when its variable reads animated data. This is resolved in this commit
by adding the missing relation.

Differential Revision:

3 months agoFix T76399: Wrong API docs for
Jacques Lucke [Mon, 4 May 2020 12:33:48 +0000 (14:33 +0200)]
Fix T76399: Wrong API docs for

3 months agoRevert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"
mano-wii [Mon, 4 May 2020 11:40:45 +0000 (08:40 -0300)]
Revert "Possible fix for T76113: Use GL_STATIC_DRAW in immBegin"

This reverts commit 7df51ca11a227b5e51290f8dc976972a01db5d81.
Did not solve the main problem.

3 months agoFluid: Fix for refactor 99ee1de094a1
Sebastián Barschkis [Mon, 4 May 2020 11:36:23 +0000 (13:36 +0200)]
Fluid: Fix for refactor 99ee1de094a1

Use booleans instead of 0 / 1 in Python

3 months agoNodes: add Combine Strings and Group Instance ID node UIs
Jacques Lucke [Mon, 4 May 2020 10:49:25 +0000 (12:49 +0200)]
Nodes: add Combine Strings and Group Instance ID node UIs

Reviewers: brecht

Differential Revision:

3 months agoModifiers: Rename Simulate category to Physics
Jacques Lucke [Mon, 4 May 2020 10:24:12 +0000 (12:24 +0200)]
Modifiers: Rename Simulate category to Physics

While the name "Simulate" might be more accurate, there is
a naming collision with the new modifier added in D7549.
Therefore, we decided to rename the category for now.

3 months agoCleanup: rename mcords to mcoords
Campbell Barton [Mon, 4 May 2020 09:50:06 +0000 (19:50 +1000)]
Cleanup: rename mcords to mcoords

- 'coords' is an abbreviation for coordinates, not 'cords'.
- Rename 'moves' to 'coords_len'.

3 months agoCleanup: pass ARegion, View2D as const
Campbell Barton [Mon, 4 May 2020 09:32:59 +0000 (19:32 +1000)]
Cleanup: pass ARegion, View2D as const

3 months agoUV: support edge-selection for box/circle/lasso select
Campbell Barton [Mon, 4 May 2020 09:01:00 +0000 (19:01 +1000)]
UV: support edge-selection for box/circle/lasso select

3 months agoBLI: simplify memory management in OpenAddressingArray
Jacques Lucke [Mon, 4 May 2020 09:11:46 +0000 (11:11 +0200)]
BLI: simplify memory management in OpenAddressingArray

3 months agoCleanup: rename uv_sel_co_from_eve, pass in UV layer offset
Campbell Barton [Mon, 4 May 2020 07:08:57 +0000 (17:08 +1000)]
Cleanup: rename uv_sel_co_from_eve, pass in UV layer offset

3 months agoCleanup: replace UV_SELECT_ISLAND_LIMIT macro with a function
Campbell Barton [Mon, 4 May 2020 06:59:04 +0000 (16:59 +1000)]
Cleanup: replace UV_SELECT_ISLAND_LIMIT macro with a function

Also make return argument last for uvedit_pixel_to_float.

3 months agoCleanup: split selection operations into uvedit_select.c
Campbell Barton [Mon, 4 May 2020 06:39:59 +0000 (16:39 +1000)]
Cleanup: split selection operations into uvedit_select.c

3 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Mon, 4 May 2020 06:24:08 +0000 (08:24 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoGPencil: Fix Chisel Brush pressure
Antonio Vazquez [Mon, 4 May 2020 06:23:27 +0000 (08:23 +0200)]
GPencil: Fix Chisel Brush pressure

In previous commit the pressure was disabled by error.

3 months agoCleanup: use ELEM macro
Campbell Barton [Mon, 4 May 2020 04:03:41 +0000 (14:03 +1000)]
Cleanup: use ELEM macro

3 months agoWindows: Move tbb to being dynamic library
Ray Molenkamp [Sun, 3 May 2020 22:25:56 +0000 (16:25 -0600)]
Windows: Move tbb to being dynamic library

Static tbb has always been frowned upon [1] sofar it has worked for us but
given our reliance on tbb is about to increase (D7475), I'd like to move the library
to more supported configuration. Which means moving it to be a dynamic library

The libs part of this change is in rBL62416

Reviewed By: Brecht

Differential Revision:

3 months agoFluid: Cleanup use of std in MANTA wrapper
Sebastián Barschkis [Sun, 3 May 2020 19:10:38 +0000 (21:10 +0200)]
Fluid: Cleanup use of std in MANTA wrapper

Moved std namespace to beginning of class.

3 months agoFluid: Cleanup in main MANTA wrapper
Sebastián Barschkis [Sun, 3 May 2020 16:52:48 +0000 (18:52 +0200)]
Fluid: Cleanup in main MANTA wrapper

Use shorter variable names.

3 months agoFluid: Refactored 'Modifier Data to Python' value transfer function
Sebastián Barschkis [Sun, 3 May 2020 16:33:34 +0000 (18:33 +0200)]
Fluid: Refactored 'Modifier Data to Python' value transfer function

This function needed a bigger cleanup, especially after the problem from T76276.

3 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sun, 3 May 2020 18:42:37 +0000 (20:42 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoGPencil: Hide Canvas Grid when Surface or Stroke mode is enabled
Antonio Vazquez [Sun, 3 May 2020 18:42:18 +0000 (20:42 +0200)]
GPencil: Hide Canvas Grid when Surface or Stroke mode is enabled

This was introduced by error during refactor. The grid must not be visible in these modes.

3 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sun, 3 May 2020 18:35:30 +0000 (20:35 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoFix T76364: GPencil grid is not located in the right place
Antonio Vazquez [Sun, 3 May 2020 18:34:48 +0000 (20:34 +0200)]
Fix T76364: GPencil grid is not located in the right place

During the refactor, the location of the grid was broken. Now, the grid is in Object origin or 3D cursor origin as it was in 2.82.

3 months agoWindows: Replace BLI_File* calls with system calls in system_win32.c
Ray Molenkamp [Sun, 3 May 2020 18:07:22 +0000 (12:07 -0600)]
Windows: Replace BLI_File* calls with system calls in system_win32.c

Using BLI calls in this file triggered a condition where
poorly modelled dependencies in cmake (ie bf_blenlib using
zlib headers but not linking the libraries) leading to
linker error in debug builds of some of the tests.

This diff sidesteps the dependencies issue by using native
calls rather than BLI calls to check if a file exists and
what its size is. Effectively sweeping the issue right back
under the rug where I found it.

The best solution would be to audit all libraries and ensure
they have proper link requirements set, but that requires
significantly more time than I have available right now.
(zlib in blenlib was one of them and would have been easy
to fix, but there were others that required more work)

The alternative is tests that fail to build which worse.

I'll revisit this and fix it properly but for now this will
have to do.

3 months agoAudaspace: update from upstream
Jörg Müller [Sun, 3 May 2020 13:25:52 +0000 (15:25 +0200)]
Audaspace: update from upstream

- Changing API for time values from float to double for better precision.
- Fixing minor mistakes in the documentation.
- Fixing minor unnecessary large memory allocation.

3 months agoMerge branch 'blender-v2.83-release'
Antonio Vazquez [Sun, 3 May 2020 11:34:55 +0000 (13:34 +0200)]
Merge branch 'blender-v2.83-release'

3 months agoGPencil: More changes to improve Chisel brush
Antonio Vazquez [Sun, 3 May 2020 11:33:58 +0000 (13:33 +0200)]
GPencil: More changes to improve Chisel brush

More small tweaks to get the right "feeling" when drawing.

The defaults has been tested by @pepeland.

3 months agoGHOST: cleanup platform checks, fix Wayland + X11
Campbell Barton [Sun, 3 May 2020 10:22:21 +0000 (20:22 +1000)]
GHOST: cleanup platform checks, fix Wayland + X11

- Building with Wayland + X11 missed an exception include.
- Move HEADLESS check first, since it's the same on all platforms.