4 months agoBLI_string: Add STR_ELEM macro
Campbell Barton [Wed, 10 Apr 2019 07:24:40 +0000 (09:24 +0200)]
BLI_string: Add STR_ELEM macro

A string comparison version of the ELEM macro,
add to avoid verbose & repetitive strcmp/STREQ usage.

4 months agoCleanup: order simple check before function call
Campbell Barton [Wed, 10 Apr 2019 07:05:06 +0000 (09:05 +0200)]
Cleanup: order simple check before function call

4 months agoCleanup: spelling
Campbell Barton [Wed, 10 Apr 2019 06:40:49 +0000 (08:40 +0200)]
Cleanup: spelling

4 months agoCleanup: style, shadow warning
Campbell Barton [Wed, 10 Apr 2019 06:34:24 +0000 (08:34 +0200)]
Cleanup: style, shadow warning

4 months agoFix T63427: Annotations don'twork with 2.79 settings
Antonioya [Tue, 9 Apr 2019 18:12:21 +0000 (20:12 +0200)]
Fix T63427: Annotations don'twork with 2.79 settings

The problem was the colors were not converted and the annotation flag was not enabled.

Note: For Scene data (View3D) there is a convert operator.

4 months agoCleanup: Use higher level function
Sergey Sharybin [Tue, 9 Apr 2019 15:06:32 +0000 (17:06 +0200)]
Cleanup: Use higher level function

This kind of abstracts OpenGL details, and this is what is used in
other areas as well.

4 months agoCleanup: spelling
Campbell Barton [Tue, 9 Apr 2019 14:06:53 +0000 (00:06 +1000)]
Cleanup: spelling

4 months agoCleanup: style
Campbell Barton [Tue, 9 Apr 2019 13:16:11 +0000 (23:16 +1000)]
Cleanup: style

4 months agoImage draw: Fix/workaround image corruption on draw
Sergey Sharybin [Tue, 9 Apr 2019 10:44:04 +0000 (12:44 +0200)]
Image draw: Fix/workaround image corruption on draw

Was mainly visible with high-res image. Not entirely clear why it is
only happening on macOS. While the entire function should be re-written
to make float images displayed faster, still nice to fix the drawing.

Reviewers: fclem

Reviewed By: fclem

Differential Revision:

4 months agoFix T62114: Wireframe mode selection: selects backside objects when clicking frontsid...
Sebastian Parborg [Tue, 9 Apr 2019 10:29:02 +0000 (12:29 +0200)]
Fix T62114: Wireframe mode selection: selects backside objects when clicking frontside object in 3d-window

Now the depth order of objects when trying to select them is only used when not in X-ray mode.
Before, this was only the case in wireframe mode regardless of X-ray settings.

I've also unified the usage of V3D_XRAY and XRAY_FLAG as they were basically copies of each other.

Reviewed By: Clément

Differential Revision:

4 months agoCleanup: BKE_gpencil naming
Campbell Barton [Tue, 9 Apr 2019 07:22:46 +0000 (09:22 +0200)]
Cleanup: BKE_gpencil naming

- The ambiguous term 'handle' was used where 'ensure'
  is typically used (get or add when missing).
- Rename `current` to `active`, all `current` functions which were
  also ensuring.
- Clarify what is being operated on, using `BKE_gpencil_object_*` for
  objects, `BKE_gpencil_brush_*` for brushes.

4 months agoCleanup: style
Campbell Barton [Tue, 9 Apr 2019 06:44:06 +0000 (08:44 +0200)]
Cleanup: style

4 months agoMistake in 1be2888bf021
Jeroen Bakker [Tue, 9 Apr 2019 06:37:00 +0000 (08:37 +0200)]
Mistake in 1be2888bf021

String compare renderengines.

4 months agoFix T63326: absolute shape keys inserted from Python in wrong order.
Arno Mayrhofer [Mon, 8 Apr 2019 21:54:37 +0000 (23:54 +0200)]
Fix T63326: absolute shape keys inserted from Python in wrong order.

4 months agoFix T63386: text editor footer added multiple times.
George Vogiatzis [Mon, 8 Apr 2019 20:35:55 +0000 (22:35 +0200)]
Fix T63386: text editor footer added multiple times.

Differential Revision:

4 months agoFix T63399: Obj exporter does not respect "Apply Modifiers" settings
Sergey Sharybin [Mon, 8 Apr 2019 19:21:09 +0000 (21:21 +0200)]
Fix T63399: Obj exporter does not respect "Apply Modifiers" settings

4 months agoFix T60821: highlighting issues in Dope Sheet
Philipp Oeser [Thu, 28 Mar 2019 12:39:50 +0000 (13:39 +0100)]
Fix T60821: highlighting issues in Dope Sheet

replaced check for (obsolete in 2.8) objects 'SELECT' flag with check for
bases 'BASE_SELECTED' flag

Reviewers: brecht

Maniphest Tasks: T60821

Differential Revision:

4 months agoGPencil: Mark Object gpd field as Deprecated
Antonioya [Mon, 8 Apr 2019 14:23:58 +0000 (16:23 +0200)]
GPencil: Mark Object gpd field as Deprecated

This field is only used to read old files, but it's not used anymore, so it's better mark as deprecated to avoid wrong uses.

4 months agoFix T63340: Transform Snap Object: Simulate occlusion only when `use_occlusion_test...
mano-wii [Mon, 8 Apr 2019 13:49:15 +0000 (10:49 -0300)]
Fix T63340: Transform Snap Object: Simulate occlusion only when `use_occlusion_test` is true.

And cleanup.

4 months agocleanup: typo in comment
Philipp Oeser [Mon, 8 Apr 2019 10:41:57 +0000 (12:41 +0200)]
cleanup: typo in comment

4 months agoGPencil: Cleanup unused code
Antonioya [Mon, 8 Apr 2019 09:28:53 +0000 (11:28 +0200)]
GPencil: Cleanup unused code

4 months agoGPencil: Fix wrong Brush texture for pinned materials
Antonioya [Sun, 7 Apr 2019 15:02:13 +0000 (17:02 +0200)]
GPencil: Fix wrong Brush texture for pinned materials

If the Brush had a pinned material with texture, but the material slot was in a different material, the texture was not working.

The material was not recovered from brush, but from object.

4 months agoQuick Explode: update for recent eevee shadow refactor
Philipp Oeser [Sun, 7 Apr 2019 10:43:20 +0000 (12:43 +0200)]
Quick Explode: update for recent eevee shadow refactor

see rBd6747f310f12 'transparent_shadow_method' -> 'shadow_method'

4 months agoCleanup: add comments about dual quaternion scale handling.
Brecht Van Lommel [Sun, 7 Apr 2019 09:29:31 +0000 (11:29 +0200)]
Cleanup: add comments about dual quaternion scale handling.

Ref T63327

4 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 7 Apr 2019 09:24:28 +0000 (11:24 +0200)]
Merge branch 'blender2.7'

4 months agoFix for GCC9 new OpenMP data sharing
Robert-André Mauchin [Tue, 2 Apr 2019 23:36:52 +0000 (01:36 +0200)]
Fix for GCC9 new OpenMP data sharing

GCC 9 started implementing the OpenMP 4.0 and later behavior. When not using
default clause or when using default(shared), this makes no difference, but
if using default(none), previously the choice was not specify the const
qualified variables on the construct at all, or specify in firstprivate
clause. In GCC 9 as well as for OpenMP 4.0 compliance, those variables need
to be specified on constructs in which they are used, either in shared or
in firstprivate clause. Specifying them in firstprivate clause is one way to
achieve compatibility with both older GCC versions and GCC 9,
another option is to drop the default(none) clause.

This patch thus drops the default(none) clause.


Signed-off-by: Robert-André Mauchin <>
4 months agoGPencil: Set layer channel custom color to all line in Dopesheet
Antonioya [Fri, 5 Apr 2019 14:20:31 +0000 (16:20 +0200)]
GPencil: Set layer channel custom color to all line in Dopesheet

See D4645 for more details

4 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 7 Apr 2019 00:42:38 +0000 (02:42 +0200)]
Merge branch 'blender2.7'

4 months agoFix build error with Visual Studio, appears to be a compiler bug
Brecht Van Lommel [Sun, 7 Apr 2019 00:38:03 +0000 (02:38 +0200)]
Fix build error with Visual Studio, appears to be a compiler bug

It's not clear that "if (0 &&" was introduced intentionally, but this test
only seems to have been an insignificant optimization anyway.

Fixes T63329

4 months agoFix T59014: black/corrupted viewport with Intel HD on Windows 7/8.
Brecht Van Lommel [Sat, 6 Apr 2019 12:23:25 +0000 (14:23 +0200)]
Fix T59014: black/corrupted viewport with Intel HD on Windows 7/8.

Work around bug in the Intel driver:

4 months agoGHOST: tweak warning message about OpenGL 3.3.
Brecht Van Lommel [Sat, 6 Apr 2019 12:08:08 +0000 (14:08 +0200)]
GHOST: tweak warning message about OpenGL 3.3.

4 months agoDRW: Opti: Fix hotspot in DRW_mesh_batch_cache_get_surface_shaded
Clément Foucault [Fri, 5 Apr 2019 23:55:21 +0000 (01:55 +0200)]
DRW: Opti: Fix hotspot in DRW_mesh_batch_cache_get_surface_shaded

The hotspot was generated by mesh_cd_layers_type_overlap who was testing
way more data than it should have.

Here we reduce the whole CD layer mask to a 32bit bitflag that is easily
or'ed and tested.

Bonus point: We use atomic operation to merge the mask in order to allow
future multi-threading. (this was a TODO)

In the scene attached to T58188 this removes 5% of CPU time.

4 months agoGPU: Fix typo
Clément Foucault [Fri, 5 Apr 2019 18:46:13 +0000 (20:46 +0200)]
GPU: Fix typo

4 months agoDRW: Opti: Replace bound tex/ubo tracking array by bitfields
Clément Foucault [Fri, 5 Apr 2019 18:45:32 +0000 (20:45 +0200)]
DRW: Opti: Replace bound tex/ubo tracking array by bitfields

release_texture_slots() and release_ubo_slots() were one hotspot when
drawing taking ~9% of total CPU counters for no reason.

This was because of the loops using GPU_max_textures that was overkill and

Replace those by a simple 64bit bitwise OR operation.

4 months agoCleanup: Fix compiler warning
Antonioya [Fri, 5 Apr 2019 16:50:13 +0000 (18:50 +0200)]
Cleanup: Fix compiler warning

4 months agoFix T61035 Draw manager crash opening file with curves
Clément Foucault [Fri, 5 Apr 2019 15:48:14 +0000 (17:48 +0200)]
Fix T61035 Draw manager crash opening file with curves

Move free callback call to GPU_batch_discard to prevent the crash.

The issue was that clearing can happen after referencing to an instance
buffer and that's perfectly legal.

4 months agoFix T63281: Drivers inside nodegroups inside nodegroups don't show up in Driver Editor
Sebastian Parborg [Fri, 5 Apr 2019 14:28:34 +0000 (16:28 +0200)]
Fix T63281: Drivers inside nodegroups inside nodegroups don't show up in Driver Editor

Recurse into node groups when looking for drivers.

Reviewed By: Brecht

Differential Revision:

4 months agoEEVEE: Fix compilation
Jeroen Bakker [Fri, 5 Apr 2019 13:02:55 +0000 (15:02 +0200)]
EEVEE: Fix compilation

Introduced by f0d6879f5c7998be98ac406bd6ddaa5104961206

4 months agoFix T63283: Second subdivision modifier does not ignore crease
Sergey Sharybin [Fri, 5 Apr 2019 12:13:05 +0000 (14:13 +0200)]
Fix T63283: Second subdivision modifier does not ignore crease

This is something where there is no single correct behavior,
sometimes it's needed to ignore the crease to make mesh more
smooth. But sometimes crease is to be considered after first
subdivision surface: for example, when adding extra subdivisions
for render-time displacement.

Made it an option whether modifier needs to take crease into
account or not.

Existing files should be openable in the 2.7 compatible way,
to re-create an old behavior the options is to be manually
disabled in the modifier settings.

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

4 months agoGPU not able to allocate texture
Jeroen Bakker [Fri, 5 Apr 2019 10:53:26 +0000 (12:53 +0200)]
GPU not able to allocate texture

In the case of the report a GL_PROXY_TEXTURE_2D_ARRAY of 2509x2509x1 failed to be allocated.
This is a work around as the GL_PROXY_TEXTURE_* is not reliable.

Reviewed By: brecht, fclem

Maniphest Tasks: T63223

Differential Revision:

4 months agoFix T62892 EEVEE HDRI lightning glitch
Clément Foucault [Fri, 5 Apr 2019 12:37:38 +0000 (14:37 +0200)]
Fix T62892 EEVEE HDRI lightning glitch

Clamp the texture at sampling time. This is not the best way to do it but
this is the fastest/simplest. The cost is rather negligeable.

4 months agoInterface: New region type 'Footer', used by text editor
George Vogiatzis [Fri, 5 Apr 2019 11:48:26 +0000 (13:48 +0200)]
Interface: New region type 'Footer', used by text editor

* It can be hidden by dragging it up/down.
* It can be at the top or bottom, independent of the header.
* It uses the color theme from the header.
* It does not change its color, when the area becomes active.

Currently, it is used in the text editor to display the file path.

Differential Revision:

4 months agoCleanup: Replace deprecated finite with isfinite
Simon [Fri, 5 Apr 2019 11:41:28 +0000 (13:41 +0200)]
Cleanup: Replace deprecated finite with isfinite

Differential Revision:

4 months agoCleanup: Spelling
Sergey Sharybin [Fri, 5 Apr 2019 10:52:57 +0000 (12:52 +0200)]
Cleanup: Spelling

4 months agoFix T60390: add Cycles texture node mapping settings to node editor sidebar
Brecht Van Lommel [Fri, 5 Apr 2019 10:47:34 +0000 (12:47 +0200)]
Fix T60390: add Cycles texture node mapping settings to node editor sidebar

These were missing from the UI previously.

4 months agoFix T63292: Crash Workbench Texture Drawing
Jeroen Bakker [Fri, 5 Apr 2019 09:26:48 +0000 (11:26 +0200)]
Fix T63292: Crash Workbench Texture Drawing

4 months agoGPencil: Improve drawing feeling in big files
Antonioya [Fri, 5 Apr 2019 09:26:04 +0000 (11:26 +0200)]
GPencil: Improve drawing feeling in big files

When drawing in big files, the first points of the stroke were not smooth because the system was doing a copy of the depsgraph datablock.

Now, the depsgraph is not updated at the beginning and the feeling is far better, especially for big files.

To avoid the copy, the original datablock is used while drawing, because it's faster the lookup of the original data, than a full datablock copy.

Also some cleanup of the code.

4 months agoFix T60379: Cycles viewport adaptive subdivision hangs after updates.
Brecht Van Lommel [Thu, 4 Apr 2019 18:06:22 +0000 (20:06 +0200)]
Fix T60379: Cycles viewport adaptive subdivision hangs after updates.

The camera world to raster computation was using wrong values. Also fixes
update when changing subdivision scene settings.

4 months agoWorkbench: Support Transparency + Textures
Jeroen Bakker [Thu, 4 Apr 2019 11:47:18 +0000 (13:47 +0200)]
Workbench: Support Transparency + Textures

When texture drawing was enabled the fallback materials were not transparent.
The reason was that the solid material was requested. This patch will requesting
in this case the material from the forward renderer.

Fix: T63077

Reviewed By: fclem

Maniphest Tasks: T63077

Differential Revision:

4 months agoFix T63108 Eevee: Wrong Reflection plane matrix if camera view is not centered
Clément Foucault [Thu, 4 Apr 2019 16:08:42 +0000 (18:08 +0200)]
Fix T63108 Eevee: Wrong Reflection plane matrix if camera view is not centered

Invert X axis of the Window Matrix (AKA Projection matrix) instead of the
View matrix.

4 months agoFix T63198 Eevee: Indirect lighting settings arent not updating in Lookdev
Clément Foucault [Thu, 4 Apr 2019 15:58:35 +0000 (17:58 +0200)]
Fix T63198 Eevee: Indirect lighting settings arent not updating in Lookdev

This was caused by a missing check for those option.

4 months agoFix T63278 Eevee: LookDev: Volumetric on even if Scene World is off
Clément Foucault [Thu, 4 Apr 2019 15:17:40 +0000 (17:17 +0200)]
Fix T63278 Eevee: LookDev: Volumetric on even if Scene World is off

4 months agoFix segfault when audio system cannot be initialised
Sybren A. Stüvel [Thu, 4 Apr 2019 15:58:13 +0000 (17:58 +0200)]
Fix segfault when audio system cannot be initialised

`PyInit_aud()` can return `NULL` for variour reasons. When that happens,
we shouldn't continue.

4 months agoFix T61830: Remove option to add new keymap item in search mode
Jacques Lucke [Thu, 4 Apr 2019 15:37:24 +0000 (17:37 +0200)]
Fix T61830: Remove option to add new keymap item in search mode

This was not working well, because the search text was removed
after pressing this button. Finding the item that was inserted
was not easy.

Removing the option seems to be the best solution for now.

4 months agoEEVEE+Workbench: Show partsys in final rendering
Jeroen Bakker [Thu, 4 Apr 2019 13:07:30 +0000 (15:07 +0200)]
EEVEE+Workbench: Show partsys in final rendering

In final rendering mode the display type was tested for
visibility flag. This should only occus when doing viewport

Reviewed By: fclem

Maniphest Tasks: T63056

Differential Revision:

4 months agoFix T63256: Make Dupli Face was broken since there are collections
Jacques Lucke [Thu, 4 Apr 2019 14:37:55 +0000 (16:37 +0200)]
Fix T63256: Make Dupli Face was broken since there are collections

4 months agoFix T60891: bgl docs still include deprecated opengl functions
Jacques Lucke [Thu, 4 Apr 2019 14:11:14 +0000 (16:11 +0200)]
Fix T60891: bgl docs still include deprecated opengl functions

In a separate step, all new functions should be added.
However, the best way to do this, is not clear yet.
A list of functions, that have to be added is available
in D4280.

Differential Revision:

4 months agoFix T63252: Bind in Mesh Deform Modifier fails
Sergey Sharybin [Thu, 4 Apr 2019 12:42:33 +0000 (14:42 +0200)]
Fix T63252: Bind in Mesh Deform Modifier fails

A regression since 64c8d72ef1ad.

The solution is to force modifier evaluation for an evaluated
object, and let it to copy binding data back to original when
is being evaluated for binding.

Reviewers: brecht

Reviewed By: brecht

Differential Revision:

4 months agoFix T63276: crash deleting object with alembic constraint.
Brecht Van Lommel [Thu, 4 Apr 2019 13:07:37 +0000 (15:07 +0200)]
Fix T63276: crash deleting object with alembic constraint.

4 months agoFix ply import tests.
Howard Trickey [Thu, 4 Apr 2019 12:50:17 +0000 (08:50 -0400)]
Fix ply import tests.

The function for clearing out objects in the startup file
needed updating for 2.8 collections api.

4 months agoFix part of T62720: crash loading alembic mesh that has no vertices.
Brecht Van Lommel [Thu, 4 Apr 2019 12:26:47 +0000 (14:26 +0200)]
Fix part of T62720: crash loading alembic mesh that has no vertices.

4 months agoDRW: Fix hair count being limited by recent refactor
Clément Foucault [Thu, 4 Apr 2019 12:43:54 +0000 (14:43 +0200)]
DRW: Fix hair count being limited by recent refactor

This was making Autumn being half naked.

Issue was introduced by rBe72dc667c4d3

4 months agoEevee: Add property update for render settings
Clément Foucault [Thu, 4 Apr 2019 12:19:32 +0000 (14:19 +0200)]
Eevee: Add property update for render settings

This was preventing the viewport update when the properties were changed
via scripting.

4 months agoFix T63000: Don't use original file name for autosave
Jacques Lucke [Thu, 4 Apr 2019 12:38:18 +0000 (14:38 +0200)]
Fix T63000: Don't use original file name for autosave

Reviewers: brecht

Differential Revision:

4 months agoAvoid flow to avoid the collection textfield from becoming too small
Jeroen Bakker [Thu, 4 Apr 2019 12:01:29 +0000 (14:01 +0200)]
Avoid flow to avoid the collection textfield from becoming too small

The collection instance field is currently using flow.column(), which makes the name of the collection instance unreadably small. {F6898084}
I get that we want to save vertical space to avoid scrolling, but in this case it generates a new problem, so I'd rather avoid flow here.

Patch by sebastian_k

Reviewed By: billreynish

Differential Revision:

4 months agoFix T62870: progress in taskbar not updated when cancelling render
Brecht Van Lommel [Thu, 4 Apr 2019 11:46:04 +0000 (13:46 +0200)]
Fix T62870: progress in taskbar not updated when cancelling render

4 months agoFix: Erratic collision response when using constraints on colliders
Benjamin Meyer [Thu, 4 Apr 2019 08:39:12 +0000 (10:39 +0200)]
Fix: Erratic collision response when using constraints on colliders

Missing dependency, which made collission to access object transform
prior it was evaluated.

Reviewers: sergey

Differential Revision:

4 months agoCleanup: remove B-Bone shape pointers from bPoseChanDeform.
Alexander Gavrilov [Thu, 4 Apr 2019 08:18:40 +0000 (11:18 +0300)]
Cleanup: remove B-Bone shape pointers from bPoseChanDeform.

They are pointless copies from pchan->runtime by now.

4 months agoSeparation lines for Quad View
Harley Acheson [Wed, 3 Apr 2019 23:25:43 +0000 (01:25 +0200)]
Separation lines for Quad View

Reviewers: brecht, billreynish, fclem

Reviewed By: billreynish, fclem

Differential Revision:

4 months agoFix T63255: Crash when circle select performs selection outside the viewport's bounds.
mano-wii [Wed, 3 Apr 2019 23:05:59 +0000 (20:05 -0300)]
Fix T63255: Crash when circle select performs selection outside the viewport's bounds.

4 months agoFix T61870 Eevee: Object's go completely black if they have a normal map
Clément Foucault [Wed, 3 Apr 2019 22:51:03 +0000 (00:51 +0200)]
Fix T61870 Eevee: Object's go completely black if they have a normal map

The problem was that tangent layers (being computed on demand in the batch
cache generation) were generated but if MR_DATATYPE_LOOPTRI was not present
(in some cases) and the looptri_len was 0, leaving the CDATA layer cleared.

4 months agoDRW: Mesh Batch Cache: Fix error in loop custom data layer checking
Clément Foucault [Wed, 3 Apr 2019 21:46:32 +0000 (23:46 +0200)]
DRW: Mesh Batch Cache: Fix error in loop custom data layer checking

4 months agoCleanup: redundant casts
Campbell Barton [Wed, 3 Apr 2019 21:15:26 +0000 (08:15 +1100)]
Cleanup: redundant casts

4 months agoCleanup: style
Campbell Barton [Wed, 3 Apr 2019 21:13:13 +0000 (08:13 +1100)]
Cleanup: style

4 months agoFix T55589, T60967: Windows pen pressure issues at start/end of the stroke.
Christopher Peerman [Wed, 3 Apr 2019 14:36:28 +0000 (16:36 +0200)]
Fix T55589, T60967: Windows pen pressure issues at start/end of the stroke.

and the pointer API to process stylus events. This avoids the delays that comes
with the WM_MOUSE and WM_xBUTTON events. The implementation should work on
Windows 8, and Windows 10 with both legacy and new pen interaction.

It also changes how the pressure is reset when the Windows Ink implementation
is enabled. The previous version reset the pressure to full when the pen left
the screen, however for some hardware implementations this allowed a small
window where Blender may process the final move event and read the pressure
as full leaving a dot on the last event.

Differential Revision:

4 months agoWindows: use Wintab by default if it's available and a device is detected.
Brecht Van Lommel [Wed, 3 Apr 2019 15:09:54 +0000 (17:09 +0200)]
Windows: use Wintab by default if it's available and a device is detected.

Previously Automatic tablet API mode would handle both Windows Ink and
Wintab events. This is unpredictable and causes problems with the fix
coming in the next commit.

Instead assume that in most cases where Windows Ink is desired there
will be no Wintab. If that's not the case, it can be adjusted under
Preferences > Input > Tablet.

4 months agoFix T63257: Grease Pencil renders incorrectly when in edit-mode
Antonioya [Wed, 3 Apr 2019 17:58:32 +0000 (19:58 +0200)]
Fix T63257: Grease Pencil renders incorrectly when in edit-mode

4 months agoAudaspace: merging modulator effect from upstream.
Jörg Müller [Wed, 3 Apr 2019 17:56:25 +0000 (19:56 +0200)]
Audaspace: merging modulator effect from upstream.

4 months agofix for freetype download link and llvm/clang header harvesting
Martin Felke [Wed, 3 Apr 2019 16:51:42 +0000 (18:51 +0200)]
fix for freetype download link and llvm/clang header harvesting

4 months agoFix T62780 , T59802, T57648: fullscreen window issues on Windows.
Brecht Van Lommel [Wed, 3 Apr 2019 14:01:20 +0000 (16:01 +0200)]
Fix T62780 , T59802, T57648: fullscreen window issues on Windows.

This fixes popups and preferences appearing behind the main window, as
well as flickering artifacts when Blender is in fullscreen.

Patch contributed by phocomelus.

Differential Revision:

4 months agoUI: remove close button from Windows console window.
Harley Acheson [Wed, 3 Apr 2019 13:51:48 +0000 (15:51 +0200)]
UI: remove close button from Windows console window.

This way you can't accidentally close Blender when toggling the console
window to be visible. When Blender is started from the command promt the
close button remains.

Differential Revision:

4 months agoMultires: Make topology cache to work with copy-on-write
Sergey Sharybin [Wed, 3 Apr 2019 14:11:57 +0000 (16:11 +0200)]
Multires: Make topology cache to work with copy-on-write

Allows to preserve topology cache even when copy-on-write is
fully re-copying the object. For example, toggling edit mode
in and out does no longer causes full topology to be re-created.

4 months agoFix export_obj_cube test.
Howard Trickey [Wed, 3 Apr 2019 14:05:47 +0000 (10:05 -0400)]
Fix export_obj_cube test.

Verified that current export files for all_quads.blend are good,
then updated expected MD5 hash to match current files.

4 months agoReset background alpha for probe rendering.
Alexander Court [Wed, 3 Apr 2019 13:56:19 +0000 (15:56 +0200)]
Reset background alpha for probe rendering.
Possibly fixes T63005.

Reviewers: fclem

Reviewed By: fclem

Differential Revision:

4 months agoFix T63217: Curve Modifier skipped in Cycles
Sergey Sharybin [Wed, 3 Apr 2019 13:37:30 +0000 (15:37 +0200)]
Fix T63217: Curve Modifier skipped in Cycles

Only mesh objects have all modifiers applied on the evaluated
object's data, other object types are to apply modifiers during
the conversion process.

4 months agoFix T62939: Incorrect cursor position when exiting UI slider
Victor Seiji Hariki [Wed, 3 Apr 2019 13:14:57 +0000 (15:14 +0200)]
Fix T62939: Incorrect cursor position when exiting UI slider

Differential Revision:

4 months agoUI: Fix odd behavior in region sizing, simplify code
George Vogiatzis [Wed, 3 Apr 2019 12:53:57 +0000 (14:53 +0200)]
UI: Fix odd behavior in region sizing, simplify code

* When resizing sidebars, don't collapse when the region becomes too big but
  instead clamp the region size to the available space.
* Fix clicking the tab to expand sidebars no working if the sidebar is too
  wide to fit. Instead make it less wide so it does fit.
* Fix incorrect limit on tool properties region height, for example in the
  file browser.

Differential Revision:

4 months agodeps_builder : copy llvm headers to lib folder.
Ray Molenkamp [Wed, 3 Apr 2019 12:57:16 +0000 (06:57 -0600)]
deps_builder : copy llvm headers to lib folder.

Were not needed previously, but the functions branch needs them.

4 months agoFix T62817: Can't drive modifier property with another one
Sergey Sharybin [Wed, 3 Apr 2019 12:50:21 +0000 (14:50 +0200)]
Fix T62817: Can't drive modifier property with another one

Random place in the modifier stack can not be referenced,
so it doesn't make sense to sue GEOMETRY component as a
FROM operation.

So now drivers on modifiers are driving GEOMETRY component,
but are using PARAMETERS as a source for variables.

4 months agoGPencil: Implement custom channel color in Dopesheet
Antonioya [Wed, 3 Apr 2019 08:25:49 +0000 (10:25 +0200)]
GPencil: Implement custom channel color in Dopesheet

A new parameter in the layer adjustment panel allows to define the color of the channel in Dopesheet.

This is needed when there are a lot of layers.

See D4623 for more details.

4 months agoFix T63220: Cannot make object single user after Duplicate Scene with Link Object...
Bastien Montagne [Tue, 2 Apr 2019 19:50:17 +0000 (21:50 +0200)]
Fix T63220: Cannot make object single user after Duplicate Scene with Link Object Data.

Caused by own recent rB17c15798c35f33e (already a fix in that code).

We cannot erase immediately master_collection's childrn list, as it is
used in sub-code to check in how many scenes an object is instanciated.
Further more, we only want to do the remove old/add new children
collections in case we are actually duplicating them.

Makes me even more eager to nuke that whole piece of code and rethink
from scratch that kind of ID handling. Some day...

4 months agoPython API: expose text object kerning.
Damien Picard [Tue, 2 Apr 2019 17:11:03 +0000 (19:11 +0200)]
Python API: expose text object kerning.

Differential Revision:

4 months agoMerge branch 'blender2.7'
Sergey Sharybin [Tue, 2 Apr 2019 15:51:44 +0000 (17:51 +0200)]
Merge branch 'blender2.7'

4 months agoConstraints: Use RNA update instead of block update
Sergey Sharybin [Tue, 2 Apr 2019 15:44:18 +0000 (17:44 +0200)]
Constraints: Use RNA update instead of block update

Allows to have more control over which tags are done for which

This is a part of T62960 which fixes the issue in the 2.7 series.

4 months agoConstraints: Mark proxy lcoal as not editable
Sergey Sharybin [Tue, 2 Apr 2019 15:43:33 +0000 (17:43 +0200)]
Constraints: Mark proxy lcoal as not editable

This can not work reliably anyway.

4 months agoCleanup: Remove space at the end of description
Sergey Sharybin [Tue, 2 Apr 2019 15:42:30 +0000 (17:42 +0200)]
Cleanup: Remove space at the end of description

4 months agoFix T62434: EEVEE not using correct World Output node
Philipp Oeser [Tue, 2 Apr 2019 14:37:54 +0000 (16:37 +0200)]
Fix T62434: EEVEE not using correct World Output node

We were already getting the designated output node in
'ntreeGPUMaterialNodes()' but this wasnt used in 'ntreeExecGPUNodes()',
instead whatever node was tagged NODE_DO_OUTPUT was executed.

note: this is just the bare minimum to fix the bug, other improvements
previously done in D4482 might follow as a separate commit.

Reviewers: brecht, fclem

Maniphest Tasks: T62434

Differential Revision:

4 months agoCleanup: Fix compiler warning
Antonioya [Tue, 2 Apr 2019 15:02:10 +0000 (17:02 +0200)]
Cleanup: Fix compiler warning

4 months agoUI: Collapsed nodes have the same width as uncollapsed nodes
Robert Guetzkow [Tue, 2 Apr 2019 14:39:48 +0000 (16:39 +0200)]
UI: Collapsed nodes have the same width as uncollapsed nodes

Fixes T63079.

Differential Revision:

4 months agoFix Linux build error after recent changes.
Brecht Van Lommel [Tue, 2 Apr 2019 14:30:39 +0000 (16:30 +0200)]
Fix Linux build error after recent changes.