blender.git
2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 18 Jun 2018 16:12:04 +0000 (18:12 +0200)]
Merge branch 'master' into blender2.8

2 years agoAdd .editorconfig file
Campbell Barton [Mon, 18 Jun 2018 16:09:45 +0000 (18:09 +0200)]
Add .editorconfig file

This is a fairly well supported file-type configuration
for indentation and trailing space stripping.

See editorconfig.org for details.

2 years agoAvoid assert on startup
Campbell Barton [Mon, 18 Jun 2018 15:39:35 +0000 (17:39 +0200)]
Avoid assert on startup

2 years agoCleanup: redundant greater than
Campbell Barton [Mon, 18 Jun 2018 15:39:19 +0000 (17:39 +0200)]
Cleanup: redundant greater than

2 years agoParticle: Add missing field initializaiton
Sergey Sharybin [Mon, 18 Jun 2018 14:01:13 +0000 (16:01 +0200)]
Particle: Add missing field initializaiton

2 years agoUI: decorators hid non-array buttons
Campbell Barton [Mon, 18 Jun 2018 13:50:21 +0000 (15:50 +0200)]
UI: decorators hid non-array buttons

Error in last commit.

2 years agoStudiolights: Radiance icons were inverted.
Jeroen Bakker [Mon, 18 Jun 2018 13:45:55 +0000 (15:45 +0200)]
Studiolights: Radiance icons were inverted.

2 years agoWorkbench: increased Quality of the diffuse lighting model
Jeroen Bakker [Mon, 18 Jun 2018 13:17:46 +0000 (15:17 +0200)]
Workbench: increased Quality of the diffuse lighting model

- implemented Spherical Harmonics L2 for diffuse shading.

TODO: caching the precalculated harmonics so it won't take soo long to
open the popover

2 years agoObjects: when active object gets hidden, make it inactive.
Brecht Van Lommel [Mon, 18 Jun 2018 12:46:56 +0000 (14:46 +0200)]
Objects: when active object gets hidden, make it inactive.

2 years agoCleanup: simplify some view layer code.
Brecht Van Lommel [Mon, 18 Jun 2018 12:45:39 +0000 (14:45 +0200)]
Cleanup: simplify some view layer code.

2 years agoParticles: Remove obsolete code for child particles in edit mode
Sergey Sharybin [Mon, 18 Jun 2018 13:13:28 +0000 (15:13 +0200)]
Particles: Remove obsolete code for child particles in edit mode

2 years agoUI: decorators weren't showing icon-only buttons
Campbell Barton [Mon, 18 Jun 2018 13:11:10 +0000 (15:11 +0200)]
UI: decorators weren't showing icon-only buttons

2 years agoFix merge error in bpy_driver.c
Campbell Barton [Mon, 18 Jun 2018 13:09:55 +0000 (15:09 +0200)]
Fix merge error in bpy_driver.c

2 years agoUI: No decorators on render engine picker
Pablo Vazquez [Mon, 18 Jun 2018 10:41:31 +0000 (12:41 +0200)]
UI: No decorators on render engine picker

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 18 Jun 2018 10:32:12 +0000 (12:32 +0200)]
Merge branch 'master' into blender2.8

Conflicts:
source/blender/makesrna/intern/rna_space.c

2 years agoFix T55503: File browser filter not working correctly.
Bastien Montagne [Mon, 18 Jun 2018 10:26:47 +0000 (12:26 +0200)]
Fix T55503: File browser filter not working correctly.

There were two issues here, introduced by rB66aa4af836:
* Forgot to change length of some filter_glob var deep in filebrowser code.
* Truncating filter_glob in general can be dangerous, generating
unexpected patterns.

Last point was the root of the issue here, truncating to 63 chars string
left last group as 'match everything' `*` pattern.

To fix that to some extent, added a new BLI_path_extension_glob_validate
helper to BLI_path_util, which ensures we do not have last
wildcards-only group in our pattern, when there are more than one group.

2 years agoUI: Start UIList with 2 rows for materials/particles
Pablo Vazquez [Mon, 18 Jun 2018 10:20:58 +0000 (12:20 +0200)]
UI: Start UIList with 2 rows for materials/particles

There is room for it anyway because of the 3 buttons on the right.

2 years agoMultires: Remove unused function
Sergey Sharybin [Mon, 18 Jun 2018 09:14:00 +0000 (11:14 +0200)]
Multires: Remove unused function

It uses derived mesh, and relies on scene stored in modifier data.
So port is needed anyway.

2 years agoDepsgraph: Cleamup, reduce indentation level
Sergey Sharybin [Mon, 18 Jun 2018 07:52:58 +0000 (09:52 +0200)]
Depsgraph: Cleamup, reduce indentation level

2 years ago3D View: support outline overlay option
Campbell Barton [Mon, 18 Jun 2018 07:22:58 +0000 (09:22 +0200)]
3D View: support outline overlay option

2 years agoRefactor: Put ViewportAA as UserPref
Jeroen Bakker [Mon, 18 Jun 2018 06:51:29 +0000 (08:51 +0200)]
Refactor: Put ViewportAA as UserPref

By default users want AA in the viewport. For slower systems you want to
be able to turn it off. As in the future we would also like to support
TAA in the viewport we introduced it as a Max Viewport AA settings.

Also removed the drawoption to enable/disable AA per viewport
When rendering the AA is always turned on.

2 years agoShadingMenu: Splitted in SubPanels
Jeroen Bakker [Mon, 18 Jun 2018 06:15:29 +0000 (08:15 +0200)]
ShadingMenu: Splitted in SubPanels

2 years agoFix T55511: Decorator drag makes many undo steps
Campbell Barton [Mon, 18 Jun 2018 06:25:05 +0000 (08:25 +0200)]
Fix T55511: Decorator drag makes many undo steps

Each keyframe made a separate undo step.

2 years agoCleanup: indentation
Campbell Barton [Mon, 18 Jun 2018 06:10:23 +0000 (08:10 +0200)]
Cleanup: indentation

2 years agoCleanup: whitespace
Campbell Barton [Mon, 18 Jun 2018 06:08:08 +0000 (08:08 +0200)]
Cleanup: whitespace

2 years agoFix T55517: Property-split fails w/ expanded enum
Campbell Barton [Mon, 18 Jun 2018 05:52:17 +0000 (07:52 +0200)]
Fix T55517: Property-split fails w/ expanded enum

2 years agoUI: disable decorators for render output
Campbell Barton [Mon, 18 Jun 2018 05:38:06 +0000 (07:38 +0200)]
UI: disable decorators for render output

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 18 Jun 2018 05:34:31 +0000 (07:34 +0200)]
Merge branch 'master' into blender2.8

2 years agoRNA: disable animation for file output options
Campbell Barton [Mon, 18 Jun 2018 05:31:21 +0000 (07:31 +0200)]
RNA: disable animation for file output options

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

2 years agoCleanup: trailing space cmake, make.bat
Campbell Barton [Sun, 17 Jun 2018 18:18:09 +0000 (20:18 +0200)]
Cleanup: trailing space cmake, make.bat

2 years agoCleanup: trailing space in CMake files
Campbell Barton [Sun, 17 Jun 2018 18:15:24 +0000 (20:15 +0200)]
Cleanup: trailing space in CMake files

2 years agoEdit Mesh: Fix buggy occlusion when in xray mode.
Clément Foucault [Sun, 17 Jun 2018 18:11:23 +0000 (20:11 +0200)]
Edit Mesh: Fix buggy occlusion when in xray mode.

This mimics the behaviour of the old wireframe mode. When in Xray mode,
don't use the limit selection to visible option.

Also hide the option if Xray is enabled.

2 years agoPython: Allow untrusted py-drivers to run limited expressions
Campbell Barton [Sun, 17 Jun 2018 17:51:05 +0000 (19:51 +0200)]
Python: Allow untrusted py-drivers to run limited expressions

Limit to a restricted set of built-ins, as well as the math module.
Also restrict of op-codes, disallowing imports and attribute access.

This allows most math expressions to run
without any performance cost once the initial check is done.

See: D1862 for details.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 17 Jun 2018 15:10:19 +0000 (17:10 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space for remaining source/
Campbell Barton [Sun, 17 Jun 2018 15:06:28 +0000 (17:06 +0200)]
Cleanup: trailing space for remaining source/

2 years agoCleanup: trailing space for blenloader
Campbell Barton [Sun, 17 Jun 2018 15:06:07 +0000 (17:06 +0200)]
Cleanup: trailing space for blenloader

2 years agoCleanup: trailing space for blenkernel
Campbell Barton [Sun, 17 Jun 2018 15:05:51 +0000 (17:05 +0200)]
Cleanup: trailing space for blenkernel

2 years agoCleanup: trailing space for compositor
Campbell Barton [Sun, 17 Jun 2018 15:05:29 +0000 (17:05 +0200)]
Cleanup: trailing space for compositor

2 years agoCleanup: trailing space for freestyle
Campbell Barton [Sun, 17 Jun 2018 15:05:14 +0000 (17:05 +0200)]
Cleanup: trailing space for freestyle

2 years agoCleanup: trailing space for imbuf module
Campbell Barton [Sun, 17 Jun 2018 15:04:54 +0000 (17:04 +0200)]
Cleanup: trailing space for imbuf module

2 years agoCleanup: trailing space for modifiers
Campbell Barton [Sun, 17 Jun 2018 15:04:27 +0000 (17:04 +0200)]
Cleanup: trailing space for modifiers

2 years agoCleanup: trailing space for DNA headers
Campbell Barton [Sun, 17 Jun 2018 15:04:09 +0000 (17:04 +0200)]
Cleanup: trailing space for DNA headers

2 years agoCleanup: trailing space in source/gameengine/
Campbell Barton [Sun, 17 Jun 2018 15:01:43 +0000 (17:01 +0200)]
Cleanup: trailing space in source/gameengine/

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 17 Jun 2018 14:36:30 +0000 (16:36 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: trailing space for BLI
Campbell Barton [Sun, 17 Jun 2018 14:32:54 +0000 (16:32 +0200)]
Cleanup: trailing space for BLI

2 years agoCleanup: remove unused BLI_rebase_path
Campbell Barton [Sun, 17 Jun 2018 14:26:47 +0000 (16:26 +0200)]
Cleanup: remove unused BLI_rebase_path

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 17 Jun 2018 14:18:15 +0000 (16:18 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: BLI path extension API
Campbell Barton [Sun, 17 Jun 2018 14:13:24 +0000 (16:13 +0200)]
Cleanup: BLI path extension API

Use BLI_path_extension_* prefix.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 17 Jun 2018 13:52:32 +0000 (15:52 +0200)]
Merge branch 'master' into blender2.8

2 years agoBLI_path: add string size debug define
Campbell Barton [Sun, 17 Jun 2018 13:35:00 +0000 (15:35 +0200)]
BLI_path: add string size debug define

Off by default, only for debugging.

2 years agoDriver: trailing zeros from expression
Campbell Barton [Sun, 17 Jun 2018 12:50:42 +0000 (14:50 +0200)]
Driver: trailing zeros from expression

2 years ago3D View: 3D Cursor was not restoring GL state
Campbell Barton [Sun, 17 Jun 2018 12:43:31 +0000 (14:43 +0200)]
3D View: 3D Cursor was not restoring GL state

Caused camera frame to be double width.

2 years agoUI: hide decorators in panels w/o animated buttons
Campbell Barton [Sun, 17 Jun 2018 10:38:28 +0000 (12:38 +0200)]
UI: hide decorators in panels w/o animated buttons

2 years agoEdit Mesh: tweak active face edge width
Campbell Barton [Sun, 17 Jun 2018 10:26:49 +0000 (12:26 +0200)]
Edit Mesh: tweak active face edge width

This rewinds a change from own commit e3d88b021c07d
The only took edge overlay into account (crease, seam.. etc)
Currently active-face also uses this width.

While the difference is subtle,
this makes the active-face stand out more clearly.

2 years agoUI: correct decorator buttons 'enabled' flag
Campbell Barton [Sun, 17 Jun 2018 10:08:33 +0000 (12:08 +0200)]
UI: correct decorator buttons 'enabled' flag

2 years agoUI: decorator color button assert
Campbell Barton [Sun, 17 Jun 2018 10:13:14 +0000 (12:13 +0200)]
UI: decorator color button assert

Also set 'all' argument based on the RNA-index
(even though it worked, better set to correct value).

2 years agoCleanup: codestyle
Campbell Barton [Sun, 17 Jun 2018 10:03:22 +0000 (12:03 +0200)]
Cleanup: codestyle

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Sun, 17 Jun 2018 09:57:49 +0000 (11:57 +0200)]
Merge branch 'master' into blender2.8

2 years agoCMake: add missing headers
Campbell Barton [Sun, 17 Jun 2018 09:56:20 +0000 (11:56 +0200)]
CMake: add missing headers

2 years agoCleanup: use clamp_* from BLI_math (replace macro)
Campbell Barton [Sun, 17 Jun 2018 09:50:56 +0000 (11:50 +0200)]
Cleanup: use clamp_* from BLI_math (replace macro)

2 years agoMerge branch 'blender2.8' of git.blender.org:blender into blender2.8
Ray Molenkamp [Sun, 17 Jun 2018 03:49:40 +0000 (21:49 -0600)]
Merge branch 'blender2.8' of git.blender.org:blender into blender2.8

2 years agoFix : Build error with uchar in intern_gawain.
Ray Molenkamp [Sun, 17 Jun 2018 03:49:11 +0000 (21:49 -0600)]
Fix : Build error with uchar in intern_gawain.

error introduced by  D3483, intern_gawain has no access to bli_systypes.h

2 years agoCustom Hdri: Use same AntiAliasing as Matcaps
Clément Foucault [Sat, 16 Jun 2018 21:28:28 +0000 (23:28 +0200)]
Custom Hdri: Use same AntiAliasing as Matcaps

2 years agoStudioLights: Fix preview icon.
Clément Foucault [Sat, 16 Jun 2018 21:02:33 +0000 (23:02 +0200)]
StudioLights: Fix preview icon.

Use same antialiasing method as the matcaps and fix the normal computation.

2 years agoMatcap: Make matcap preview the same size as the other StudioLights
Clément Foucault [Sat, 16 Jun 2018 20:42:39 +0000 (22:42 +0200)]
Matcap: Make matcap preview the same size as the other StudioLights

2 years agoMatcaps: Add AntiAlias alpha mask to icon preview.
Clément Foucault [Sat, 16 Jun 2018 20:32:58 +0000 (22:32 +0200)]
Matcaps: Add AntiAlias alpha mask to icon preview.

2 years agoStudio Light: Fix typo
Clément Foucault [Sat, 16 Jun 2018 19:11:15 +0000 (21:11 +0200)]
Studio Light: Fix typo

2 years agoOutlines: Don't draw Xray mode outlines in material or render mode
Clément Foucault [Sat, 16 Jun 2018 19:05:24 +0000 (21:05 +0200)]
Outlines: Don't draw Xray mode outlines in material or render mode

2 years agoGLRefactor: Remove all GL types from gawains public headers.
Ray Molenkamp [Sat, 16 Jun 2018 18:44:20 +0000 (12:44 -0600)]
GLRefactor: Remove all GL types from gawains public headers.

In preparation for possible alternative back-ends, the dependency on glew.h needs to be confined to as few libraries as possible. This patch removes all gl types from the public gawain headers.

It'll need some more refactoring later on, but for now this will suffice.

Reviewer: brecht, fclem

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

2 years agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Sat, 16 Jun 2018 18:30:56 +0000 (12:30 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

2 years agomake.bat: Fix `make showhashes` not working.
Ray Molenkamp [Sat, 16 Jun 2018 18:29:38 +0000 (12:29 -0600)]
make.bat: Fix `make showhashes` not working.

broke in recent refactor.

2 years agoUI: show decorator icon for static-override
Campbell Barton [Sat, 16 Jun 2018 16:26:34 +0000 (18:26 +0200)]
UI: show decorator icon for static-override

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

2 years agoCleanup: remove BLI_frand from GreasePencil code.
Bastien Montagne [Sat, 16 Jun 2018 16:02:02 +0000 (18:02 +0200)]
Cleanup: remove BLI_frand from GreasePencil code.

2 years agoCorrect assert in recent changes
Campbell Barton [Sat, 16 Jun 2018 15:31:37 +0000 (17:31 +0200)]
Correct assert in recent changes

2 years agoUI: support dragging to key-frame
Campbell Barton [Sat, 16 Jun 2018 14:19:18 +0000 (16:19 +0200)]
UI: support dragging to key-frame

2 years agoUI: Add property decorator buttons
Campbell Barton [Sat, 16 Jun 2018 12:48:21 +0000 (14:48 +0200)]
UI: Add property decorator buttons

When use_property_split is enabled, this template adds
buttons to set keyframes, (Alternative to showing color).

See: T54951

2 years agoFix T55427: Removing Vertex Group used by Data Transfer Modifier results in crash.
Bastien Montagne [Sat, 16 Jun 2018 14:19:53 +0000 (16:19 +0200)]
Fix T55427: Removing Vertex Group used by Data Transfer Modifier results in crash.

Only fixing crash, proper handling (a.k.a remapping) of all
possible cases here, for all possible data layers, is rather involved...

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

2 years agoUI: refactor drag-toggle for other button types
Campbell Barton [Sat, 16 Jun 2018 14:04:26 +0000 (16:04 +0200)]
UI: refactor drag-toggle for other button types

2 years agoEdit Mesh: Simplify the overlay shader.
Clément Foucault [Sat, 16 Jun 2018 13:15:37 +0000 (15:15 +0200)]
Edit Mesh: Simplify the overlay shader.

Remove all the clip cases and just pass the vertices screen position to the
fragment shader.

This does put a bit more pressure on the fragment shader but it seems to be
faster than before. And it simplify the code a lot.

It seems to fix some long standing issue on some intel GPU.

2 years agoEdit Mode: Fix bad display of edges when limit selection mode is Off.
Clément Foucault [Fri, 15 Jun 2018 20:09:10 +0000 (22:09 +0200)]
Edit Mode: Fix bad display of edges when limit selection mode is Off.

2 years agoUI: minor changes from 2.8
Campbell Barton [Sat, 16 Jun 2018 13:44:13 +0000 (15:44 +0200)]
UI: minor changes from 2.8

- Option to skip multi-data edits.
- Open hold buttons on drag.
- Utility function to set default value.

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

2 years agoCycles Cleanup: Remove unneccessary color management call
Lukas Stockner [Sat, 16 Jun 2018 11:47:49 +0000 (13:47 +0200)]
Cycles Cleanup: Remove unneccessary color management call

2 years agoThis option limits visibility of the glew.h header to just bf_gpu and intern_gawain
Ray Molenkamp [Sat, 16 Jun 2018 02:17:16 +0000 (20:17 -0600)]
This option limits visibility of the glew.h header to just bf_gpu and intern_gawain
this is to highlight areas in the code that still directly do opengl calls or use
opengl types.

This is in preparation for supporting alternative rendering back-ends.

Reviewers: brecht, fclem

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

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Fri, 15 Jun 2018 21:04:35 +0000 (23:04 +0200)]
Merge branch 'master' into blender2.8

The Eevee AO node supports the new Normal socket, but ignores Distance,
Samples, Inside and Only Local settings.

2 years agoCycles: change Ambient Occlusion shader to output colors.
Lukas Stockner [Fri, 15 Jun 2018 09:03:29 +0000 (11:03 +0200)]
Cycles: change Ambient Occlusion shader to output colors.

This means the shader can now be used for procedural texturing. New
settings on the node are Samples, Inside, Local Only and Distance.

Original patch by Lukas with further changes by Brecht.

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

2 years agoUI: fix redundant scrolling in the redo panel
Campbell Barton [Fri, 15 Jun 2018 19:05:49 +0000 (21:05 +0200)]
UI: fix redundant scrolling in the redo panel

2 years agoCleanup: code style
Campbell Barton [Fri, 15 Jun 2018 18:55:37 +0000 (20:55 +0200)]
Cleanup: code style

2 years agoEdit Mesh: tweak vertex size & edge width
Campbell Barton [Fri, 15 Jun 2018 18:09:38 +0000 (20:09 +0200)]
Edit Mesh: tweak vertex size & edge width

- Vertex size now matches the theme setting.
- Edge width is closer to a single pixel line.
- Face dot was scaled up to be drawn as a circle,
  but is currently a square.

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

2 years agoWM: suppress drag events if motion is handled
Campbell Barton [Fri, 15 Jun 2018 17:09:43 +0000 (19:09 +0200)]
WM: suppress drag events if motion is handled

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 15 Jun 2018 15:43:18 +0000 (17:43 +0200)]
Merge branch 'master' into blender2.8

2 years agoCleanup: some more G.main removal.
Bastien Montagne [Fri, 15 Jun 2018 15:42:17 +0000 (17:42 +0200)]
Cleanup: some more G.main removal.

We are really starting to scratch the last bits here...

2 years agoWorkbench OpenGL render: always render alpha on 1.0
Jeroen Bakker [Fri, 15 Jun 2018 15:40:18 +0000 (17:40 +0200)]
Workbench OpenGL render: always render alpha on 1.0

Old implementation rendered alpha to 0.0 for background, but only during
deferred rendering. We should attach this to an DNA setting and also let
the forward shading respect this. But for now this is a better default

2 years agoCleanup: validate G.main's in creator code.
Bastien Montagne [Fri, 15 Jun 2018 15:36:44 +0000 (17:36 +0200)]
Cleanup: validate G.main's in creator code.

Using G_MAIN here is valid!

2 years agoCleanup: G.main removal from 2.8-only code.
Bastien Montagne [Fri, 15 Jun 2018 15:33:24 +0000 (17:33 +0200)]
Cleanup: G.main removal from 2.8-only code.

2 years agoMerge branch 'master' into blender2.8
Bastien Montagne [Fri, 15 Jun 2018 15:25:41 +0000 (17:25 +0200)]
Merge branch 'master' into blender2.8