2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 9 Nov 2018 23:57:35 +0000 (10:57 +1100)]
Merge branch 'master' into blender2.8

2 years agoPyAPI: add imports arg to BPY_execute_string
Campbell Barton [Fri, 9 Nov 2018 23:55:04 +0000 (10:55 +1100)]
PyAPI: add imports arg to BPY_execute_string

Allows for avoiding `__import__` in expressions,
was already supported for BPY_execute_string_as_* API calls.

2 years agoCleanup: style
Campbell Barton [Fri, 9 Nov 2018 22:24:23 +0000 (09:24 +1100)]
Cleanup: style

2 years agoFix missing tips for some RNA Object API functions parameters.
Bastien Montagne [Fri, 9 Nov 2018 21:32:04 +0000 (22:32 +0100)]
Fix missing tips for some RNA Object API functions parameters.

Without description, parameters are not documented at all in API (not
even their type)... Always nice to have a short description anyway.

Also fixed a few other issues in existing descriptions.

2 years agoGP: Make Sculpt and Edit Toolbar consistent
Antonioya [Fri, 9 Nov 2018 21:19:46 +0000 (22:19 +0100)]
GP: Make Sculpt and Edit Toolbar consistent

2 years agoMulti-Objects: MESH_OT_select_similar worldspace completion
Habib Gahbiche [Fri, 9 Nov 2018 19:03:41 +0000 (17:03 -0200)]
Multi-Objects: MESH_OT_select_similar worldspace completion

This makes the operator to work 100% with worldspace similarity:

Note from revisor (Dalai Felinto):

I'm not sure we want to pass Object * to the bmesh api, though I
personally don't see why not. Either way I group the patches together so
we can more easily roll them back if needs be.

Maniphest Tasks: T56948
Differential Revision: D3908, D3899, D3896

2 years agoGP: Add missing preset properties
Antonioya [Fri, 9 Nov 2018 19:04:37 +0000 (20:04 +0100)]
GP: Add missing preset properties

2 years agoGP: Hide Arrow cursor while painting
Antonioya [Fri, 9 Nov 2018 19:01:41 +0000 (20:01 +0100)]
GP: Hide Arrow cursor while painting

The arrow cursor is too intrusive

2 years agoGP: Remove duplicate shapes popover
Antonioya [Fri, 9 Nov 2018 18:48:00 +0000 (19:48 +0100)]
GP: Remove duplicate shapes popover

Now the tools are in Toolbar

2 years agoMulti-Objects Metaball: Selection refactor - fix pick and box selection
Dalai Felinto [Fri, 9 Nov 2018 16:26:58 +0000 (14:26 -0200)]
Multi-Objects Metaball: Selection refactor - fix pick and box selection

This is inspired/based on the code we use for armature bone selection.
Both pick selection, and box selection should be working now.

2 years agoGP: Reorder Move to Layer to TopDown
Antonioya [Thu, 8 Nov 2018 22:29:14 +0000 (23:29 +0100)]
GP: Reorder Move to Layer to TopDown

2 years agoPy API Docs: More gpu module documentation
Jacques Lucke [Fri, 9 Nov 2018 18:20:34 +0000 (19:20 +0100)]
Py API Docs: More gpu module documentation

2 years agoCleanup: fix layer_collection_sync() using int's for short values.
Bastien Montagne [Fri, 9 Nov 2018 17:41:54 +0000 (18:41 +0100)]
Cleanup: fix layer_collection_sync() using int's for short values.

Collection flag and runtime_flag are shorts, not ints...

2 years agoFix typo in assert that we do not delete master collection..
Bastien Montagne [Fri, 9 Nov 2018 17:31:51 +0000 (18:31 +0100)]
Fix typo in assert that we do not delete master collection..

2 years agoUI: split grease pencil brush curves into subpanels.
William Reynish [Fri, 9 Nov 2018 17:03:34 +0000 (18:03 +0100)]
UI: split grease pencil brush curves into subpanels.

2 years agoUI: add edge markings to top level of edge menu again.
William Reynish [Fri, 9 Nov 2018 16:22:05 +0000 (17:22 +0100)]
UI: add edge markings to top level of edge menu again.

These are commonly used and should be quick to access.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 16:56:28 +0000 (17:56 +0100)]
Merge branch 'master' into blender2.8

2 years agoRevert "Cycles: Cleanup, move Embree BVH logic to own file"
Sergey Sharybin [Fri, 9 Nov 2018 16:54:09 +0000 (17:54 +0100)]
Revert "Cycles: Cleanup, move Embree BVH logic to own file"

While we shouldn't have logic in an entry point, and since one should
not be making typos when moving lines around, there is bigger entanglement
issue with BVH host code using kernel function. This is bad violation,
but is tricky to get solved moments before the weekly.

In order to keep things in a (less) broken state than before own cleanup
reverting the changes.

This reverts commit 2bad10be96540ff50a149230d656e599775b3f47.
This reverts commit ddabb21d0584e9874e8e5c62c04abe496ec7334b

2 years agoCycles: Free Blender side data as soon as we don't need it
Sergey Sharybin [Fri, 9 Nov 2018 15:14:15 +0000 (16:14 +0100)]
Cycles: Free Blender side data as soon as we don't need it

Currently this is possible after built-in images are loaded in memory.
Allows to save memory used by dependency graph and copy-on-write.

In practice this lowers peak system memory usage from 52GB to 42GB on
a production file of spring

Note, that this only applies to F12 and command line renders.

Bigger note, that this optimization is currently only possible if
there are no grease pencil objects to be rendered.

2 years agoCycles: Add name field to scene
Sergey Sharybin [Fri, 9 Nov 2018 15:04:53 +0000 (16:04 +0100)]
Cycles: Add name field to scene

Doesn't mean much for Cycles itself, but allows to have nice logs
and progress reports without access of original scene.

2 years agoDraw manager: Expose grease pencil helper function
Sergey Sharybin [Fri, 9 Nov 2018 15:30:44 +0000 (16:30 +0100)]
Draw manager: Expose grease pencil helper function

2 years agogpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix
Dalai Felinto [Fri, 9 Nov 2018 15:46:09 +0000 (13:46 -0200)]
gpu.offscreen, fix pydoc, example and rename modelviewmatrix > viewmatrix

Technically this is only the view matrix, not model view matrix.
And view layer was missing from the pydoc.

2 years agoRNA ID: forbid editing names of non-GMain IDs.
Bastien Montagne [Fri, 9 Nov 2018 15:49:08 +0000 (16:49 +0100)]
RNA ID: forbid editing names of non-GMain IDs.

We even had an assert about that in setter callback!

That means that we do not allow editing names of evaluated IDs, nor
non-data-block IDs (mainly root nodetrees and scene master collections).

2 years agoFix T57737: crash displaying expanded tooltip for transform tool
Philipp Oeser [Fri, 9 Nov 2018 12:14:10 +0000 (13:14 +0100)]
Fix T57737: crash displaying expanded tooltip for transform tool

Maniphest Tasks: T57737

Differential Revision:

2 years agoFix use of wrong icon IDs.
Brecht Van Lommel [Fri, 9 Nov 2018 10:20:45 +0000 (11:20 +0100)]
Fix use of wrong icon IDs.

2 years agoUI: Make Region overlap slide instead of fade
Clément Foucault [Fri, 9 Nov 2018 14:33:51 +0000 (15:33 +0100)]
UI: Make Region overlap slide instead of fade

Requested by @billreynish.
Increases the TIMESTEP to 60Hz to have smooth animation.

2 years agoObject Mode: Grid: Make antialiasing more grounded
Clément Foucault [Fri, 9 Nov 2018 13:37:35 +0000 (14:37 +0100)]
Object Mode: Grid: Make antialiasing more grounded

Went a bit anal on this but at least we will have a decent AA reference
for lines in the future.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 14:22:21 +0000 (15:22 +0100)]
Merge branch 'master' into blender2.8

2 years agoCycles: Cleanup, remove unused method declaration
Sergey Sharybin [Fri, 9 Nov 2018 14:21:19 +0000 (15:21 +0100)]
Cycles: Cleanup, remove unused method declaration

Was never defined. If it's really needed, consider using `const string&`.

2 years agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 9 Nov 2018 13:34:33 +0000 (14:34 +0100)]
Merge branch 'master' into blender2.8

2 years agoFix crash when renaming metaballs
Dalai Felinto [Fri, 9 Nov 2018 12:59:12 +0000 (10:59 -0200)]
Fix crash when renaming metaballs

This handles both renaming via outliner and rna.

Metaballs as we all know have their geometry based on the metaballs that
share the same name with them.

Changing the name of a metaball without tagging its geometry to change
is asking for trouble.

2 years agoBKE_id_is_in_gobal_main > BKE_id_is_in_global_main
Dalai Felinto [Fri, 9 Nov 2018 12:44:02 +0000 (10:44 -0200)]
BKE_id_is_in_gobal_main > BKE_id_is_in_global_main

2 years agoGreasepencil: double promotion cleanup and related
Dalai Felinto [Fri, 9 Nov 2018 12:01:22 +0000 (10:01 -0200)]
Greasepencil: double promotion cleanup and related

2 years agoGreasePencil: division by zero when stroke has one point
Dalai Felinto [Fri, 9 Nov 2018 11:57:37 +0000 (09:57 -0200)]
GreasePencil: division by zero when stroke has one point

Error "runtime error: division by zero" when opening:
"Sketch 1 demo by Brain Graft.blend"

2 years agoImprovements on CURVE_OT_select_similar: SIMCURHAND_DIRECTION
Habib Gahbiche [Fri, 9 Nov 2018 11:25:14 +0000 (09:25 -0200)]
Improvements on CURVE_OT_select_similar: SIMCURHAND_DIRECTION

Consider rotation and scale when calculating direction in world space.

Reviewers: dfelinto
Maniphest Tasks: T56948

Differential Revision:

2 years agoUI: Fix checking for sequences.
Pablo Vazquez [Fri, 9 Nov 2018 11:39:17 +0000 (12:39 +0100)]
UI: Fix checking for sequences.

2 years agoCycles; Cleanup, line length
Sergey Sharybin [Fri, 9 Nov 2018 11:31:46 +0000 (12:31 +0100)]
Cycles; Cleanup, line length

There are some more sanitization which would be cool to be done
in the neighbourhood of those functions, but that could also happen

2 years agoCycles: Cleanup, move Embree BVH logic to own file
Sergey Sharybin [Fri, 9 Nov 2018 11:28:55 +0000 (12:28 +0100)]
Cycles: Cleanup, move Embree BVH logic to own file

There is no way we can keep generic entry point functions easy to
follow if we start adding actual logic in them.

2 years agoCycles: Cleanup, indentation in preprocessor
Sergey Sharybin [Fri, 9 Nov 2018 11:12:11 +0000 (12:12 +0100)]
Cycles: Cleanup, indentation in preprocessor

2 years agoCycles: Cleanup, indentation
Sergey Sharybin [Fri, 9 Nov 2018 11:10:48 +0000 (12:10 +0100)]
Cycles: Cleanup, indentation

2 years agoCycles: Cleanup, space after (void)
Sergey Sharybin [Fri, 9 Nov 2018 11:08:51 +0000 (12:08 +0100)]
Cycles: Cleanup, space after (void)

It was used in like 95% of places.

2 years agoPy API Docs: Warnings for some properties that are slower to access than expected.
Jacques Lucke [Fri, 9 Nov 2018 11:06:29 +0000 (12:06 +0100)]
Py API Docs: Warnings for some properties that are slower to access than expected.

2 years agoCycles: Cleanup, don't use strict C prototypes
Sergey Sharybin [Fri, 9 Nov 2018 11:01:38 +0000 (12:01 +0100)]
Cycles: Cleanup, don't use strict C prototypes

Those are more like a legacy of language, which is not
needed in C++.

2 years agoCycles: Cleanup, split array from vector
Sergey Sharybin [Fri, 9 Nov 2018 10:54:24 +0000 (11:54 +0100)]
Cycles: Cleanup, split array from vector

Those are similar but different types, no reason to keep
their definitions in a single file.

2 years agoUI: Fix bug when no sequencer strips were selected on a new scene.
Pablo Vazquez [Fri, 9 Nov 2018 10:53:09 +0000 (11:53 +0100)]
UI: Fix bug when no sequencer strips were selected on a new scene.

Reported by Tintwotin on DevTalk. Thanks!

2 years agoCycles: Cleanup, some documentation
Sergey Sharybin [Fri, 9 Nov 2018 10:46:09 +0000 (11:46 +0100)]
Cycles: Cleanup, some documentation

2 years agoCycles: Cleanup, remove unneeded manual constructors specification
Sergey Sharybin [Fri, 9 Nov 2018 10:44:33 +0000 (11:44 +0100)]
Cycles: Cleanup, remove unneeded manual constructors specification

2 years agoCycles: Cleanup, remove unneeded method from vector
Sergey Sharybin [Fri, 9 Nov 2018 10:37:56 +0000 (11:37 +0100)]
Cycles: Cleanup, remove unneeded method from vector

Since we've defaulted to C++11, no need to override this
method manually anymore.

2 years agoCycles: Cleanup, spacing after preprocessor
Sergey Sharybin [Fri, 9 Nov 2018 10:34:54 +0000 (11:34 +0100)]
Cycles: Cleanup, spacing after preprocessor

It is supposed to be two spaces before comment stating which if
else/endif statements corresponds to. Was mainly violated in the
header guards.

2 years agoCleanup, indentation
Sergey Sharybin [Thu, 8 Nov 2018 17:37:01 +0000 (18:37 +0100)]
Cleanup, indentation

2 years agoCorrect error in last commit
Campbell Barton [Fri, 9 Nov 2018 06:48:08 +0000 (17:48 +1100)]
Correct error in last commit

2 years agoIcons: rename gpencil
Campbell Barton [Fri, 9 Nov 2018 06:40:00 +0000 (17:40 +1100)]
Icons: rename gpencil

2 years agoIcons: update to r62155
Campbell Barton [Fri, 9 Nov 2018 06:31:09 +0000 (17:31 +1100)]
Icons: update to r62155

- Tweaked GP toolbar icons and added Line, Rectangle & Circle.
- Added the remaining toolbar icons for all our paint & sculpt modes.
- Made all the toolbar icons the same simple style.

2 years agoCleanup: de-duplicate poll function
Campbell Barton [Fri, 9 Nov 2018 06:18:38 +0000 (17:18 +1100)]
Cleanup: de-duplicate poll function

2 years agoTool System: add grease pencil primitive tool
Campbell Barton [Fri, 9 Nov 2018 06:05:32 +0000 (17:05 +1100)]
Tool System: add grease pencil primitive tool

2 years agoUI: Decrease the fade in/out time of regions with region overlap on.
Pablo Vazquez [Fri, 9 Nov 2018 02:26:42 +0000 (03:26 +0100)]
UI: Decrease the fade in/out time of regions with region overlap on.

2 years agoUI: tweak object type active state
Campbell Barton [Fri, 9 Nov 2018 02:18:50 +0000 (13:18 +1100)]
UI: tweak object type active state

The state of the objects visibility should only impact
the 'active' display of the select icon, not it's self.

2 years agoCleanup: use proportional edit template for keymap
Campbell Barton [Fri, 9 Nov 2018 02:07:01 +0000 (13:07 +1100)]
Cleanup: use proportional edit template for keymap

2 years agoCleanup: use tuple instead of dict
Campbell Barton [Fri, 9 Nov 2018 02:14:16 +0000 (13:14 +1100)]
Cleanup: use tuple instead of dict

This just loops over pairs so no mapping is needed.

2 years agoUI: Tweaks to Object Types Visibility popover.
Pablo Vazquez [Fri, 9 Nov 2018 01:58:25 +0000 (02:58 +0100)]
UI: Tweaks to Object Types Visibility popover.

Replace checkbox for visibility with eye icon instead.
Thanks a.monti and zebus3d for the help.

Closes T57714
Part of UI Paper Cuts T56950

2 years agoCleanup: de-duplicate keymap items
Campbell Barton [Fri, 9 Nov 2018 01:13:59 +0000 (12:13 +1100)]
Cleanup: de-duplicate keymap items

2 years agoUI: Name added LightProbe objects after their type.
Pablo Vazquez [Fri, 9 Nov 2018 01:16:26 +0000 (02:16 +0100)]
UI: Name added LightProbe objects after their type.

Just like Light objects do.

Thanks ThinkingPolygons from DevTalk forums for suggesting this!

See T56950

2 years agoreadme: remove 'game creation'.
Campbell Barton [Fri, 9 Nov 2018 00:51:40 +0000 (11:51 +1100)]
readme: remove 'game creation'.

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Fri, 9 Nov 2018 00:51:14 +0000 (11:51 +1100)]
Merge branch 'master' into blender2.8

2 years agoreadme: use name 'macOS'
Campbell Barton [Fri, 9 Nov 2018 00:49:49 +0000 (11:49 +1100)]
readme: use name 'macOS'

2 years agoKeymap: skip loading the keymap preset in background mode
Campbell Barton [Fri, 9 Nov 2018 00:43:45 +0000 (11:43 +1100)]
Keymap: skip loading the keymap preset in background mode

Caused a crash on exit and isn't needed.

2 years agoKeymap: move builtin keymaps from C to Python
Brecht Van Lommel [Thu, 8 Nov 2018 04:59:51 +0000 (15:59 +1100)]
Keymap: move builtin keymaps from C to Python

This should be purely an implementation change,
for end users there should be no functional difference.

The entire key configuration is in one file with ~5000 lines of code.
Mostly avoiding code duplication and preserve comments and utility
functions from the C code.
It's a bit long but for searching and editing it's also convenient to
have it all in one file.


- Actual keymap is shared by blender / blender_legacy
  and stored in `keymap_data/`

  This only generates JSON-like data to be passed into
  `keyconfig_import_from_data`, allowing other presets to load and
  manipulate the default keymap.

- Each preset defines 'keyconfig_data'
  which can be shared between presets.

- Some of the utility functions for generating keymap items still
  need to be ported over to Python.

- Some keymap items can be made into loops (marked as TODO).

See: D3907

2 years agoEevee: Fix broken Vector Transform node
Clément Foucault [Thu, 8 Nov 2018 20:50:17 +0000 (21:50 +0100)]
Eevee: Fix broken Vector Transform node

The Camera to Object space matrix was not implemented in gpu_codegen.

2 years agoEevee: Add partial support for the Light Path Node
Clément Foucault [Thu, 8 Nov 2018 18:17:41 +0000 (19:17 +0100)]
Eevee: Add partial support for the Light Path Node

This makes it possible to tweak indirect lighting in the shader.

Only a subset of the outputs is supported and the ray depth has not exactly
the same meaning:

Is Camera : Supported.
Is Shadow : Supported.
Is Diffuse : Supported.
Is Glossy : Supported.
Is Singular : Not supported. Same as Is Glossy.
Is Reflection : Not supported. Same as Is Glossy.
Is Transmission : Not supported. Same as Is Glossy.
Ray Length : Not supported. Defaults to 1.0.
Ray Depth : Indicate the current bounce when baking the light cache.
Diffuse Depth : Same as Ray Depth but only when baking diffuse light.
Glossy Depth : Same as Ray Depth but only when baking specular light.
Transparent Depth : Not supported. Defaults to 0.
Transmission Depth : Not supported. Same as Glossy Depth.

Caveat: Is Glossy does not work with Screen Space Reflections but does work
with reflection planes (when used with SSR or not).
We have to render the world twice for that to work.

2 years agoEevee: Fix geometry node for environments and support true_normal
Clément Foucault [Thu, 8 Nov 2018 12:16:06 +0000 (13:16 +0100)]
Eevee: Fix geometry node for environments and support true_normal

Also minor cleanup for the Bump node.

2 years agoEevee: Fix refraction materials
Clément Foucault [Thu, 8 Nov 2018 12:07:22 +0000 (13:07 +0100)]
Eevee: Fix refraction materials

Fix refraction depth not working without ScreenSpace Refraction.
Fix ScreenSpace Refraction masking reflections.

2 years agoFix wrong selectability icon in viewport menu.
Brecht Van Lommel [Thu, 8 Nov 2018 18:06:42 +0000 (19:06 +0100)]
Fix wrong selectability icon in viewport menu.

2 years agoFix X-Ray option showing in LookDev mode, where it does nothing.
Brecht Van Lommel [Thu, 8 Nov 2018 17:58:00 +0000 (18:58 +0100)]
Fix X-Ray option showing in LookDev mode, where it does nothing.

2 years agoFix depsgraph console warning after recent changes.
Brecht Van Lommel [Thu, 8 Nov 2018 17:53:30 +0000 (18:53 +0100)]
Fix depsgraph console warning after recent changes.

2 years agoFix Cycles viewport render info overlapping other text.
Brecht Van Lommel [Thu, 25 Oct 2018 09:47:37 +0000 (11:47 +0200)]
Fix Cycles viewport render info overlapping other text.

Now it shows more compact info below the view/object name. Render time and
memory usage is left out, as in most cases this is not so important. These
could be added back optionally if needed.

2 years agoUI: Tweaks to Add menu in Video Sequencer Editor.
Pablo Vazquez [Thu, 8 Nov 2018 15:01:02 +0000 (16:01 +0100)]
UI: Tweaks to Add menu in Video Sequencer Editor.

Mainly organization and bringing it closer to the Add menu in the 3D Viewport.

* Icons for most top-level items when available.
* New Transitions menu for Cross, Gamma Cross and Wipe.
* Move Color and Text to top level. These options are used way too often to be in a submenu.
Having a menu with 2 entries defeats the purpose, so I've removed it for now. I checked if
add-ons used it and apparently not. It can be brought back if needed.
* Avoid empty dropdown in Scene/Mask/Clip. Solution is ugly for now and should be improved in C.
* Some effects couldn't be used without 1 or 2 strips selected, now the menu entry is grayed out accordingly.
* Some more icons for other menus.

2 years agoUI: Some icons for Image menu in Image editor.
Pablo Vazquez [Wed, 7 Nov 2018 17:16:04 +0000 (18:16 +0100)]
UI: Some icons for Image menu in Image editor.

2 years agoFix T57689: world nodes / texture not updating for Eevee.
Brecht Van Lommel [Thu, 8 Nov 2018 14:56:56 +0000 (15:56 +0100)]
Fix T57689: world nodes / texture not updating for Eevee.

Only do GPU material updates through depsgraph evaluation now. This was
already happening for material, just missing for the world.

2 years agoCleanup, compiler warnings in release mode
Sergey Sharybin [Thu, 8 Nov 2018 14:49:25 +0000 (15:49 +0100)]
Cleanup, compiler warnings in release mode

2 years agoMerge branch 'master' into blender2.8
Brecht Van Lommel [Thu, 8 Nov 2018 14:13:43 +0000 (15:13 +0100)]
Merge branch 'master' into blender2.8

2 years agoCleanup, spelling
Sergey Sharybin [Wed, 7 Nov 2018 16:22:02 +0000 (17:22 +0100)]
Cleanup, spelling

2 years agoFix build on 32bit after Embree changes.
Brecht Van Lommel [Thu, 8 Nov 2018 13:48:54 +0000 (14:48 +0100)]
Fix build on 32bit after Embree changes.

2 years agoFix: show options of image empty only for image empties
Jacques Lucke [Thu, 8 Nov 2018 13:30:27 +0000 (14:30 +0100)]
Fix: show options of image empty only for image empties

2 years agoRNA: tag animation update when changing Action Extrapolation/Blend/etc.
Alexander Gavrilov [Thu, 8 Nov 2018 10:56:57 +0000 (13:56 +0300)]
RNA: tag animation update when changing Action Extrapolation/Blend/etc.

These fields affect the final result when using NLA.

2 years agoRNA API: ViewLayers: add name to LayerCollection struct.
Bastien Montagne [Thu, 8 Nov 2018 10:34:18 +0000 (11:34 +0100)]
RNA API: ViewLayers: add name to LayerCollection struct.

Just use Collection name (same as for material slots e.g.).

That way, one can access those by their names as well, in
LayerCollection.children ... collection property (yeah, collection,
collection, and moar collection).

2 years agoUI: fix glitch showing the redo panel
Campbell Barton [Thu, 8 Nov 2018 04:43:42 +0000 (15:43 +1100)]
UI: fix glitch showing the redo panel

2 years agobuild: add proper embree support to platform_win32.cmake
Ray Molenkamp [Thu, 8 Nov 2018 02:34:49 +0000 (19:34 -0700)]
build: add proper embree support to platform_win32.cmake

made the use of findpackage optional and add support for debug builds

2 years agobuild_environment: add debug libs for embree on windows
Ray Molenkamp [Thu, 8 Nov 2018 02:33:07 +0000 (19:33 -0700)]
build_environment: add debug libs for embree on windows

2 years agobuild_deps_windows: add option to to only create project files.
Ray Molenkamp [Thu, 8 Nov 2018 02:18:53 +0000 (19:18 -0700)]
build_deps_windows: add option to to only create project files.

2 years agoCycles: Write Cryptomatte metadata according to the specification
Lukas Stockner [Wed, 7 Nov 2018 03:05:47 +0000 (04:05 +0100)]
Cycles: Write Cryptomatte metadata according to the specification

Reviewers: brecht, sergey, swerner

Subscribers: creamsurfer, Tanguy, Noss, SteffenD

Differential Revision:

2 years agoRender API: Support arbitrary length for custom image metadata fields
Lukas Stockner [Thu, 8 Nov 2018 00:05:55 +0000 (01:05 +0100)]
Render API: Support arbitrary length for custom image metadata fields

2 years agoUI: hide bundled addons which haven't been updated
Campbell Barton [Wed, 7 Nov 2018 23:10:08 +0000 (10:10 +1100)]
UI: hide bundled addons which haven't been updated

All are displayed when '--debug' is set, see: T56351

2 years agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 7 Nov 2018 22:56:22 +0000 (09:56 +1100)]
Merge branch 'master' into blender2.8

2 years agoCleanup: minor simplification to user-addon check
Campbell Barton [Wed, 7 Nov 2018 22:54:13 +0000 (09:54 +1100)]
Cleanup: minor simplification to user-addon check

2 years agoRNA: Object.select_set use boolean, only select
Campbell Barton [Wed, 7 Nov 2018 21:51:03 +0000 (08:51 +1100)]
RNA: Object.select_set use boolean, only select

- Was setting active state, making it necessary to backup/restore
  active object in cases where this isn't needed.
  Existing scripts are explicitly setting the active object when needed.

- Use a boolean select arg (toggle selection wasn't used anywhere).

- Add an optional view layer argument since scripts should be able to
  operate outside the user context.

2 years agoCleanup: use explicit 'select_and_set_active' API name
Campbell Barton [Wed, 7 Nov 2018 21:15:22 +0000 (08:15 +1100)]
Cleanup: use explicit 'select_and_set_active' API name

Selection should be separated from active state and handled by higher
level code (operators/editors) instead of happening automatically.

2 years agoGPU: Cleanups: Remove GPUMatType, Vectorize / MADD some operations
Clément Foucault [Wed, 7 Nov 2018 21:16:03 +0000 (22:16 +0100)]
GPU: Cleanups: Remove GPUMatType, Vectorize / MADD some operations

2 years agoEevee: Add support for interpolation options for Environment Texture nodes
Clément Foucault [Wed, 7 Nov 2018 21:14:18 +0000 (22:14 +0100)]
Eevee: Add support for interpolation options for Environment Texture nodes

2 years agoEevee: Support for extension type in the Node Image Texture
Clément Foucault [Wed, 7 Nov 2018 18:40:24 +0000 (19:40 +0100)]
Eevee: Support for extension type in the Node Image Texture

This does not work with the box projection mode. Implementing for box
projection mode would be difficult, slow, and produce a lot of code
duplication. Also i'm not sure this is worth it, as it's not a common use

2 years agoCleanup: style, use const args
Campbell Barton [Wed, 7 Nov 2018 21:02:02 +0000 (08:02 +1100)]
Cleanup: style, use const args