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

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

Reviewed By: campbellbarton

Differential Revision:

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

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

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

3 years agoOpenSubdiv: Remove one more unused file
Sergey Sharybin [Mon, 16 Jul 2018 10:34:19 +0000 (12:34 +0200)]
OpenSubdiv: Remove one more unused file

3 years agoOpenSubdiv: Remove unused file
Sergey Sharybin [Mon, 16 Jul 2018 10:33:32 +0000 (12:33 +0200)]
OpenSubdiv: Remove unused file

3 years agoOpenSubdiv: Remove UV coordinates from converter
Sergey Sharybin [Mon, 16 Jul 2018 09:12:02 +0000 (11:12 +0200)]
OpenSubdiv: Remove UV coordinates from converter

Converter only defines topology, not coordinates or (face)varying data.

3 years agoOpenSubdiv: Re-work C-API integration
Sergey Sharybin [Mon, 16 Jul 2018 07:28:05 +0000 (09:28 +0200)]
OpenSubdiv: Re-work C-API integration

Main goal is to make API simpler to follow (at least ion terms what
is defined/declared where, as opposite of handful big headers which
includes all the declarations), and also avoid a big set of long and
obscure functions.

Now C-API files are split into smaller ones, following OpenSubdiv
behavior more closely, and also function pointers in structures
used a lot more, which shortens functions names,

UV integration part in GL Mesh is mainly stripped away, it needs
to be done differently. On a related topic, UV coordinates API in
converter needs to be removed as well, we do not need coordinates,
only island connectivity information there.

Additional changes:

- Varying interpolation in evaluator API are temporarily disabled,
  need to extend API somewhere (probably, evaluator's API) to inform
  layout information of vertex data (whether it contains varying
  data, width, stride and such).

- Evaluator now can interpolate face-varying data.
  Only works for adaptive refiner, since some issues in OpenSubdiv

Planned changes:

- Remove uv coordinates from TopologyConverter.
- Support evaluation of patches (as opposite to individual coordinates
  as it happens currently).
- Support more flexible layout of varying and face-varying data.
  It is stupid to assume varying is 3 floats and face-varying 2 floats.
- Support of second order derivatives.
- Everything else what i'm missing in this list.

3 years agoCleanup: doxy comments
Campbell Barton [Sun, 15 Jul 2018 18:29:11 +0000 (20:29 +0200)]
Cleanup: doxy comments

3 years agoGizmo: update Python templates
Campbell Barton [Sun, 15 Jul 2018 17:49:07 +0000 (19:49 +0200)]
Gizmo: update Python templates

3 years agoFix Cycles incorrect resize and CMYK conversion of uint16/half images.
Brecht Van Lommel [Sun, 15 Jul 2018 16:34:31 +0000 (18:34 +0200)]
Fix Cycles incorrect resize and CMYK conversion of uint16/half images.

3 years agoGPU_matrix: use Blender's naming conventions
Campbell Barton [Sun, 15 Jul 2018 13:27:15 +0000 (15:27 +0200)]
GPU_matrix: use Blender's naming conventions

Thanks to @sergey for review

3 years agoCleanup: use variable names based on term gizmo
Campbell Barton [Sun, 15 Jul 2018 12:24:10 +0000 (14:24 +0200)]
Cleanup: use variable names based on term gizmo

3 years ago3D View: New view gizmo design
Campbell Barton [Sun, 15 Jul 2018 09:28:28 +0000 (11:28 +0200)]
3D View: New view gizmo design

Simplify the default navigation gizmo.

See: T54723

3 years agoCleanup: style, doxy file
Campbell Barton [Sun, 15 Jul 2018 08:53:34 +0000 (10:53 +0200)]
Cleanup: style, doxy file

3 years agoCleanup: split GPU_batch
Campbell Barton [Sun, 15 Jul 2018 08:34:31 +0000 (10:34 +0200)]
Cleanup: split GPU_batch

Split out presets and utilities for creating batches.
These functions are quite specialized and not related to typical usage.

3 years agoUI: Default theme minor tweaks
Pablo Vazquez [Sun, 15 Jul 2018 02:44:45 +0000 (04:44 +0200)]
UI: Default theme minor tweaks

Darker color for group nodes and minor adjustments

3 years agoUI: Camera Display panel rename to Viewport Display
Pablo Vazquez [Sun, 15 Jul 2018 00:35:33 +0000 (02:35 +0200)]
UI: Camera Display panel rename to Viewport Display

Matches all other panels with Viewport properties

3 years agoUI: Use icon for Material Link
Pablo Vazquez [Sat, 14 Jul 2018 23:22:24 +0000 (01:22 +0200)]
UI: Use icon for Material Link

Communicates the same by giving more room to the Material datablock name

3 years agoUI: Use full width for ID blocks in World, Light, Camera, Texture
Pablo Vazquez [Sat, 14 Jul 2018 23:15:32 +0000 (01:15 +0200)]
UI: Use full width for ID blocks in World, Light, Camera, Texture

Also close Preview panel for lights by default and move World custom props last

3 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Sat, 14 Jul 2018 22:54:12 +0000 (00:54 +0200)]
Merge branch 'master' into blender2.8

3 years agoCycles: add voronoi features and distance settings from Blender.
charlie [Sat, 14 Jul 2018 11:11:28 +0000 (13:11 +0200)]
Cycles: add voronoi features and distance settings from Blender.

Features to get the 2nd, 3rd, 4th closest point instead of the closest, and
various distance metrics. No viewport/Eevee support yet.

Patch by Michel Anders, Charlie Jolly and Brecht Van Lommel.

Differential Revision:

3 years agoUI: Hide Preview panel by default on Material properties
Pablo Vazquez [Sat, 14 Jul 2018 22:13:35 +0000 (00:13 +0200)]
UI: Hide Preview panel by default on Material properties

And move Custom Properties panel last

3 years agoCleanup: use float3 SSE instead of ssef for voronoi texture.
Brecht Van Lommel [Sat, 14 Jul 2018 13:38:58 +0000 (15:38 +0200)]
Cleanup: use float3 SSE instead of ssef for voronoi texture.

3 years agoWM: rename manipulator to gizmo in the toolbar
Campbell Barton [Sat, 14 Jul 2018 21:58:07 +0000 (23:58 +0200)]
WM: rename manipulator to gizmo in the toolbar

3 years agoWM: rename manipulator to gizmo in Python API
Campbell Barton [Sat, 14 Jul 2018 21:55:20 +0000 (23:55 +0200)]
WM: rename manipulator to gizmo in Python API

3 years agoWM: rename manipulator to gizmo internally
Campbell Barton [Sat, 14 Jul 2018 21:49:00 +0000 (23:49 +0200)]
WM: rename manipulator to gizmo internally

3 years agoWM: rename files, manipulator -> gizmo
Campbell Barton [Sat, 14 Jul 2018 21:16:34 +0000 (23:16 +0200)]
WM: rename files, manipulator -> gizmo

Edit doxy files and header guards only.

3 years agoUI: rename manipulator to gizmo
Campbell Barton [Sat, 14 Jul 2018 20:29:35 +0000 (22:29 +0200)]
UI: rename manipulator to gizmo

This is a common, short, distinctive term often used for this purpose.

Changes to internal API's still needed.

3 years agoGPU_batch: fix error w/ interior line removal
Campbell Barton [Sat, 14 Jul 2018 13:59:47 +0000 (15:59 +0200)]
GPU_batch: fix error w/ interior line removal

Caused glitch w/ navigation icons showing inner lines.

3 years agoKeymap: reduce right shift in 2.7x keymap
Campbell Barton [Sat, 14 Jul 2018 09:42:36 +0000 (11:42 +0200)]
Keymap: reduce right shift in 2.7x keymap

3 years agoKeymap: reduce right shift in generated keymaps
Campbell Barton [Sat, 14 Jul 2018 09:29:48 +0000 (11:29 +0200)]
Keymap: reduce right shift in generated keymaps

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 14 Jul 2018 08:22:15 +0000 (10:22 +0200)]
Merge branch 'master' into blender2.8

3 years agoRename operator property from last commit
Campbell Barton [Sat, 14 Jul 2018 08:19:53 +0000 (10:19 +0200)]
Rename operator property from last commit

Restore operator had same option named differently.

3 years agoKeymap: option to export all keymaps
Campbell Barton [Sat, 14 Jul 2018 08:15:46 +0000 (10:15 +0200)]
Keymap: option to export all keymaps

Useful to store a snapshot of the current keymap state
so changes to the default keymap are ignored.

Also useful for testing keymap export works properly.

3 years agoCleanup: f-string use
Campbell Barton [Sat, 14 Jul 2018 07:32:52 +0000 (09:32 +0200)]
Cleanup: f-string use

3 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 14 Jul 2018 07:31:52 +0000 (09:31 +0200)]
Merge branch 'master' into blender2.8