3 years agoFix assert when loading file with multiple windows opened
Clément Foucault [Mon, 23 Jul 2018 15:44:16 +0000 (17:44 +0200)]
Fix assert when loading file with multiple windows opened

... or when loading a file when having more windows opened than the file

3 years agoEevee: Remove Colored volumetric option.
Clément Foucault [Mon, 23 Jul 2018 15:40:34 +0000 (17:40 +0200)]
Eevee: Remove Colored volumetric option.

This option is not necessary as it uses as much memory as the mono-chromatic

3 years agoFix large font drawing blurriness in a better way.
Brecht Van Lommel [Mon, 23 Jul 2018 14:10:46 +0000 (16:10 +0200)]
Fix large font drawing blurriness in a better way.

GPU_LINEAR is there for shadow font blurring, the real issue was lack of
rounding for the batch offset.

3 years agotransform_snap_object: Better bvhtree creation management for editing multiple objects.
Germano [Mon, 23 Jul 2018 14:04:58 +0000 (11:04 -0300)]
transform_snap_object: Better bvhtree creation management for editing multiple objects.

- Use the object referenced in `BMEditMesh` as the `ghash` key to save the bvhtrees in cache;
- Create a boundbox around edit_mesh to test the snap before creating bvhtree;
- Save the `edit_mesh`s bvhtree in the mesh bvh_cache;

This is a part of the D3504.

3 years 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

3 years 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.

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

3 years 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.

3 years 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

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.

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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.

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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

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

3 years 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.

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

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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.

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

3 years 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.

3 years 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.

3 years 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

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

3 years 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.

3 years 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

3 years 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. ;)

3 years 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...

3 years 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.

3 years 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...

3 years 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

3 years 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

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

3 years 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:

3 years 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.

3 years 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!).

3 years 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

3 years 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

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

3 years 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

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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.

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

3 years 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).

3 years 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.

3 years 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

- 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.

3 years 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.

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

3 years 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.

3 years 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

3 years 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.

3 years 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.

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

3 years 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:

3 years 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

3 years 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

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

3 years 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

3 years 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

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

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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

3 years 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!

3 years 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)

3 years 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

3 years 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

3 years 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

3 years 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!

3 years 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!

3 years 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

3 years 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.

3 years 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.

3 years 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.

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

3 years 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.

3 years 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

3 years 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

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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

3 years 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

3 years 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.

3 years 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

3 years 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

Reviewed By: brecht

Differential Revision: