20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 30 Nov 2018 02:24:17 +0000 (13:24 +1100)]
Merge branch 'master' into blender2.8

20 months agoCleanup: unused return arg
Campbell Barton [Fri, 30 Nov 2018 02:21:12 +0000 (13:21 +1100)]
Cleanup: unused return arg

20 months agoWorkbench: StudioLight: Fix worldspace rotation
Clément Foucault [Fri, 30 Nov 2018 01:02:21 +0000 (02:02 +0100)]
Workbench: StudioLight: Fix worldspace rotation

20 months agoWorkbench: Cleanups & Simplifications
Clément Foucault [Fri, 30 Nov 2018 00:53:50 +0000 (01:53 +0100)]
Workbench: Cleanups & Simplifications

* Move the curvature computation to the cavity pass: One can argue it's not
  the best performance wise (it gets a tiny perf pernalty if it is done
  alone without the ssao), but it make the code cleaner and reduce
  considerably the number of shader variation possible.
* Lower shader variation to 2^8 instead of 2^12

20 months agoGPUTexture: Add support for GL_R16 texture format
Clément Foucault [Fri, 30 Nov 2018 00:42:51 +0000 (01:42 +0100)]
GPUTexture: Add support for GL_R16 texture format

20 months agoFix T57981: Crash entering sculpt mode
Sergey Sharybin [Fri, 30 Nov 2018 00:46:42 +0000 (11:46 +1100)]
Fix T57981: Crash entering sculpt mode

20 months agoFix T58240: mathutils.noise.voronoi crash
Campbell Barton [Fri, 30 Nov 2018 00:22:17 +0000 (11:22 +1100)]
Fix T58240: mathutils.noise.voronoi crash

20 months agoUI: helpful text when favourites menu is empty
Campbell Barton [Thu, 29 Nov 2018 23:40:44 +0000 (10:40 +1100)]
UI: helpful text when favourites menu is empty

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 29 Nov 2018 22:54:30 +0000 (23:54 +0100)]
Merge branch 'master' into blender2.8

20 months agoIcons: uv-sculpt
William Reynish [Thu, 29 Nov 2018 22:51:40 +0000 (09:51 +1100)]
Icons: uv-sculpt

20 months agoUI: move curve point/segment menus into header
Campbell Barton [Thu, 29 Nov 2018 22:45:13 +0000 (09:45 +1100)]
UI: move curve point/segment menus into header

Now matches mesh vertex/edge/face menu placement.

Also move some menu items to match mesh vertex menu.

20 months agoFix T58183: crash with CPU + GPU rendering after profiling changes.
Brecht Van Lommel [Thu, 29 Nov 2018 22:30:17 +0000 (23:30 +0100)]
Fix T58183: crash with CPU + GPU rendering after profiling changes.

Multi-device was not passing along profiler to the CPU.

20 months agoFix T58213: Crash w/ Vertex paint average
Campbell Barton [Thu, 29 Nov 2018 22:29:30 +0000 (09:29 +1100)]
Fix T58213: Crash w/ Vertex paint average

20 months agoDocs: rename group -> collection
Campbell Barton [Thu, 29 Nov 2018 22:10:04 +0000 (09:10 +1100)]
Docs: rename group -> collection

20 months agoCleanup: de-duplicate default object tools
Campbell Barton [Thu, 29 Nov 2018 22:06:36 +0000 (09:06 +1100)]
Cleanup: de-duplicate default object tools

20 months agoTool System: add tools for edit-mode surface
Campbell Barton [Thu, 29 Nov 2018 22:02:11 +0000 (09:02 +1100)]
Tool System: add tools for edit-mode surface

20 months agoDocs: update quickstart for 2.8
Campbell Barton [Thu, 29 Nov 2018 21:43:41 +0000 (08:43 +1100)]
Docs: update quickstart for 2.8

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 29 Nov 2018 21:39:59 +0000 (08:39 +1100)]
Merge branch 'master' into blender2.8

20 months agoCleanup: trailing space
Campbell Barton [Thu, 29 Nov 2018 21:38:25 +0000 (08:38 +1100)]
Cleanup: trailing space

20 months agoFix T58196: Annotation thickness is 0
Antonioya [Thu, 29 Nov 2018 21:34:01 +0000 (22:34 +0100)]
Fix T58196: Annotation thickness is 0

When the annotation is created by other tools, the thickness was set to 0

20 months agoFix crash creating enum tooltips
Campbell Barton [Thu, 29 Nov 2018 21:01:41 +0000 (08:01 +1100)]
Fix crash creating enum tooltips

Error from recent changes to shortcut display.

20 months agoEnable annotations when GP object is selected.
Antonioya [Thu, 29 Nov 2018 20:59:29 +0000 (21:59 +0100)]
Enable annotations when GP object is selected.

Now when try to add annotation, if a grease pencil object is selected, first the object is unselected. This solution is not perfect but it's better than cancel the annotation.

Thanks Dalai for his help.

20 months agoUI: Minor changes to studiolight user preferences
Clément Foucault [Thu, 29 Nov 2018 20:52:24 +0000 (21:52 +0100)]
UI: Minor changes to studiolight user preferences

20 months agoWorkbench: Add button to go out of studiolight edit mode
Clément Foucault [Thu, 29 Nov 2018 20:33:14 +0000 (21:33 +0100)]
Workbench: Add button to go out of studiolight edit mode

This makes it more clean why you cannot choose studio lights in this mode.

20 months agoWorkbench: Add 4 default studio lights
Clément Foucault [Thu, 29 Nov 2018 20:23:56 +0000 (21:23 +0100)]
Workbench: Add 4 default studio lights

Made by me. Not definitive, subject to change.

20 months agoWorkbench: Add option to have world space lighting in studio light mode
Clément Foucault [Thu, 29 Nov 2018 19:57:09 +0000 (20:57 +0100)]
Workbench: Add option to have world space lighting in studio light mode

This option is per viewport.

Having view space shading make sense when working on isolated objects like
if you were holding them in your hands. But for entire scene work, it is
better to have the lighting fixed to have a better spatial representation.

20 months agoWorkbench: Add back studio lighting presets
Clément Foucault [Thu, 29 Nov 2018 18:54:23 +0000 (19:54 +0100)]
Workbench: Add back studio lighting presets

This changes a bit how the userprefs solid lights works. They are not
visible until enabling the "Edit Solid Light" checkbox. Once enabled the
current studiolight used for solid mode will be overwritten.

Once the lighting settings are tweaked, the user can click the
"Save as Studio light" button to save the current settings.
This makes it easy to create new lighting without messing the other

The studio lights are stored as ASCII files on the disk using a dead
simple custom format.

The UI/UX is not perfect and will be improved in other commits.

Also includes:
* Separate LookDev HDRI selection from Solid Lights
* Hide LookDev HDRIs from the Solid Lights selection list

20 months agoWorkbench: Rename orientation to type and Camera studio light to Studio
Clément Foucault [Wed, 28 Nov 2018 21:16:56 +0000 (22:16 +0100)]
Workbench: Rename orientation to type and Camera studio light to Studio

20 months agoTemplates: tweak sculpt to work w/o opensubdiv
Campbell Barton [Thu, 29 Nov 2018 20:10:52 +0000 (07:10 +1100)]
Templates: tweak sculpt to work w/o opensubdiv

20 months agoadd: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary [Thu, 29 Nov 2018 15:56:33 +0000 (16:56 +0100)]
add: visual studio Compiler warning (order of attribute init in c++ constructors)

20 months agoFix wrong property name in preview render Python script.
Brecht Van Lommel [Thu, 29 Nov 2018 17:26:48 +0000 (18:26 +0100)]
Fix wrong property name in preview render Python script.

20 months agoadd: visual studio Compiler warning (order of attribute init in c++ constructors)
Gaia Clary [Thu, 29 Nov 2018 15:56:33 +0000 (16:56 +0100)]
add: visual studio Compiler warning (order of attribute init in c++ constructors)

20 months agoTexture Paint: fix artifacts when using masks with symmetry.
Alexander Gavrilov [Thu, 29 Nov 2018 15:54:32 +0000 (18:54 +0300)]
Texture Paint: fix artifacts when using masks with symmetry.

For most brushes, texture painting uses a special mask accumulation
table in order to ensure that the amount of added color only increases
when the same pixel is touched multiple times by the stroke.

Unfortunately, only the mask texture was added to the mask before
this check, while normal, stencil, texture alpha masks were applied
after this check. This means that the check can pass if e.g. the
pressure is increased, but the final mask value is actually lower.
One might think that the mask values are fixed per pixel, but with
symmetry that isn't true. The result is a nasty stripe artifact due
to the discrete cutoff nature of the accumulation test.

In order to fix this, apply all masks before accumulation.

20 months agoBump version to 2.80 beta.
Brecht Van Lommel [Wed, 28 Nov 2018 17:31:03 +0000 (18:31 +0100)]
Bump version to 2.80 beta.

20 months agoNew splash image for Beta.
Brecht Van Lommel [Wed, 28 Nov 2018 15:36:48 +0000 (16:36 +0100)]
New splash image for Beta.

This one focuses on the development fund campaign. We plan to do more
more splash updates during the Beta.

20 months agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 29 Nov 2018 15:49:21 +0000 (16:49 +0100)]
Merge branch 'master' into blender2.8

20 months agoGP: Add option to draw primatives from center
Charlie Jolly [Thu, 29 Nov 2018 10:50:21 +0000 (10:50 +0000)]
GP: Add option to draw primatives from center

This allows primatives to be drawn from the center using the ALT key.
Also fixes SHIFT constraint not working correctly in all directions.
Both options can be used together.

Differential Revision:

20 months agoFix internal compiler error when building with VS 2017 (15.9.3).
Brecht Van Lommel [Thu, 29 Nov 2018 15:41:10 +0000 (16:41 +0100)]
Fix internal compiler error when building with VS 2017 (15.9.3).

It doesn't like alignment for function arguments, and I don't think this
alignment is needed.

Solution found by Ray Molenkamp.

20 months agoFix T57796: bad 'draw emitter' conversion, importing shared particle systems from...
Bastien Montagne [Thu, 29 Nov 2018 15:23:27 +0000 (16:23 +0100)]
Fix T57796: bad 'draw emitter' conversion, importing shared particle systems from 2.79b to 2.80

Not sure what those #ifdef's were supposed to do exactly... But one
thing is for sure, clearing that flag in particlesettings after first
encounter would prevent transferring it properly to other objects that
would use same particlesettings.

20 months agoCleanup: mark `PART_DRAW_EMITTER` of ParticleSetting drawflags as dreprecated.
Bastien Montagne [Thu, 29 Nov 2018 15:16:10 +0000 (16:16 +0100)]
Cleanup: mark `PART_DRAW_EMITTER` of ParticleSetting drawflags as dreprecated.

20 months agoFix depth offset in paint mode wireframe.
Alexander Gavrilov [Thu, 29 Nov 2018 14:51:25 +0000 (17:51 +0300)]
Fix depth offset in paint mode wireframe.

The original offset was wrong because it applied a constant to
homogenous coordinates (the actual depth is z/w), which broke
totally if near clip distance was reduced.

A correct depth offset has to take slope into account like
glPolygonOffset in order to avoid dotted lines caused by
interpolation precision variations. When drawing wire lines
however only the slope of the line itself is accessible, so
also generally increase the offset when the object is close.

20 months agoFix T57878: 2.8 Opening project in Blender Crashes.
Bastien Montagne [Thu, 29 Nov 2018 14:48:08 +0000 (15:48 +0100)]
Fix T57878: 2.8 Opening project in Blender Crashes.

Crash was due to some modifier trying to access the editmesh of its
target just after loading, when that editmesh has not yet been

20 months agoFix T58068: gizmo crash for bone on a disabled armature layer
Philipp Oeser [Wed, 28 Nov 2018 13:38:12 +0000 (14:38 +0100)]
Fix T58068: gizmo crash for bone on a disabled armature layer

Maniphest Tasks: T58068

Differential Revision:

20 months agoFix rotate around point under cursor 'seeing' hidden faces in paint modes.
Alexander Gavrilov [Thu, 29 Nov 2018 11:24:30 +0000 (14:24 +0300)]
Fix rotate around point under cursor 'seeing' hidden faces in paint modes.

20 months agoUI: make Q key available for quick favorites in clip editor.
Sebastian Koenig [Thu, 29 Nov 2018 11:22:04 +0000 (12:22 +0100)]
UI: make Q key available for quick favorites in clip editor.

20 months agoFix T58105: Subdivision Set operator stuck in relative mode
Philipp Oeser [Thu, 29 Nov 2018 09:10:31 +0000 (10:10 +0100)]
Fix T58105: Subdivision Set operator stuck in relative mode

Maniphest Tasks: T58105

Differential Revision:

20 months agoFix T58100: Crash on bpy.context.object.visible_get()
Philipp Oeser [Tue, 27 Nov 2018 22:56:24 +0000 (23:56 +0100)]
Fix T58100: Crash on bpy.context.object.visible_get()

Maniphest Tasks: T58100

Differential Revision:

20 months agoUI: put clip editor annotation panel in own tab in sidebar.
Sebastian Koenig [Thu, 29 Nov 2018 10:51:30 +0000 (11:51 +0100)]
UI: put clip editor annotation panel in own tab in sidebar.

20 months agoTransform: re-revert new user-axis-first behavior
Campbell Barton [Thu, 29 Nov 2018 10:51:56 +0000 (21:51 +1100)]
Transform: re-revert new user-axis-first behavior

This restores old behavior but leaves in new code
which is more flexible.

See: 6491d50d02b7 for feedback on why this isn't ideal.

20 months agoRevert "Transform: use scene-orientation for MMB axis constraint"
Campbell Barton [Thu, 29 Nov 2018 10:52:16 +0000 (21:52 +1100)]
Revert "Transform: use scene-orientation for MMB axis constraint"

This reverts commit 78a6c2e12c8d144d10f759d05cbb3503f555883b.

20 months agoUI: add back clip editor tool tabs until there is a toolbar.
Brecht Van Lommel [Thu, 29 Nov 2018 10:30:56 +0000 (11:30 +0100)]
UI: add back clip editor tool tabs until there is a toolbar.

20 months agoFix T57653: Fix T58075: Crash when switching between Edit and Sculpt/Paint modes.
Bastien Montagne [Thu, 29 Nov 2018 09:31:56 +0000 (10:31 +0100)]
Fix T57653: Fix T58075: Crash when switching between Edit and Sculpt/Paint modes.

Sculpt (and paint) modes rely on valid evaluated data at their initialization.

Added code to ensure that in `ED_object_mode_toggle()`, when relevant
toggle operator requires it (looks like sculpt/paint should be the only
ones affected, although particle edit may be too...).

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Thu, 29 Nov 2018 08:35:39 +0000 (09:35 +0100)]
Merge branch 'master' into blender2.8

20 months agoAtomic: Avoid conflicts with definitions in other areas
Sergey Sharybin [Thu, 29 Nov 2018 08:33:50 +0000 (09:33 +0100)]
Atomic: Avoid conflicts with definitions in other areas

While atomics library was trying to use "user-space" defined
LIKELY() and UNLIKELY(), this is not always true that user
code was checking for those macro coming from an unrelated

20 months agoUI: menu items for Ctrl-Tab dope sheet/graph switching
Campbell Barton [Thu, 29 Nov 2018 08:07:00 +0000 (19:07 +1100)]
UI: menu items for Ctrl-Tab dope sheet/graph switching

Make this shortcut discoverable.

20 months agoUI: update shortcut display to check space cycling
Campbell Barton [Thu, 29 Nov 2018 07:45:37 +0000 (18:45 +1100)]
UI: update shortcut display to check space cycling

20 months agoKeymap: cycle space-subtypes on successive presses
Campbell Barton [Thu, 29 Nov 2018 07:13:01 +0000 (18:13 +1100)]
Keymap: cycle space-subtypes on successive presses

Some space types are exposed as multiple space types,
previously the key binding to set the space type would use the last
used space-type.

Now pressing the key again cycles to the next space sub-type.

Without this, shortcut display is confusing since some space types share
a key. Keymap display will need to be updated to support this.

20 months agoUI: support enum key shortcut detection
Campbell Barton [Thu, 29 Nov 2018 06:32:35 +0000 (17:32 +1100)]
UI: support enum key shortcut detection

Shows shortcuts in space-selector.

20 months agoFix paint initialization, incorrect pointer checks
Campbell Barton [Thu, 29 Nov 2018 04:19:29 +0000 (15:19 +1100)]
Fix paint initialization, incorrect pointer checks

20 months agoFix T58125: UV Editor transform fails
Campbell Barton [Thu, 29 Nov 2018 03:39:50 +0000 (14:39 +1100)]
Fix T58125: UV Editor transform fails

20 months agoDebug: Assert to ensure layer iterator uses a 3D view
Campbell Barton [Thu, 29 Nov 2018 03:34:48 +0000 (14:34 +1100)]
Debug: Assert to ensure layer iterator uses a 3D view

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Thu, 29 Nov 2018 01:55:58 +0000 (12:55 +1100)]
Merge branch 'master' into blender2.8

20 months agoCleanup: correct typo, no need for ./ prefix
Campbell Barton [Thu, 29 Nov 2018 01:53:48 +0000 (12:53 +1100)]
Cleanup: correct typo, no need for ./ prefix

20 months agoFix leak in CPU brand check
Campbell Barton [Wed, 28 Nov 2018 21:22:15 +0000 (08:22 +1100)]
Fix leak in CPU brand check

20 months agoCleanup: simplify transform orientation cycling
Campbell Barton [Thu, 29 Nov 2018 01:49:02 +0000 (12:49 +1100)]
Cleanup: simplify transform orientation cycling

Remove dummy first index, store a pointer to the user orientation
instead of having it store twice (which could get out of sync).

20 months agoCycles: Add sample-based runtime profiler that measures time spent in various parts...
Lukas Stockner [Thu, 29 Nov 2018 01:06:30 +0000 (02:06 +0100)]
Cycles: Add sample-based runtime profiler that measures time spent in various parts of the CPU kernel

This commit adds a sample-based profiler that runs during CPU rendering and collects statistics on time spent in different parts of the kernel (ray intersection, shader evaluation etc.) as well as time spent per material and object.

The results are currently not exposed in the user interface or per Python yet, to see the stats on the console pass the "--cycles-print-stats" argument to Cycles (e.g. "./blender -- --cycles-print-stats").

Unfortunately, there is no clear way to extend this functionality to CUDA or OpenCL, so it is CPU-only for now.

Reviewers: brecht, sergey, swerner

Reviewed By: brecht, swerner

Differential Revision:

20 months agoUI: expand set origin in specials menu
Campbell Barton [Thu, 29 Nov 2018 01:24:20 +0000 (12:24 +1100)]
UI: expand set origin in specials menu

Also remove menu, expand operator instead.

20 months agoFix transform axis orientation cycling
Campbell Barton [Wed, 28 Nov 2018 22:41:44 +0000 (09:41 +1100)]
Fix transform axis orientation cycling

This ignored operator defined orientation.

20 months agoCleanup: remove unused files
Campbell Barton [Wed, 28 Nov 2018 22:03:11 +0000 (09:03 +1100)]
Cleanup: remove unused files

20 months agoCMake: add missing files
Campbell Barton [Wed, 28 Nov 2018 22:01:03 +0000 (09:01 +1100)]
CMake: add missing files

20 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 28 Nov 2018 21:55:34 +0000 (08:55 +1100)]
Merge branch 'master' into blender2.8

20 months agoCMake: update checker
Campbell Barton [Wed, 28 Nov 2018 21:49:50 +0000 (08:49 +1100)]
CMake: update checker

Support skipping cmake files

20 months agoFix leak in CPU brand check
Campbell Barton [Wed, 28 Nov 2018 21:22:15 +0000 (08:22 +1100)]
Fix leak in CPU brand check

20 months agoUI: rename Center Points -> Origins
Campbell Barton [Wed, 28 Nov 2018 21:19:57 +0000 (08:19 +1100)]
UI: rename Center Points -> Origins

See: T56648

20 months agoGP: Cleanup duplicated code moving to function
Antonioya [Wed, 28 Nov 2018 19:14:48 +0000 (20:14 +0100)]
GP: Cleanup duplicated code moving to function

20 months agoFix broken subdivision surface edit mode cage display.
Brecht Van Lommel [Wed, 28 Nov 2018 19:13:14 +0000 (20:13 +0100)]
Fix broken subdivision surface edit mode cage display.

20 months agoFix COLLADA build warning.
Brecht Van Lommel [Wed, 28 Nov 2018 19:03:20 +0000 (20:03 +0100)]
Fix COLLADA build warning.

This properties does not appear to be used anymore.

20 months agoFix instancing tooltips still using old dupli name.
William Reynish [Wed, 28 Nov 2018 19:01:03 +0000 (20:01 +0100)]
Fix instancing tooltips still using old dupli name.

20 months agoStartup.blend: rename Lamp to Light.
Brecht Van Lommel [Wed, 28 Nov 2018 17:48:02 +0000 (18:48 +0100)]
Startup.blend: rename Lamp to Light.

20 months agoGP: Deselect points if click outside selection area
Antonioya [Wed, 28 Nov 2018 18:44:41 +0000 (19:44 +0100)]
GP: Deselect points if click outside selection area

To make consistent with Left click select, now if click outside any point, all points are deselected.

Reduced the circle of selection to get more precission. The radius used before was too wide.

Note: There is a minimum distance to consider outside selection area.

20 months agoAdd Onion Skin support to Annotations
Antonioya [Wed, 28 Nov 2018 18:19:01 +0000 (19:19 +0100)]
Add Onion Skin support to Annotations

The old onion skinning used in 2.7x has been ported and converted to 2.8. Only basic features have been included. For more advanced onion skin features, use grease pencil objects.

Onion Skin is supported in View 3D and Sequencer.

20 months agoUse term Instancing in the interface
Sergey Sharybin [Wed, 28 Nov 2018 17:20:02 +0000 (18:20 +0100)]
Use term Instancing in the interface

Currently only see this in object's properties, but might
be missing something.

Part of T56648.

20 months agoUse collection and instance terminology in Python API
Sergey Sharybin [Wed, 28 Nov 2018 16:49:52 +0000 (17:49 +0100)]
Use collection and instance terminology in Python API

This follows naming convention agreed on in T56648.

20 months agoFix T56906: Mesh from Curve not working on curves beveled by curves.
Bastien Montagne [Wed, 28 Nov 2018 17:14:40 +0000 (18:14 +0100)]
Fix T56906: Mesh from Curve not working on curves beveled by curves.

Not exactly sure why we did not have cached displist for bevel object
here... But anyway, that conversion operation should really happen
outside of depsgraph evaluation area, so makes sense to do it as when
generating geometry for rendering, imho. Also solves issues like loosing
hidden parts of the curve/surface, etc. Still using viewport resolution
for curves, though.

20 months agocleanup: Collada replaced outdated usage of CD_MTFACE Layers by CD_MLOOPUV
Gaia Clary [Wed, 28 Nov 2018 17:13:58 +0000 (18:13 +0100)]
cleanup: Collada replaced outdated usage of CD_MTFACE Layers by CD_MLOOPUV

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 28 Nov 2018 17:05:59 +0000 (18:05 +0100)]
Merge branch 'master' into blender2.8

20 months agoMore fixes for NUMA on macOS
Sergey Sharybin [Wed, 28 Nov 2018 17:05:35 +0000 (18:05 +0100)]
More fixes for NUMA on macOS

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 28 Nov 2018 16:57:37 +0000 (17:57 +0100)]
Merge branch 'master' into blender2.8

20 months agoFix compilation error on macOS
Sergey Sharybin [Wed, 28 Nov 2018 16:57:04 +0000 (17:57 +0100)]
Fix compilation error on macOS

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 28 Nov 2018 16:55:27 +0000 (17:55 +0100)]
Merge branch 'master' into blender2.8

20 months agoFix compilation error on 32bit Windows
Sergey Sharybin [Wed, 28 Nov 2018 16:54:05 +0000 (17:54 +0100)]
Fix compilation error on 32bit Windows

20 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Wed, 28 Nov 2018 15:52:47 +0000 (16:52 +0100)]
Merge branch 'master' into blender2.8


20 months agoFix building gtests and bplayer after recent NumaAPI addition.
Bastien Montagne [Wed, 28 Nov 2018 15:50:02 +0000 (16:50 +0100)]
Fix building gtests and bplayer after recent NumaAPI addition.

Seriously... like, seriously...

20 months agoFix (unreported) Cycles not rendering correctly modified curves/surfaces/texts.
Bastien Montagne [Wed, 28 Nov 2018 15:23:39 +0000 (16:23 +0100)]
Fix (unreported) Cycles not rendering correctly modified curves/surfaces/texts.

Meshes from evaluated objects may already have modifiers applied, but
that's not the case for curves, we need to do that when converting them
to meshes.

20 months agoUI: Layout tweaks to Studio Lights panel in Preferences.
Pablo Vazquez [Wed, 28 Nov 2018 15:24:55 +0000 (16:24 +0100)]
UI: Layout tweaks to Studio Lights panel in Preferences.

Move Studio Lights panel first, and use single-column layout.

20 months agoWorkbench: Change Studio lighting
Clément Foucault [Wed, 28 Nov 2018 14:57:40 +0000 (15:57 +0100)]
Workbench: Change Studio lighting

This is in order to have more flexible ligthing presets in the future.
The diffuse lighting from hdris was nice but lacked the corresponding
specular information. This is an attempt to make it possible to customize
the lighting and have a cheap/easy/nice-looking pseudo-PBR workflow.

* Add cheap PBR to Workbench with fresnel and better roughness support.
  This improves the look of the metallic surfaces and is easier to control.
* Add ambient light to studio lights settings: just a constant color added
  to the shading.
* Add Smooth option to studio lights settings: This option fakes the
  effect of making the light bigger making the lighting smoother for this
  light. Smoother lights gets reflected like a background hdri.
* Change default light settings to include the smooth params.
* Remove specular highlights from flat shading. (could be added back but
  how do we make it good looking?)
* If specular lighting is disabled, use base color without using metallic.
* Include a lot of code simplification/cleanup/confusion fix.

20 months agoGPU: Add AMD Radeon RX series to macos blitting workaround list
Clément Foucault [Wed, 28 Nov 2018 12:19:04 +0000 (13:19 +0100)]
GPU: Add AMD Radeon RX series to macos blitting workaround list

Fixes T55987

20 months agofix:T58093 Collada Exporter does not create bind_vertex_input and texcoord attribute
Gaia Clary [Wed, 28 Nov 2018 14:27:11 +0000 (15:27 +0100)]
fix:T58093 Collada Exporter does not create bind_vertex_input and texcoord attribute

The Collada exporter used MTFACE layers (deprecated) instead of
CD_MLOOPUV layers. In 2.8 the exporter could no longer find the UVMaps

20 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Wed, 28 Nov 2018 13:42:38 +0000 (14:42 +0100)]
Merge branch 'master' into blender2.8

20 months agoTweaks for threading schedule for Threadripper2 and EPYC
Sergey Sharybin [Tue, 27 Nov 2018 17:21:43 +0000 (18:21 +0100)]
Tweaks for threading schedule for Threadripper2 and EPYC

The idea is to make main thread and job threads to be scheduled
on CPU dies which has direct access to memory (those are NUMA
nodes 0 and 2).

We also do this for new EPYC CPUs since their NUMA nodes 1 and 3
do have access but only to a higher range DDR slots. By preferring
nodes 0 and 2 on EPYC we make it so users with partially filled
DDR slots has fast memory access.

One thing which is not really solved yet is localization of
memory allocation: we do not guarantee that memory is allocated
on the closest to the NUMA node DDR slot and hope that memory
manager of OS is acting in favor of us.