blender.git
2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 10:06:33 +0000 (12:06 +0200)]
Merge branch 'master' into blender2.8

2 years agoGHOST/X11: Correct non-latin kb workaround case
Campbell Barton [Sat, 9 Jun 2018 10:04:07 +0000 (12:04 +0200)]
GHOST/X11: Correct non-latin kb workaround case

Harmless since this is always enabled,
only do this for easier troubleshooting when disabling the define.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sat, 9 Jun 2018 09:27:22 +0000 (11:27 +0200)]
Merge branch 'master' into blender2.8

2 years agoGHOST/X11: support accessing physical keycodes
Campbell Barton [Sat, 9 Jun 2018 09:23:41 +0000 (11:23 +0200)]
GHOST/X11: support accessing physical keycodes

This means we can check keys such as tilde in a generic way.

2 years agoGHOST/X11: Map unknown us.intl key to accentgrave
Campbell Barton [Sat, 9 Jun 2018 07:10:04 +0000 (09:10 +0200)]
GHOST/X11: Map unknown us.intl key to accentgrave

2 years agoLayout for materials closer to single column
Pablo Vazquez [Fri, 8 Jun 2018 21:56:28 +0000 (23:56 +0200)]
Layout for materials closer to single column

2 years agoAudaspace: add support for latest ffmpeg.
Jörg Müller [Fri, 8 Jun 2018 21:10:52 +0000 (23:10 +0200)]
Audaspace: add support for latest ffmpeg.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 20:19:39 +0000 (22:19 +0200)]
Merge branch 'master' into blender2.8

2 years agoWM: correct recent change to click/drag detection
Campbell Barton [Fri, 8 Jun 2018 20:17:21 +0000 (22:17 +0200)]
WM: correct recent change to click/drag detection

fb1915d87090a - caused click/drag events not to be detected.

Now check a key is a mouse or keyboard event.

2 years agoMerge branch 'master' into 28
Campbell Barton [Fri, 8 Jun 2018 17:03:37 +0000 (19:03 +0200)]
Merge branch 'master' into 28

2 years agoWM: fix panel drag event handling
Campbell Barton [Fri, 8 Jun 2018 16:58:41 +0000 (18:58 +0200)]
WM: fix panel drag event handling

2 years agoWM: fix node link & background drag
Campbell Barton [Fri, 8 Jun 2018 16:52:00 +0000 (18:52 +0200)]
WM: fix node link & background drag

2 years agoWM: fix panel drag event handling
Campbell Barton [Fri, 8 Jun 2018 16:58:41 +0000 (18:58 +0200)]
WM: fix panel drag event handling

2 years agoWM: fix node link & background drag
Campbell Barton [Fri, 8 Jun 2018 16:52:00 +0000 (18:52 +0200)]
WM: fix node link & background drag

2 years agoDepsgraph: Remove no longer needed nodetree values copying on eval
Dalai Felinto [Fri, 8 Jun 2018 15:51:08 +0000 (17:51 +0200)]
Depsgraph: Remove no longer needed nodetree values copying on eval

Note: Depsgraph still calls the nodetree eval function that doesn't
nothing in turn. We can remove it, but it is harmless though.

2 years agoUI: clear properties color when empty
Campbell Barton [Fri, 8 Jun 2018 15:29:29 +0000 (17:29 +0200)]
UI: clear properties color when empty

2 years agoSculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated Derivedmesh.
Bastien Montagne [Fri, 8 Jun 2018 15:04:54 +0000 (17:04 +0200)]
Sculpt/Paint: move PBVH building to use evaluated mesh instead of deprecated Derivedmesh.

Pretty straightforward changes, merely mimicking dm-related code,
which was already essentially using either Mesh or BMesh data to
build the PBVH...

Note that we "lose" the subsurf (a.k.a. grid) PBVH case here, but that
one was already dead code in current blender2.8, since final dm is
always a cddm built from evaluated mesh.

Proper fix is pending new code for subsurf/multires area.

2 years agoUI: remove tools space type, use properties context
Campbell Barton [Fri, 8 Jun 2018 14:30:56 +0000 (16:30 +0200)]
UI: remove tools space type, use properties context

We've decieded to use tools context in properties editor.

2 years agoDRW: Fix animated material not refreshing
Dalai Felinto [Fri, 8 Jun 2018 14:11:34 +0000 (16:11 +0200)]
DRW: Fix animated material not refreshing

This introduces a garbage collection system similar to gpu_texture.

2 years agoFix crash with wertex and weight modes
Sergey Sharybin [Fri, 8 Jun 2018 14:22:52 +0000 (16:22 +0200)]
Fix crash with wertex and weight modes

Similar to recent sculpt mode.

2 years agoRename: GPU_material_get_uniform_buffer > GPU_material_uniform_buffer_get
Dalai Felinto [Fri, 8 Jun 2018 13:54:11 +0000 (15:54 +0200)]
Rename: GPU_material_get_uniform_buffer > GPU_material_uniform_buffer_get

2 years agoRename: GPU_texture_orphans
Dalai Felinto [Fri, 8 Jun 2018 13:51:25 +0000 (15:51 +0200)]
Rename: GPU_texture_orphans

2 years agoWorkbench: XFlip Matcap per 3D View
Jeroen Bakker [Fri, 8 Jun 2018 14:12:25 +0000 (16:12 +0200)]
Workbench: XFlip Matcap per 3D View

Note: Icons are not yet updated.

2 years agoFix T55387: Render fullscreen from top menu crashes Blender
Julian Eisel [Fri, 8 Jun 2018 13:57:01 +0000 (15:57 +0200)]
Fix T55387: Render fullscreen from top menu crashes Blender

Would try to use data from global area for the newly created fullscreen area.
This should not happen, so instead of a global area use first area from layout.

2 years agoAlembic: replaced BLI_assert() with comment why the assert is wrong
Sybren A. Stüvel [Fri, 8 Jun 2018 13:49:33 +0000 (15:49 +0200)]
Alembic: replaced BLI_assert() with comment why the assert is wrong

The comment also hints at what should be fixed, instead.

2 years agoAlembic: slight clarifications
Sybren A. Stüvel [Fri, 8 Jun 2018 13:46:54 +0000 (15:46 +0200)]
Alembic: slight clarifications

2 years agoAlembic export: get evaluated object when exporting shape
Sybren A. Stüvel [Thu, 7 Jun 2018 16:59:50 +0000 (18:59 +0200)]
Alembic export: get evaluated object when exporting shape

2 years agoAlembic: Moved a BLI_assert
Sybren A. Stüvel [Fri, 8 Jun 2018 13:42:51 +0000 (15:42 +0200)]
Alembic: Moved a BLI_assert

The assert should only be triggered when assigning a pointer, and not
simply when checking the pointer.

2 years agomesh_get_eval_final() should check ob->runtime.mesh_eval
Sybren A. Stüvel [Fri, 8 Jun 2018 13:42:27 +0000 (15:42 +0200)]
mesh_get_eval_final() should check ob->runtime.mesh_eval

It has nothing to do with ob->derivedFinal, which it checked before.

2 years agoAdd check in BKE_pbvh_apply_vertCos that number of deforming cos matches number of...
Bastien Montagne [Fri, 8 Jun 2018 13:42:37 +0000 (15:42 +0200)]
Add check in BKE_pbvh_apply_vertCos that number of deforming cos matches number of pbvh vertices.

This shall help catching issues in future.

2 years agoFix T55404: Auto key with only-available doesn't work
Sergey Sharybin [Fri, 8 Jun 2018 13:42:42 +0000 (15:42 +0200)]
Fix T55404: Auto key with only-available doesn't work

2 years agoCode cleanup
Jeroen Bakker [Fri, 8 Jun 2018 13:35:25 +0000 (15:35 +0200)]
Code cleanup

2 years agoWorkbench: Custom StudioLight UI
Jeroen Bakker [Fri, 8 Jun 2018 13:34:13 +0000 (15:34 +0200)]
Workbench: Custom StudioLight UI

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 13:22:28 +0000 (15:22 +0200)]
Merge branch 'master' into blender2.8

2 years agoGHOST/X11: Map unknown es,dk keys to accentgrave
Campbell Barton [Fri, 8 Jun 2018 13:21:20 +0000 (15:21 +0200)]
GHOST/X11: Map unknown es,dk keys to accentgrave

2 years agoAlembic: fixed MSVC incompatibility
Sybren A. Stüvel [Fri, 8 Jun 2018 13:09:01 +0000 (15:09 +0200)]
Alembic: fixed MSVC incompatibility

2 years agoWorkbench: Default specular settings when no materials are used
Jeroen Bakker [Fri, 8 Jun 2018 13:07:05 +0000 (15:07 +0200)]
Workbench: Default specular settings when no materials are used

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 12:57:17 +0000 (14:57 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: unused var, trailing space
Campbell Barton [Fri, 8 Jun 2018 12:55:47 +0000 (14:55 +0200)]
Cleanup: unused var, trailing space

2 years agoGHOST/X11: Map unknown de,fr keys to accentgrave
Campbell Barton [Fri, 8 Jun 2018 12:53:03 +0000 (14:53 +0200)]
GHOST/X11: Map unknown de,fr keys to accentgrave

This still uses the correct string when typing text,
it just allows the key to be used in keymaps.

We should eventually add scan-code support.

2 years agoAlembic unit tests: fixed compiler errors
Sybren A. Stüvel [Fri, 8 Jun 2018 12:48:26 +0000 (14:48 +0200)]
Alembic unit tests: fixed compiler errors

This doesn't mean the code is correct, but at least it builds.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 8 Jun 2018 12:38:57 +0000 (14:38 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/blenkernel/BKE_sequencer.h
source/blender/blenkernel/intern/sequencer.c
source/blender/editors/curve/editcurve_paint.c
source/blender/editors/gpencil/gpencil_edit.c
source/blender/editors/gpencil/gpencil_paint.c
source/blender/editors/gpencil/gpencil_utils.c
source/blender/editors/include/ED_object.h
source/blender/editors/include/ED_view3d.h
source/blender/editors/interface/interface_eyedropper_depth.c
source/blender/editors/render/render_opengl.c
source/blender/editors/sculpt_paint/paint_image_proj.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/space_view3d/drawobject.c
source/blender/editors/space_view3d/view3d_draw.c
source/blender/editors/space_view3d/view3d_edit.c
source/blender/editors/space_view3d/view3d_intern.h
source/blender/editors/space_view3d/view3d_select.c
source/blender/editors/space_view3d/view3d_utils.c
source/blender/editors/transform/transform_conversions.c
source/blender/editors/transform/transform_snap.c
source/blender/python/intern/gpu_offscreen.c
source/blender/windowmanager/intern/wm_files.c

2 years agoFix T55380: Crash when getting out of EditMode in some cases
Sergey Sharybin [Fri, 8 Jun 2018 12:36:26 +0000 (14:36 +0200)]
Fix T55380: Crash when getting out of EditMode in some cases

Derived meshes are to be dead, so soon this code will be removed as well.

2 years agoWorkbench: Lights user pref
Jeroen Bakker [Fri, 8 Jun 2018 12:30:11 +0000 (14:30 +0200)]
Workbench: Lights user pref

2 years agoPrevent wheel causing spurious click/drag events
Campbell Barton [Fri, 8 Jun 2018 12:09:45 +0000 (14:09 +0200)]
Prevent wheel causing spurious click/drag events

2 years agoAlembic import: fixed memory management for CoW copies of CacheFile blocks
Sybren A. Stüvel [Fri, 8 Jun 2018 11:51:42 +0000 (13:51 +0200)]
Alembic import: fixed memory management for CoW copies of CacheFile blocks

When a CacheFile datablock is copied to an in-main datablock, it means that
the new copy should be independent of the old copy. In this case certain
properties are reset/duplicated. When it is copied to a no-main datablock,
we assume this is a copy-on-write copy that's used for evaluating things,
in which case the handle and object paths are referenced instead of
reset/ duplicated. This prevents us from re-opening the Alembic file every
time a new CoW copy is made.

The same approach is taken when freeing data (only when an in-main datablock
is freed do we actually free the data).

2 years agoAlembic import: assign cache_file handle to original datablock
Sybren A. Stüvel [Fri, 8 Jun 2018 11:52:18 +0000 (13:52 +0200)]
Alembic import: assign cache_file handle to original datablock

2 years agoCleanup: getting rid of G.main.
Bastien Montagne [Fri, 8 Jun 2018 10:16:37 +0000 (12:16 +0200)]
Cleanup: getting rid of G.main.

Sometimes one needs a *lot* of changes for a single G.main... :/

2 years agoFix T55391: Anim render only shows scene state at current frame (no animation)
Sergey Sharybin [Fri, 8 Jun 2018 10:12:26 +0000 (12:12 +0200)]
Fix T55391: Anim render only shows scene state at current frame (no animation)

2 years agoStudiolight: Segment when using float based matcaps
Jeroen Bakker [Fri, 8 Jun 2018 10:10:29 +0000 (12:10 +0200)]
Studiolight: Segment when using float based matcaps

2 years agoDepsgraph: Fix missing relations when camera has drivers
Sergey Sharybin [Fri, 8 Jun 2018 10:04:53 +0000 (12:04 +0200)]
Depsgraph: Fix missing relations when camera has drivers

2 years agoDepsgraph: Cleanup, make conditions more clear and less indented
Sergey Sharybin [Fri, 8 Jun 2018 09:46:51 +0000 (11:46 +0200)]
Depsgraph: Cleanup, make conditions more clear and less indented

2 years agoDepsgraph: Don't optimize out collections used by duplication system
Sergey Sharybin [Fri, 8 Jun 2018 09:42:41 +0000 (11:42 +0200)]
Depsgraph: Don't optimize out collections used by duplication system

This makes evaluated objects to point to a non-evaluated collection,
which is already really bad. What is even more worse, objects in those
collections are not evaluated either.

Proper solution would be to implement visibility flag for nodes, which
will be set to 0 for transform/geometry components, but which will be
1 for copy-on-write components.

This way we will guarantee consistency of dependency graph.

For now this change is good enough and unlocks production.

Fixes T55375: Crash when changing visibility of instanced collection
Fixes T55357: Particle geometry crash

2 years agoDepsgraph: Cleanup, indentation
Sergey Sharybin [Fri, 8 Jun 2018 09:27:58 +0000 (11:27 +0200)]
Depsgraph: Cleanup, indentation

2 years agoDepsgraph: Cleanup, make conditions more clear and less indented
Sergey Sharybin [Fri, 8 Jun 2018 09:25:00 +0000 (11:25 +0200)]
Depsgraph: Cleanup, make conditions more clear and less indented

2 years agoAlembic export: create render-evaluated depsgraph for exporting
Sybren A. Stüvel [Fri, 8 Jun 2018 09:52:36 +0000 (11:52 +0200)]
Alembic export: create render-evaluated depsgraph for exporting

Previously the context depsgraph was used, which (most likely) uses
viewport evaluation instead of render evaluation.

2 years agoCMake: disable WITH_COMPILER_ASAN for CMAKE_BUILD_TYPE Release
Jeroen Bakker [Fri, 8 Jun 2018 09:45:05 +0000 (11:45 +0200)]
CMake: disable WITH_COMPILER_ASAN for CMAKE_BUILD_TYPE Release

2 years agoCleanup: redundant check
Campbell Barton [Fri, 8 Jun 2018 09:28:42 +0000 (11:28 +0200)]
Cleanup: redundant check

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 08:54:51 +0000 (10:54 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix regression in grease pencil drawing
Campbell Barton [Fri, 8 Jun 2018 08:52:49 +0000 (10:52 +0200)]
Fix regression in grease pencil drawing

Drag events finished drawing early.

2 years agoWorkbench: UI for custom studio lights/matcaps
Jeroen Bakker [Thu, 7 Jun 2018 14:01:57 +0000 (16:01 +0200)]
Workbench: UI for custom studio lights/matcaps

- all known image types are supported
- BpyAPI for studiolights added
- added open user pref operator in shading menu
- possible to add multiple files in a single run

For now refreshing studio lights will free all studiolights and reinit
the whole mechanism. This can be improved by only freeing deleted, reset
updated and add new custom studiolights.

details to show currently only shows the path we perhaps want to add
other information also

2 years agoKeymap: continued testing/development (search key)
Campbell Barton [Fri, 8 Jun 2018 08:07:41 +0000 (10:07 +0200)]
Keymap: continued testing/development (search key)

Use Accent/Grave for search, to be more convenient than F-Keys.

This sets F3 back to what it was before.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 06:50:13 +0000 (08:50 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix T55301: Transform confirm on release fails w/ MMB
Campbell Barton [Fri, 8 Jun 2018 06:48:21 +0000 (08:48 +0200)]
Fix T55301: Transform confirm on release fails w/ MMB

2 years agoWM: backport event/keymap type util from 2.8
Campbell Barton [Fri, 8 Jun 2018 06:46:31 +0000 (08:46 +0200)]
WM: backport event/keymap type util from 2.8

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 06:10:35 +0000 (08:10 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space
Campbell Barton [Fri, 8 Jun 2018 06:07:48 +0000 (08:07 +0200)]
Cleanup: trailing space

Remove from blender/nodes, collada, blenfont & render.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 8 Jun 2018 06:02:50 +0000 (08:02 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix recently added drag events closing menus
Campbell Barton [Fri, 8 Jun 2018 06:01:43 +0000 (08:01 +0200)]
Fix recently added drag events closing menus

2 years agoTransform: fix non-3D view editmode assert
Campbell Barton [Fri, 8 Jun 2018 04:31:40 +0000 (06:31 +0200)]
Transform: fix non-3D view editmode assert

2 years agoKeymap: continued testing/development
Campbell Barton [Thu, 7 Jun 2018 18:46:12 +0000 (20:46 +0200)]
Keymap: continued testing/development

After testing in the studio and extending the event system for
drag events, we've agreed on adjustments to the new keymap,
see: T55162

- Tab: Edit-mode toggle.
- Tab + Cursor Drag: mode switching pie menu.
- Accent/Grave: for 3D view pie menu.
- F3: Search
- 1..3, Shift-1..3: Edit mesh vertex/edge/face toggle.

Other minor changes were made, however they aren't part of the design.

- Ctrl-Shift-S: Image editor Save-As (was F3)
- Ctrl-Alt-R: Repeat history (was F3)

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 18:41:10 +0000 (20:41 +0200)]
Merge branch 'master' into blender2.8

2 years agoWM: fix drag events applying after release
Campbell Barton [Thu, 7 Jun 2018 18:37:28 +0000 (20:37 +0200)]
WM: fix drag events applying after release

2 years agoGHOST/X11: Xinput/XIM support caused double key-up
Campbell Barton [Thu, 7 Jun 2018 18:32:51 +0000 (20:32 +0200)]
GHOST/X11: Xinput/XIM support caused double key-up

All keyboard events were sending double key events (including modifiers)
when xinput was enabled with gnome (causing much confusion!).

I cant test if XIM works,
but this isn't useful to send double events, so disabling for now.

2 years agoUniform Buffer Objects: Simplification refactor
Dalai Felinto [Thu, 7 Jun 2018 18:02:34 +0000 (20:02 +0200)]
Uniform Buffer Objects: Simplification refactor

Since we are only creating this and never updating, there is no need for
the original approach with the individual data to be updated.

Note we only populate the GPU data when binding the UBO, so we can in the
future easily create the UBOs in a separate thread than the main drawing one.

Also at the moment animated materials are not working. To fix that we need
to free/tag for free the GPUMaterials in BKE_material_eval.

2 years agoUniform Buffer Object: No more dirty tagging calls/check
Dalai Felinto [Thu, 7 Jun 2018 17:42:00 +0000 (19:42 +0200)]
Uniform Buffer Object: No more dirty tagging calls/check

2 years agoRename GPU_material_create_uniform_buffer > GPU_material_uniform_buffer_create
Dalai Felinto [Thu, 7 Jun 2018 17:40:47 +0000 (19:40 +0200)]
Rename GPU_material_create_uniform_buffer > GPU_material_uniform_buffer_create

2 years agoGLSL: No need to extract the UBO dynamic inputs
Dalai Felinto [Thu, 7 Jun 2018 17:40:08 +0000 (19:40 +0200)]
GLSL: No need to extract the UBO dynamic inputs

2 years agoDon't tag UBO as dirty anymore otherwise it still crashes on render
Dalai Felinto [Thu, 7 Jun 2018 17:19:37 +0000 (19:19 +0200)]
Don't tag UBO as dirty anymore otherwise it still crashes on render

2 years agoBKE_world_eval: cleanup
Dalai Felinto [Thu, 7 Jun 2018 17:15:36 +0000 (19:15 +0200)]
BKE_world_eval: cleanup

2 years agoNo more need to tag sss as dirty for EEVEE
Dalai Felinto [Thu, 7 Jun 2018 17:13:06 +0000 (19:13 +0200)]
No more need to tag sss as dirty for EEVEE

And for the records, this shoudn't have been added to the
GPU_material_uniform_buffer_tag_dirty function since they are unrelated.

2 years agoRemove more printfs ....
Clément Foucault [Thu, 7 Jun 2018 17:06:50 +0000 (19:06 +0200)]
Remove more printfs ....

2 years agoAlembic export: use depsgraph to get evaluated mesh/object
Sybren A. Stüvel [Thu, 7 Jun 2018 16:49:56 +0000 (18:49 +0200)]
Alembic export: use depsgraph to get evaluated mesh/object

2 years agoAlembic export: no need to check particle's mesh_final on export
Sybren A. Stüvel [Thu, 7 Jun 2018 16:35:07 +0000 (18:35 +0200)]
Alembic export: no need to check particle's mesh_final on export

Hair writing is still not working properly, though, but at least now
samples are written at all.

2 years agoAlembic import: don't crash Blender when reading invalid samples
Sybren A. Stüvel [Thu, 7 Jun 2018 16:34:05 +0000 (18:34 +0200)]
Alembic import: don't crash Blender when reading invalid samples

2 years agoAlembic hair writer: avoid double-free
Sybren A. Stüvel [Thu, 7 Jun 2018 15:55:13 +0000 (17:55 +0200)]
Alembic hair writer: avoid double-free

2 years agoAlembic export: cleaned up multiply-passed depsgraph & scene
Sybren A. Stüvel [Thu, 7 Jun 2018 15:54:36 +0000 (17:54 +0200)]
Alembic export: cleaned up multiply-passed depsgraph & scene

Those can now solely be found in the ExportSettings object.

2 years agoEevee: Fix hair not rendering.
Clément Foucault [Thu, 7 Jun 2018 16:58:06 +0000 (18:58 +0200)]
Eevee: Fix hair not rendering.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Thu, 7 Jun 2018 16:45:45 +0000 (18:45 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/editors/sculpt_paint/paint_vertex.c
source/blender/editors/sculpt_paint/sculpt.c
source/blender/editors/sculpt_paint/sculpt_undo.c

2 years agoRemove printfs
Clément Foucault [Thu, 7 Jun 2018 16:44:37 +0000 (18:44 +0200)]
Remove printfs

... it's getting late here.

2 years agoFix crash cause by SSS referencing Material Nodetree data.
Clément Foucault [Thu, 7 Jun 2018 16:43:43 +0000 (18:43 +0200)]
Fix crash cause by SSS referencing Material Nodetree data.

2 years agoFix memleak with GPUhairs.
Clément Foucault [Thu, 7 Jun 2018 16:43:10 +0000 (18:43 +0200)]
Fix memleak with GPUhairs.

2 years agoCleanup: typo, and 0 -> false for booleans.
Bastien Montagne [Thu, 7 Jun 2018 16:35:37 +0000 (18:35 +0200)]
Cleanup: typo, and 0 -> false for booleans.

2 years agoWireframe: Fix edges or non manifold meshes not showing.
Clément Foucault [Thu, 7 Jun 2018 16:01:29 +0000 (18:01 +0200)]
Wireframe: Fix edges or non manifold meshes not showing.

This will show the associated edges to the vertices but that's the only
workaround I can think of right now.

2 years agoWireframe: Change / Optimize the limited wireframe visibility option.
Clément Foucault [Thu, 7 Jun 2018 14:55:41 +0000 (16:55 +0200)]
Wireframe: Change / Optimize the limited wireframe visibility option.

This make the limited wireframe not a performance problem anymore.

However, this does change the number of edges displayed as the threshold
is now computed per vertex instead of per edges.

For this reason we extended (internaly) the range of the slider so that the
users can hide more edge.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 15:08:55 +0000 (17:08 +0200)]
Merge branch 'master' into blender2.8

2 years agoWM: add support for drag events
Campbell Barton [Thu, 7 Jun 2018 15:05:49 +0000 (17:05 +0200)]
WM: add support for drag events

This allows for a single key to be mapped to both release and drag,
useful for pie menus to share a key with a different action.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 14:53:31 +0000 (16:53 +0200)]
Merge branch 'master' into blender2.8

2 years agoFix key repeat events resetting the click timer
Campbell Barton [Thu, 7 Jun 2018 14:51:03 +0000 (16:51 +0200)]
Fix key repeat events resetting the click timer

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 7 Jun 2018 14:45:10 +0000 (16:45 +0200)]
Merge branch 'master' into blender2.8