blender.git
13 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 23 Jul 2018 12:23:21 +0000 (14:23 +0200)]
Merge branch 'master' into blender2.8

13 months agoFix build for Intel compiler with C++11.
Milan Jaros [Mon, 23 Jul 2018 12:20:06 +0000 (14:20 +0200)]
Fix build for Intel compiler with C++11.

13 months agoUI: more descriptive tooltip
Ines Almeida [Mon, 23 Jul 2018 11:15:20 +0000 (13:15 +0200)]
UI: more descriptive tooltip

13 months agoFix T55634: Particle Viewport Display affects render visibilty
Sergey Sharybin [Mon, 23 Jul 2018 10:53:46 +0000 (12:53 +0200)]
Fix T55634: Particle Viewport Display affects render visibilty

Changed code to follow master behavior closer: ignore draw-as checks
when particles are evaluating for rendering.

14 months agoFix wrong view layer rendered from command line
Sergey Sharybin [Mon, 23 Jul 2018 09:47:06 +0000 (11:47 +0200)]
Fix wrong view layer rendered from command line

The issue was caused by Render Single Layer option enabled, which is
very handy for artists work, so they can hit F12 and see view layer
they are currently working in a final rendered state. This saves a lot
of time since all the "non-interesting" objects are ignored for such
iterations.

However, for the render farm we need to render view layers which are
explicitly set for render, and ignore active view layer.

Reasonable solution seems to be to ignore the Render Single Layer
option when rendering from the command line. It is really something
more like UI behavior option.

14 months agoMark view layer renderability and scene single layer render as non-animatable
Sergey Sharybin [Mon, 23 Jul 2018 09:42:44 +0000 (11:42 +0200)]
Mark view layer renderability and scene single layer render as non-animatable

We can not support animation of those flags reliably in the pipeline, so just
mark them as non-animatable.

14 months agoCleanup: comments and UI descriptions for cursor snapping
Ines Almeida [Sun, 27 May 2018 08:33:34 +0000 (10:33 +0200)]
Cleanup: comments and UI descriptions for cursor snapping

14 months agoOutliner Keymap: E key to Exclude collections from View Layer
Pablo Vazquez [Mon, 23 Jul 2018 09:20:31 +0000 (11:20 +0200)]
Outliner Keymap: E key to Exclude collections from View Layer

Alt+E to include.

14 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Sun, 22 Jul 2018 22:03:46 +0000 (16:03 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

14 months agomake.bat : fix typo
Ray Molenkamp [Sun, 22 Jul 2018 22:02:28 +0000 (16:02 -0600)]
make.bat : fix typo

pointed out by anchpop on irc.

14 months agoEevee: Principled: Fix Subsurface input behaviour
Clément Foucault [Sat, 21 Jul 2018 16:15:31 +0000 (18:15 +0200)]
Eevee: Principled: Fix Subsurface input behaviour

Match Cycles behaviour of scalling the SSS radius and don't interpolate
between diffuse and SSS result.

14 months agoRender Preview: Fix ID freeing in wrong function
Clément Foucault [Sat, 21 Jul 2018 12:16:29 +0000 (14:16 +0200)]
Render Preview: Fix ID freeing in wrong function

14 months agoEevee: Fix wrong SSR reprojection when switching orthographic view
Clément Foucault [Fri, 20 Jul 2018 20:43:30 +0000 (22:43 +0200)]
Eevee: Fix wrong SSR reprojection when switching orthographic view

We just reset the temporal sampling and avoid using the previous frame
for SSR at all.

14 months agoEevee: LightProbes: Fix RNA defaults and remove unused data_draw_size
Clément Foucault [Fri, 20 Jul 2018 20:22:30 +0000 (22:22 +0200)]
Eevee: LightProbes: Fix RNA defaults and remove unused data_draw_size

14 months agoEevee: Lamps: Fix RNA defaults and change defaults for contact shadows
Clément Foucault [Fri, 20 Jul 2018 19:54:48 +0000 (21:54 +0200)]
Eevee: Lamps: Fix RNA defaults and change defaults for contact shadows

14 months agoRender Preview: Fix memory leak
Clément Foucault [Fri, 20 Jul 2018 19:31:36 +0000 (21:31 +0200)]
Render Preview: Fix memory leak

14 months agoRender Preview: Fix problem with multi size icon preview
Clément Foucault [Fri, 20 Jul 2018 18:36:14 +0000 (20:36 +0200)]
Render Preview: Fix problem with multi size icon preview

The id was free after each size.
We now only free after the job has finished.

14 months agoGPUMaterial: Cleanup unused headers
Clément Foucault [Fri, 20 Jul 2018 18:06:39 +0000 (20:06 +0200)]
GPUMaterial: Cleanup unused headers

14 months agoGPUMaterial: Texture Node: Add support for Cubic filtering
Clément Foucault [Fri, 20 Jul 2018 17:16:33 +0000 (19:16 +0200)]
GPUMaterial: Texture Node: Add support for Cubic filtering

Like in cycles it's a bit more slower than linear but it's smoother.

Works for all projection type.

14 months agoGPUMaterial: Texture Node: support for nearest (closest) filtering method
Clément Foucault [Fri, 20 Jul 2018 13:45:59 +0000 (15:45 +0200)]
GPUMaterial: Texture Node: support for nearest (closest) filtering method

Add placeholder for cubic and smart filtering for now.

14 months agoGPUMaterial: Optimize and fix blending in box mapping
Clément Foucault [Fri, 20 Jul 2018 13:25:20 +0000 (15:25 +0200)]
GPUMaterial: Optimize and fix blending in box mapping

Blending was done in srgb space and was not matching cycles.

Optimized by using less branches and more vector operations.

14 months agoFix T54455, T56053, T55564: Cycles OpenCL build error after recent changes.
Brecht Van Lommel [Fri, 20 Jul 2018 17:07:35 +0000 (19:07 +0200)]
Fix T54455, T56053, T55564: Cycles OpenCL build error after recent changes.

14 months agoFix incorrect magnification filter for text texture.
Brecht Van Lommel [Fri, 20 Jul 2018 15:38:24 +0000 (17:38 +0200)]
Fix incorrect magnification filter for text texture.

Barely any visible difference, except when drawing big custom text
with the Python API.

14 months agoFix WITH_HEADLESS build.
Brecht Van Lommel [Fri, 20 Jul 2018 13:12:36 +0000 (15:12 +0200)]
Fix WITH_HEADLESS build.

14 months agoDepsgraph: Fix missing relation from proxy_form's ID properties
Sergey Sharybin [Fri, 20 Jul 2018 13:13:48 +0000 (15:13 +0200)]
Depsgraph: Fix missing relation from proxy_form's ID properties

Hopefully this will fix issue with camera rig where camera properties
(like, near/far clip) are driven by custom properties from bones, and
those bones are actually belong to proxied armature.

14 months agoFix build error with release + debug info build.
Brecht Van Lommel [Fri, 20 Jul 2018 11:35:08 +0000 (13:35 +0200)]
Fix build error with release + debug info build.

14 months agoFix assert for Image & Brush icon preview
Clément Foucault [Fri, 20 Jul 2018 10:54:57 +0000 (12:54 +0200)]
Fix assert for Image & Brush icon preview

14 months agoWorkbench: Add backface culling support
Clément Foucault [Fri, 20 Jul 2018 10:40:35 +0000 (12:40 +0200)]
Workbench: Add backface culling support

14 months agoBasic Draw Engine: Cleanup unused code.
Clément Foucault [Fri, 20 Jul 2018 10:30:23 +0000 (12:30 +0200)]
Basic Draw Engine: Cleanup unused code.

This engine is only used for selection and draw depth so no need for
anything else.

Also add backface culling support to selection.

14 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 20 Jul 2018 10:13:58 +0000 (12:13 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: Move 'WAVEFORM_LOADING' of sounds from flags to tags.
Bastien Montagne [Fri, 20 Jul 2018 10:11:34 +0000 (12:11 +0200)]
Cleanup: Move 'WAVEFORM_LOADING' of sounds from flags to tags.

This is purely runtime data, so move it to new tags. ;)

14 months agoFix T55414: waveforms are reprocessed when undoing
Bastien Montagne [Fri, 20 Jul 2018 10:01:38 +0000 (12:01 +0200)]
Fix T55414: waveforms are reprocessed when undoing

Add new tag to bSound (runtime flags), and make read code to set a 'no
reload waveform' new tag, since it uses a mapping to get existing
waveform in undo case...

14 months agoMake `draw_armature()` abort in case pose is not up-to-date.
Bastien Montagne [Thu, 19 Jul 2018 14:52:49 +0000 (16:52 +0200)]
Make `draw_armature()` abort in case pose is not up-to-date.

Previously it was calling `BKE_pose_rebuild()`, such thing shall never
be called from drawing code! Hopefully this now works as expected and
that horrible hack is not needed anymore.

14 months agoFix T55973: [2.8] Crash when 'apply pose as rest pose' when bone scale is 0,0,0.
Bastien Montagne [Thu, 19 Jul 2018 14:48:21 +0000 (16:48 +0200)]
Fix T55973: [2.8] Crash when 'apply pose as rest pose' when bone scale is 0,0,0.

`BKE_pose_rebuild()` should (ideally) always trigger a rebuild of the
depsgraph, since it can add or remove posechannels.

This function now takes a Main parameter to ensure that related
depsgraphes are tagged as dirty (kept it optional, for some corner cases).

We should also probably double-check calls to that function, think in
theory it should only be called from depsgraph itself? But for now...

14 months agoSubsurf: Add basic statistics to help benchmarking
Sergey Sharybin [Thu, 19 Jul 2018 14:27:18 +0000 (16:27 +0200)]
Subsurf: Add basic statistics to help benchmarking

14 months agoFix MSVC compilation error in a less hacky way
Clément Foucault [Thu, 19 Jul 2018 15:20:48 +0000 (17:20 +0200)]
Fix MSVC compilation error in a less hacky way

14 months agoFix compilation error with MSVC
Clément Foucault [Thu, 19 Jul 2018 15:18:08 +0000 (17:18 +0200)]
Fix compilation error with MSVC

14 months agoResolve the opposite vector ambiguity in Damped Track constraint.
Alexander Gavrilov [Sat, 7 Jul 2018 20:21:20 +0000 (23:21 +0300)]
Resolve the opposite vector ambiguity in Damped Track constraint.

Damped Track by specification attempts to arrive at the desired
direction via the shortest rotation. However with opposite vectors
there are infinitely many valid 180 degree rotations. Currently
it gives up and does nothing.

I think that it would be more reasonable to resolve the ambiguity
arbitrarily, so that Damped Track won't have a weird dead zone.
To make it more predictable I use a local axis.

In addition, the singularity area vicinity has some floating
point precision problems that result in significant jitter.
This applies workarounds for two causes of instability.

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

14 months agoFix crash with previews of non-IDs, like pose library thumbnails.
Brecht Van Lommel [Thu, 19 Jul 2018 14:27:44 +0000 (16:27 +0200)]
Fix crash with previews of non-IDs, like pose library thumbnails.

14 months agoGPU: Add GC to FBOs and UBOs and centralize all GCs
Clément Foucault [Thu, 19 Jul 2018 13:48:13 +0000 (15:48 +0200)]
GPU: Add GC to FBOs and UBOs and centralize all GCs

GPUFrameBuffers were being free when no context was attached or in the
wrong gl context. This make sure this does not happen again.

You can now safely free any gl resource from any thread (well as long as
it's not used anymore!).

14 months agoSubsurf: Fix wrong edge original index
Sergey Sharybin [Wed, 18 Jul 2018 15:49:12 +0000 (17:49 +0200)]
Subsurf: Fix wrong edge original index

14 months agoSubsurf: Set original index for high-poly vertices
Sergey Sharybin [Wed, 18 Jul 2018 15:34:44 +0000 (17:34 +0200)]
Subsurf: Set original index for high-poly vertices

14 months agoCleanup: style
Campbell Barton [Thu, 19 Jul 2018 06:06:37 +0000 (16:06 +1000)]
Cleanup: style

14 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Thu, 19 Jul 2018 02:02:16 +0000 (20:02 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

14 months agomake.bat : restore msvc2015 support.
Ray Molenkamp [Thu, 19 Jul 2018 02:00:34 +0000 (20:00 -0600)]
make.bat : restore msvc2015 support.

broke when i removed the 2013 support.

14 months agoCycles: increase volume stack to support 32 overlapping volumes.
Brecht Van Lommel [Wed, 18 Jul 2018 20:58:52 +0000 (22:58 +0200)]
Cycles: increase volume stack to support 32 overlapping volumes.

This increases stack memory usage some, and ideally we'd support a dynamic
size. But this is quite difficult on the GPU and hopefully 32 is enough even
for very complex cases.

14 months agoFix E key in Python console not working after recent changes.
Brecht Van Lommel [Wed, 18 Jul 2018 20:23:29 +0000 (22:23 +0200)]
Fix E key in Python console not working after recent changes.

14 months agoIcon/Render Preview: Fix Race condition with BKE_*_localize
Clément Foucault [Wed, 18 Jul 2018 17:09:05 +0000 (19:09 +0200)]
Icon/Render Preview: Fix Race condition with BKE_*_localize

When editing a Material the depsgraph can throw away the evaluated ID
before the preview job localized the said ID.

To fix this we localize the ID from the main thread.

Also fix WM_OT_previews_ensure crashing because of no depsgraph.

14 months agoFix/workaround T56019: memory leak with preview renders.
Brecht Van Lommel [Wed, 18 Jul 2018 16:45:36 +0000 (18:45 +0200)]
Fix/workaround T56019: memory leak with preview renders.

I would not expect the order of registration to matter, and ideally we want
to order the engines in the UI menu differently, but this helps for now.

14 months agoCleanup: remove debug comment.
Brecht Van Lommel [Wed, 18 Jul 2018 16:11:59 +0000 (18:11 +0200)]
Cleanup: remove debug comment.

14 months agoCycles: Fix missing nested particle systems when instanced multiple times
Sergey Sharybin [Wed, 18 Jul 2018 14:09:19 +0000 (16:09 +0200)]
Cycles: Fix missing nested particle systems when instanced multiple times

Was only visible when doing command line, since it was happening due to
cache-free policy which was aimed to bring memory usage down.

The issue is that if object with particle system is used as a nested
duplicator multiple times, it will only generate children first time,
and after that its caches are freed. After that duplication system
can not generate any instances, since the path cache is lost.

Now we delay caches free to after all objects are synchronized, which
ensures all instances are generated.

This will increase a memory peak a bit during object synchronization
time, but overall it shouldn't be that bad, since memory footprint
after synchronization will stay the same as before this change.

The ultimate thing to do here would be to drop the whole dependency
graph away, but this will require:

- API on engine side, to inform it to drop the dependency graph.
- Changes in Cycles report system to NOT use evaluated scene to get
  scene name (evaluated scene will be gone with dependency graph).

14 months agoSubsurf: Add subdivision code which uses new module
Sergey Sharybin [Tue, 17 Jul 2018 16:09:18 +0000 (18:09 +0200)]
Subsurf: Add subdivision code which uses new module

The code is ifdef-ed for now, since there is more work needed
to be done before we can officially switch to it.

Uses new subdiv module.

14 months agoSubsurf: Begin new subdivision surface module
Sergey Sharybin [Tue, 17 Jul 2018 16:07:26 +0000 (18:07 +0200)]
Subsurf: Begin new subdivision surface module

The idea is to use this as a replacement of old CCG, now it is
based on OpenSubdiv. The goal is to reduce any possible overhead
which was happening with OpenSubdiv used by CCG.

Currently implemented/supported:

- Creation from mesh, including topology on OpenSubdiv side,
  its refinement.

- Evaluation of limit point, first order derivatives, normal,
  and face-varying data for individual coarse position.

- Evaluation of whole patches.

  Currently not optimized, uses evaluation of individual coarse
  positions.

- Creation of Mesh from subdiv, with all geometry being real:
  all mvert, medge, mloop, and mpoly.

  This includes custom data interpolation, but all faces currently
  are getting separated (they are converted to ptex patches, which
  we need to weld back together).

Still need to support lighter weights grids and such, but this
is already a required part to have subsurf working in the middle
of modifier stack.

Annoying part is ifdef all over the place, to keep it compilable
when OpenSubdiv is disabled. More cleaner approach would be to
have stub API for OpenSubdiv, so everything gets ifdef-ed in a
much fewer places.

14 months agoOpenSubdiv: Add API to evaluate face-varying data
Sergey Sharybin [Tue, 17 Jul 2018 16:06:32 +0000 (18:06 +0200)]
OpenSubdiv: Add API to evaluate face-varying data

There are move changes along the line to keep everything
working from from C.

14 months agoCleanup: style for GPU module
Campbell Barton [Wed, 18 Jul 2018 13:09:31 +0000 (23:09 +1000)]
Cleanup: style for GPU module

14 months agoGPU: Fix build error on Mac and Windows.
Clément Foucault [Wed, 18 Jul 2018 12:58:32 +0000 (14:58 +0200)]
GPU: Fix build error on Mac and Windows.

14 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Wed, 18 Jul 2018 12:13:02 +0000 (14:13 +0200)]
Merge branch 'master' into blender2.8

14 months ago3D View: show 3D axis-letter when pointing away
Campbell Barton [Wed, 18 Jul 2018 12:03:52 +0000 (22:03 +1000)]
3D View: show 3D axis-letter when pointing away

While only the positive axis is shown,
account for an exception when axis aligned.

14 months agoCycles: add Principled Hair BSDF.
L. E. Segovia [Wed, 18 Jul 2018 09:14:43 +0000 (11:14 +0200)]
Cycles: add Principled Hair BSDF.

This is a physically-based, easy-to-use shader for rendering hair and fur,
with controls for melanin, roughness and randomization.

Based on the paper "A Practical and Controllable Hair and Fur Model for
Production Path Tracing".

Implemented by Leonardo E. Segovia and Lukas Stockner, part of Google
Summer of Code 2018.

14 months agoCleanup: Cryptomatte node style tweaks.
Brecht Van Lommel [Wed, 18 Jul 2018 11:34:22 +0000 (13:34 +0200)]
Cleanup: Cryptomatte node style tweaks.

14 months agoCompositor: Cryptomatte compositing node.
Stefan Werner [Wed, 18 Jul 2018 11:03:09 +0000 (13:03 +0200)]
Compositor: Cryptomatte compositing node.

This patch adds a new matte node that implements the Cryptomatte specification.
It also incluces a custom eye dropper that works outside of a color picker.
Cryptomatte export for the Cycles render engine will be in a separate patch.

Reviewers: brecht

Reviewed By: brecht

Subscribers: brecht

Tags: #compositing

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

14 months agoGWN: Port to GPU module: Replace GWN prefix by GPU
Clément Foucault [Tue, 17 Jul 2018 22:12:21 +0000 (00:12 +0200)]
GWN: Port to GPU module: Replace GWN prefix by GPU

14 months agoGWN: Port to GPU module: Move files to GPU
Clément Foucault [Tue, 17 Jul 2018 19:11:23 +0000 (21:11 +0200)]
GWN: Port to GPU module: Move files to GPU

This does not include all the struct and type renaming. Only files were
renamed.

gwn_batch.c/h was fusioned with GPU_batch.c/h
gwn_immediate.c/h was fusioned with GPU_immediate.c/h
gwn_imm_util.c/h was fusioned with GPU_immediate_util.c/h

14 months agoGWN: Port to GPU module: codestyle & licence
Clément Foucault [Tue, 17 Jul 2018 12:46:44 +0000 (14:46 +0200)]
GWN: Port to GPU module: codestyle & licence

14 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Tue, 17 Jul 2018 20:46:22 +0000 (14:46 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

14 months agomake.bat: remove msvc2013 support.
Ray Molenkamp [Tue, 17 Jul 2018 20:44:47 +0000 (14:44 -0600)]
make.bat: remove msvc2013 support.

14 months agoRender: add "OpenGL" render engine.
Brecht Van Lommel [Wed, 11 Jul 2018 09:43:56 +0000 (11:43 +0200)]
Render: add "OpenGL" render engine.

This is intended for quick renders for previsualization, animation previews
or sequencer previews. It provides the same settings as found in the 3D view
Shading popover in solid display mode, but in the scene render properties.

The "Workbench" engine was removed, and this name no longer appears in the
user interface, it's purely an internal name. We might come up with a better
name for this OpenGL engine still, but it's good to be consistent with the
OpenGL Render operator name since this has a similar purpose.

14 months agoCleanup: moving shading type into View3DShading.
Brecht Van Lommel [Wed, 11 Jul 2018 12:20:39 +0000 (14:20 +0200)]
Cleanup: moving shading type into View3DShading.

So all shading settings are in this struct and can be reused in the OpenGL
render engine.

14 months agoUI: move specular light settings to Lights tab in user preferences.
Brecht Van Lommel [Tue, 17 Jul 2018 11:58:08 +0000 (13:58 +0200)]
UI: move specular light settings to Lights tab in user preferences.

14 months agoFix Python error removing studio lights in user preferences.
Brecht Van Lommel [Tue, 17 Jul 2018 12:21:16 +0000 (14:21 +0200)]
Fix Python error removing studio lights in user preferences.

14 months agoFix inconsistent shade smooth naming in object and edit mode.
Brecht Van Lommel [Tue, 17 Jul 2018 10:33:47 +0000 (12:33 +0200)]
Fix inconsistent shade smooth naming in object and edit mode.

14 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Tue, 17 Jul 2018 11:58:26 +0000 (13:58 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix T56003: Opening image files as movies in VSE crashes.
Bastien Montagne [Tue, 17 Jul 2018 11:55:43 +0000 (13:55 +0200)]
Fix T56003: Opening image files as movies in VSE crashes.

metadata loading code was assuming all videos in Blender were from
FFMPEG... added empty place-holders for other types too, we probably
could load some metadata from pictures or AVI files too!

14 months agoWorld: Added 'Viewport Display' panel
Jeroen Bakker [Tue, 17 Jul 2018 10:35:45 +0000 (12:35 +0200)]
World: Added 'Viewport Display' panel

The Properties->World tab had no Viewport Display panel. The world color
itself was hidden when the 'use_node_tree' was enabled.

Also renamed the World.horizon_color to World.color as it has nothing to
do with the color of the horizon (old BI feature)

14 months agoUI: Single-column and flow layout for Scene properties
Vuk Gardašević [Tue, 17 Jul 2018 10:17:42 +0000 (12:17 +0200)]
UI: Single-column and flow layout for Scene properties

See D3532

14 months agoUI: Minor fixes to separators on menus
Vuk Gardašević [Tue, 17 Jul 2018 09:59:24 +0000 (11:59 +0200)]
UI: Minor fixes to separators on menus

Closes D3547

14 months agoObject Mode: Add back object bound display
Clément Foucault [Tue, 17 Jul 2018 09:36:07 +0000 (11:36 +0200)]
Object Mode: Add back object bound display

14 months agoUI: Lamp -> Light for the object type visibility operators
Pablo Vazquez [Mon, 16 Jul 2018 22:45:56 +0000 (00:45 +0200)]
UI: Lamp -> Light for the object type visibility operators

Spotted in a live stream by Emilton Mendoza, thanks!

14 months agoFix (IRC-reported) wrong usercount handling of deprecated IPO datablocks.
Bastien Montagne [Mon, 16 Jul 2018 20:29:26 +0000 (22:29 +0200)]
Fix (IRC-reported) wrong usercount handling of deprecated IPO datablocks.

versionning code would unref those twice... Reported by @ßergey on IRC, thanks!

14 months agoEevee: Add debug visual for Cascaded Shadow Maps
Clément Foucault [Mon, 16 Jul 2018 18:08:02 +0000 (20:08 +0200)]
Eevee: Add debug visual for Cascaded Shadow Maps

14 months agoDRWDebug: Add new debug functions for spheres and matrices.
Clément Foucault [Mon, 16 Jul 2018 18:07:13 +0000 (20:07 +0200)]
DRWDebug: Add new debug functions for spheres and matrices.

14 months agoEevee: Fix Cascaded Shadow Maps glitches
Clément Foucault [Mon, 16 Jul 2018 17:54:37 +0000 (19:54 +0200)]
Eevee: Fix Cascaded Shadow Maps glitches

There was an issue that caused the cascaded shadow map to appear glitchy
when the lamp was not at the origin.

14 months agoWorkbench: Fix use of uninitialized memory.
Clément Foucault [Mon, 16 Jul 2018 13:02:42 +0000 (15:02 +0200)]
Workbench: Fix use of uninitialized memory.

14 months agoStudioLight: Fix codestyle
Clément Foucault [Mon, 16 Jul 2018 13:02:08 +0000 (15:02 +0200)]
StudioLight: Fix codestyle

14 months agoSmoke: Port display to Workbench + object mode
Clément Foucault [Mon, 16 Jul 2018 13:01:44 +0000 (15:01 +0200)]
Smoke: Port display to Workbench + object mode

This does not fix the smokesim. It only port the drawing method.

The Object mode engine is in charge of rendering the velocity debugging.

Things left to do:
- Flame rendering.
- Color Ramp coloring of volume data.
- View facing slicing (for now it's only doing sampling starting from the
  volume bounds which gives a squarish look)
- Add option to enable dithering (currently on by default.

14 months agoMatcap: Fix missing pixel on preview icons
Clément Foucault [Wed, 11 Jul 2018 17:01:12 +0000 (19:01 +0200)]
Matcap: Fix missing pixel on preview icons

14 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 15:34:10 +0000 (17:34 +0200)]
Merge branch 'master' into blender2.8

14 months agoGhost: Fix memory leak happening with keyboard mapping access
Sergey Sharybin [Mon, 16 Jul 2018 15:32:57 +0000 (17:32 +0200)]
Ghost: Fix memory leak happening with keyboard mapping access

So far only noticed system de-initialization doesn't perform full
object free. So rather harmless but yet stupid.

14 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 14:18:43 +0000 (16:18 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: Remove obscure flag which was only used for read in subsurf code
Sergey Sharybin [Mon, 16 Jul 2018 14:15:57 +0000 (16:15 +0200)]
Cleanup: Remove obscure flag which was only used for read in subsurf code

Some sort of rudiment from many years ago, is never set by 2.5x code.

14 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 13:58:39 +0000 (15:58 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: Use const qualifier for UV vertex map
Sergey Sharybin [Mon, 16 Jul 2018 13:58:12 +0000 (15:58 +0200)]
Cleanup: Use const qualifier for UV vertex map

14 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Mon, 16 Jul 2018 13:47:03 +0000 (15:47 +0200)]
Merge branch 'master' into blender2.8

14 months agoCleanup: More clear naming in UV vertex/element mappings
Sergey Sharybin [Mon, 16 Jul 2018 13:37:27 +0000 (15:37 +0200)]
Cleanup: More clear naming in UV vertex/element mappings

Also use unsigned short for loop index within a polygon for UV vertex
mapping, which matches UV element mapping.

14 months agoMerge branch 'master' into blender2.8
Philipp Oeser [Mon, 16 Jul 2018 13:16:00 +0000 (15:16 +0200)]
Merge branch 'master' into blender2.8

14 months agoFix T55944: fbx export error with smoothing face
Philipp Oeser [Mon, 16 Jul 2018 07:48:52 +0000 (09:48 +0200)]
Fix T55944: fbx export error with smoothing face

ddee0931b868 added PROP_RAW_BOOLEAN case for foreach_set, but missed
foreach_get

Reviewed By: brecht

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

14 months agoFix T55527: creating a Quaternion without args should result in identity
Philipp Oeser [Mon, 16 Jul 2018 07:37:24 +0000 (09:37 +0200)]
Fix T55527: creating a Quaternion without args should result in identity
quaternion

Reviewed By: campbellbarton

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

14 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Mon, 16 Jul 2018 12:36:59 +0000 (14:36 +0200)]
Merge branch 'master' into blender2.8

14 months agoBuildbot: update for new VS2017 buildbot worker name.
Brecht Van Lommel [Mon, 16 Jul 2018 12:34:24 +0000 (14:34 +0200)]
Buildbot: update for new VS2017 buildbot worker name.

14 months agoFix compilation with older OpenSubdiv libraries
Sergey Sharybin [Mon, 16 Jul 2018 10:55:39 +0000 (12:55 +0200)]
Fix compilation with older OpenSubdiv libraries

Only fixes compilation error, the functionality will be limited.

Currently we don't care that much, since all the work is done in
the branch anyway.

Later on when we'll know which fixes we need to apply on top of
latest OpenSubdiv library we will call a library upgrade.