15 months agoFix mapped mesh display skipping generated faces
Campbell Barton [Wed, 24 Oct 2018 02:12:18 +0000 (13:12 +1100)]
Fix mapped mesh display skipping generated faces

15 months agoCleanup: use bmesh index access functions
Campbell Barton [Wed, 24 Oct 2018 02:07:21 +0000 (13:07 +1100)]
Cleanup: use bmesh index access functions

15 months agoMerge branch 'master' into blender2.8
Campbell Barton [Wed, 24 Oct 2018 01:55:44 +0000 (12:55 +1100)]
Merge branch 'master' into blender2.8

15 months agoBMesh: inline index lookups
Campbell Barton [Wed, 24 Oct 2018 01:54:12 +0000 (12:54 +1100)]
BMesh: inline index lookups

For release builds this is now the same as indexing the array directly.

15 months agoFix T57366: Mesh.from_pydata invalid loose-edge state
Campbell Barton [Wed, 24 Oct 2018 00:37:44 +0000 (11:37 +1100)]
Fix T57366: Mesh.from_pydata invalid loose-edge state

15 months agoLattice UI: Add select more/less to menu
Dalai Felinto [Tue, 23 Oct 2018 23:40:19 +0000 (20:40 -0300)]
Lattice UI: Add select more/less to menu

15 months agoMulti-Objects: LATTICE_OT_select_more/less
Dalai Felinto [Tue, 23 Oct 2018 23:38:30 +0000 (20:38 -0300)]
Multi-Objects: LATTICE_OT_select_more/less

Note: Those operators are yet to be added to the menu.

15 months agoMulti-Objects: LATTICE_OT_select_ungrouped
Dalai Felinto [Tue, 23 Oct 2018 23:25:57 +0000 (20:25 -0300)]
Multi-Objects: LATTICE_OT_select_ungrouped

I thought about having a single error message, or to use BKE_reportf to just
add the "s". That would be bad for translators, so now we have two
explicit messages.

15 months agoEevee: Fix lightcache not working for small caches
Clément Foucault [Tue, 23 Oct 2018 16:04:29 +0000 (18:04 +0200)]
Eevee: Fix lightcache not working for small caches

Was caused by a threading issue. The lightcache was free before the endjob
function pass it to the scene.

Also fix cache reuse if size matches.

15 months agoEevee: Fix crash when clicking the lightcache bake button multiple time
Clément Foucault [Tue, 23 Oct 2018 15:27:10 +0000 (17:27 +0200)]
Eevee: Fix crash when clicking the lightcache bake button multiple time

15 months agoEevee: Fix crash when baking
Clément Foucault [Tue, 23 Oct 2018 13:52:04 +0000 (15:52 +0200)]
Eevee: Fix crash when baking

Was caused by the normal pass being enbaled in the renderlayer settings.

Fix T57344

15 months agoWorkbench: Use AntiAliasing in render even if not enabled in the User Prefs
Clément Foucault [Mon, 22 Oct 2018 21:25:09 +0000 (23:25 +0200)]
Workbench: Use AntiAliasing in render even if not enabled in the User Prefs

15 months agoWorkbench: Fix Wrong AntiAliasing in renders
Clément Foucault [Mon, 22 Oct 2018 21:24:27 +0000 (23:24 +0200)]
Workbench: Fix Wrong AntiAliasing in renders

Was caused by offseting the same matrix for each samples instead of adding
the offset to the original projection matrix.

15 months agoFix T57326: Adding Scene with Transparent Film to VSE Crashes Blender
Clément Foucault [Mon, 22 Oct 2018 20:49:33 +0000 (22:49 +0200)]
Fix T57326: Adding Scene with Transparent Film to VSE Crashes Blender

Previous Framebuffer can be NULL.

15 months agoWireframe: Fix wireframe object drawtype with "in front" draw option
Clément Foucault [Mon, 22 Oct 2018 17:44:45 +0000 (19:44 +0200)]
Wireframe: Fix wireframe object drawtype with "in front" draw option

First problem is that enabling the "in front" option made the wire object
test against an not updated stencil buffer.

Second problem is that the "in front" option was useless on wire objects.
To fix this we bypass the depth test and live with some sorting problem.

15 months agoXray Mode: Fix wireframe object display type not being correctly occluded
Clément Foucault [Mon, 22 Oct 2018 15:52:25 +0000 (17:52 +0200)]
Xray Mode: Fix wireframe object display type not being correctly occluded

15 months agoGP: Rename Offset to Frame Offset in Time modifier
Antonioya [Tue, 23 Oct 2018 15:28:02 +0000 (17:28 +0200)]
GP: Rename Offset to Frame Offset in Time modifier

15 months agoGP: Add new frame scale parameter to Time modifier
Antonioya [Tue, 23 Oct 2018 14:44:31 +0000 (16:44 +0200)]
GP: Add new frame scale parameter to Time modifier

This new parameter allows to increase or decrease the animation speed to break animation patterns when reuse data blocks.

15 months agoFix missing relations update after allocating compositor
Sergey Sharybin [Tue, 23 Oct 2018 13:37:00 +0000 (15:37 +0200)]
Fix missing relations update after allocating compositor

Compositor has own node in the dependency graph, so need to make
sure relations are up to date.

This fixes wrong user counter when creating compositor nodes for
a new scene.

15 months agoI18n: tweak/fix exception catching code of pgettex() wrapper.
Bastien Montagne [Tue, 23 Oct 2018 12:34:38 +0000 (14:34 +0200)]
I18n: tweak/fix exception catching code of pgettex() wrapper.

Related to T57066, rather unlikely to fix core of the issue, but may
solve crash itself.

15 months agoRename editor to "Texture Node Editor"
Sergey Sharybin [Tue, 23 Oct 2018 12:17:22 +0000 (14:17 +0200)]
Rename editor to "Texture Node Editor"

This editor edits nodes, and the old name of "Texture Editor" is misleading,
since when one want to edit it is unclear whether UV/Image or Texture editor
is more suitable for the task.

15 months agoFix: missing sequencer update
Jacques Lucke [Tue, 23 Oct 2018 12:03:57 +0000 (14:03 +0200)]
Fix: missing sequencer update

This should be fixed differently in the future. Read D3821 for more details.

Reviewers: brecht

Differential Revision:

15 months agoGP: Rename modifier Time to Time Offset
Antonioya [Tue, 23 Oct 2018 11:16:15 +0000 (13:16 +0200)]
GP: Rename modifier Time to Time Offset

15 months agoFix compiler error in Windows
Antonioya [Tue, 23 Oct 2018 11:13:04 +0000 (13:13 +0200)]
Fix compiler error in Windows

15 months agoGP: Add transform tools to Toolbar
Antonioya [Tue, 23 Oct 2018 11:03:25 +0000 (13:03 +0200)]
GP: Add transform tools to Toolbar

15 months agoFix T57288: Assert when deleting duplicated collection (id->us == 0).
Bastien Montagne [Tue, 23 Oct 2018 09:59:53 +0000 (11:59 +0200)]
Fix T57288: Assert when deleting duplicated collection (id->us == 0).

Copying an ID also add a default user to new one (just like creating an
ID), by default...

15 months agoGP: Reduce samples in glow
Antonioya [Tue, 23 Oct 2018 08:57:50 +0000 (10:57 +0200)]
GP: Reduce samples in glow

The number of samples was too high.

15 months agoGPUShader: shader.uniform_float parameters
Jacques Lucke [Tue, 23 Oct 2018 08:17:38 +0000 (10:17 +0200)]
GPUShader: shader.uniform_float parameters

Allow to pass in single numbers, sequences and mathutils.* types into `shader.uniform_float`.

Reviewers: mano-wii

Differential Revision:

15 months agoPoint addons contrib to 2.8 branch
Sergey Sharybin [Tue, 23 Oct 2018 07:41:12 +0000 (09:41 +0200)]
Point addons contrib to 2.8 branch

15 months agoMulti-Objects: Calculate Transform origin w/ all editmode meshes
Campbell Barton [Tue, 23 Oct 2018 06:55:02 +0000 (17:55 +1100)]
Multi-Objects: Calculate Transform origin w/ all editmode meshes

D3550 by @Leon95

15 months agoFix T57190: loopcut crash w/o overlays
Campbell Barton [Tue, 23 Oct 2018 04:16:49 +0000 (15:16 +1100)]
Fix T57190: loopcut crash w/o overlays

15 months agoCleanup: rename 'dm' -> 'me' for 'Mesh' types
Campbell Barton [Tue, 23 Oct 2018 04:00:40 +0000 (15:00 +1100)]
Cleanup: rename 'dm' -> 'me' for 'Mesh' types

15 months agoFix bad origindex layers for editmode modifiers
Campbell Barton [Tue, 23 Oct 2018 02:50:43 +0000 (13:50 +1100)]
Fix bad origindex layers for editmode modifiers

Reverts workaround from last commit.

15 months agoDRW: workaround for editmode crash w/ constructive modifiers
Campbell Barton [Tue, 23 Oct 2018 01:34:34 +0000 (12:34 +1100)]
DRW: workaround for editmode crash w/ constructive modifiers

Actual cause is bad orig-index layer,
commit this to avoid crash for now.

15 months agoCleanup: style, warning
Campbell Barton [Mon, 22 Oct 2018 23:53:40 +0000 (10:53 +1100)]
Cleanup: style, warning

15 months agoCleanup: rename VertBuf.fill_attribute > attr_fill
Campbell Barton [Mon, 22 Oct 2018 23:49:36 +0000 (10:49 +1100)]
Cleanup: rename VertBuf.fill_attribute > attr_fill

15 months agoFix various icon related issues:
William Reynish [Mon, 22 Oct 2018 17:19:15 +0000 (19:19 +0200)]
Fix various icon related issues:

* Used correct icons for Tracking.
* Flip Copy/Paste icons so they are correct.
* Add correct icon for softbody modifier.
* Replace speaker icons for enabling F-Curves with checkboxes.

15 months agoFix build after recent changes, filename must have right case.
Brecht Van Lommel [Mon, 22 Oct 2018 17:10:48 +0000 (19:10 +0200)]
Fix build after recent changes, filename must have right case.

15 months agoFix memory leak in drivers pover
Antonioya [Mon, 22 Oct 2018 16:58:07 +0000 (18:58 +0200)]
Fix memory leak in drivers pover

15 months agoGP: New Time modifier
Antonioya [Mon, 22 Oct 2018 16:25:13 +0000 (18:25 +0200)]
GP: New Time modifier

This modifier allows to offset the keyframe animated to get more variations in the animation when reuse the same datablock.

15 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Mon, 22 Oct 2018 16:19:06 +0000 (10:19 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

15 months agoWindows: Enable python debugging in Visual Studio.
Ray Molenkamp [Mon, 22 Oct 2018 16:17:08 +0000 (10:17 -0600)]
Windows: Enable python debugging in Visual Studio.

see D3817 for technical details, and for a end user quick-start guide.

Differential Revision:

15 months agoOptimizadion: Fix performanse issue of UI on some old GPUs.
mano-wii [Mon, 22 Oct 2018 15:58:29 +0000 (12:58 -0300)]
Optimizadion: Fix performanse issue of UI on some old GPUs.

Apparently the registry is not large enough and the compiler does something bad in indexing the array.

15 months agoDrag & Drop: Support Open/Link/Append when dropping .blend file
Jacques Lucke [Mon, 22 Oct 2018 15:18:42 +0000 (17:18 +0200)]
Drag & Drop: Support Open/Link/Append when dropping .blend file

When a .blend file is dropped into Blender a small menu opens.
In that menu the user can choose between three options: Open, Link and Append.

Reviewers: brecht

Differential Revision:

15 months agoFollowup to previous change, reduce number of relations updates
Sergey Sharybin [Mon, 22 Oct 2018 15:13:19 +0000 (17:13 +0200)]
Followup to previous change, reduce number of relations updates

Only tag relations update when new f-curve was allocated. This solves
possible too slow keyframe insertion when doing character animation,
but still does proper relation update when new ID component became

15 months agoDepsgraph: Fix missing relation update
Sergey Sharybin [Mon, 22 Oct 2018 14:49:39 +0000 (16:49 +0200)]
Depsgraph: Fix missing relation update

The issue was happening when adding animation to properties
which affects different components of IDs.

Reported by Philipp Oeser as part of T56636.

15 months agoFix T56636: Custom property cannot be animated
Sergey Sharybin [Mon, 22 Oct 2018 14:43:49 +0000 (16:43 +0200)]
Fix T56636: Custom property cannot be animated

No need to tag object for time update, with new dependency graph
this forces animation to be re-evaluated, which is not something
we want in this instance.

Same patch/solution Philipp Oeser came to as well.

15 months agoMark TODO/XXX as solved
Sergey Sharybin [Mon, 22 Oct 2018 14:43:16 +0000 (16:43 +0200)]
Mark TODO/XXX as solved

We do have proper access to bmain now.

15 months agoDRW: Fix missing uniform warning in debug mode
Clément Foucault [Mon, 22 Oct 2018 13:55:42 +0000 (15:55 +0200)]
DRW: Fix missing uniform warning in debug mode

Fix T57318

15 months agoDRW: Fix crash on startup for old Nvidia drivers
Clément Foucault [Mon, 22 Oct 2018 13:53:35 +0000 (15:53 +0200)]
DRW: Fix crash on startup for old Nvidia drivers

This should fix T57296 once and for all.

15 months agoPython API: fix docstrings
Jacques Lucke [Mon, 22 Oct 2018 13:01:25 +0000 (15:01 +0200)]
Python API: fix docstrings

15 months agoAPI Docs: remove 'level' from blf.color arguments
Jacques Lucke [Mon, 22 Oct 2018 12:55:18 +0000 (14:55 +0200)]
API Docs: remove 'level' from blf.color arguments

Reviewers: brecht

Differential Revision:

15 months agoFix T57028: Connect Vertex not working with more than 2 selected
Philipp Oeser [Mon, 22 Oct 2018 12:07:00 +0000 (14:07 +0200)]
Fix T57028: Connect Vertex not working with more than 2 selected

rB944054fbb61e introduced a sanity check which is not needed and
prevents the operator to run successfully with more than 2 selected

Reviewed By: dfelinto

Differential Revision:

15 months agoOutliner: drag&drop - separate moving from parenting
Jacques Lucke [Mon, 22 Oct 2018 11:53:36 +0000 (13:53 +0200)]
Outliner: drag&drop - separate moving from parenting

Use drag&drop to parent objects in the outliner by holding down shift.
Previously it was easy to accidently parent objects and there was no way to notice it immediatly.

In some views it is possible to parent objects without using shift; should be obvious from context.

Reviewers: brecht

Differential Revision:

15 months agoGPU: Fix Issue with recursive downsample and Intel HDXXX
Clément Foucault [Mon, 22 Oct 2018 10:58:11 +0000 (12:58 +0200)]
GPU: Fix Issue with recursive downsample and Intel HDXXX

This is caused by a driver bug that prevent us from rendering to (or even
binding) a texture mip level that is below GL_TEXTURE_MAX_LEVEL of the
target texture. This is fine in most drivers (and legal AFAIK) but not on
thoses Intels HDXXX + Windows.

As a fix we just put GL_TEXTURE_MAX_LEVEL lower (which is illegal because
it is undefined behaviour), but in practice it works ok and does not
trigger any warnings or errors.

This commit fixes most of the problems encountered on these GPUs (T56668).

15 months agoMerge branch 'master' into blender2.8
Bastien Montagne [Mon, 22 Oct 2018 08:55:16 +0000 (10:55 +0200)]
Merge branch 'master' into blender2.8


15 months agoTentative fix for T57066: Daily build of Blend 2.79 crashes on OSX Mojave.
Bastien Montagne [Mon, 22 Oct 2018 08:39:57 +0000 (10:39 +0200)]
Tentative fix for T57066: Daily build of Blend 2.79 crashes on OSX Mojave.

Looks like we need to explicitly set i18n language to default value on
some OSs... Unless that 'need to create new translated-name IDs in
versionning code for startup file' situation is really seldom.

Anyway, hopefully that will fix the crash.

15 months agoUI: remove mask toolbar, use menus instead
Campbell Barton [Mon, 22 Oct 2018 07:08:19 +0000 (18:08 +1100)]
UI: remove mask toolbar, use menus instead

15 months agoUI: move scrollbars inside region tabs
Campbell Barton [Mon, 22 Oct 2018 05:41:18 +0000 (16:41 +1100)]
UI: move scrollbars inside region tabs

15 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 22 Oct 2018 04:13:43 +0000 (15:13 +1100)]
Merge branch 'master' into blender2.8

15 months agoPrevent G.fileflags changes when WM_OT_save_mainfile() is called from script
Campbell Barton [Mon, 22 Oct 2018 04:08:26 +0000 (15:08 +1100)]
Prevent G.fileflags changes when WM_OT_save_mainfile() is called from script

This is to solve an issue where a blend file could be compressed
unbeknownst to the artist. This happened in the following situtation:

- Artist edits an uncompressed blend file.
- Some script saves a compressed blendfile to a separate location.
- When the artist saves the file (s)he is editing (File>Save, or Ctrl+S),
  it was silently compressed.

Cherry pick from: cd3b313d5f44a10a1150bf1ddb560775d1bcd827

15 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 22 Oct 2018 03:59:12 +0000 (14:59 +1100)]
Merge branch 'master' into blender2.8

Reverts: 92fd931e536

15 months agoFix T57328: 'Save As Copy' prints warning
Campbell Barton [Mon, 22 Oct 2018 03:51:06 +0000 (14:51 +1100)]
Fix T57328: 'Save As Copy' prints warning

15 months agoCycles: Enable shadow information in requested features when denoising is used
Lukas Stockner [Sun, 21 Oct 2018 22:14:22 +0000 (00:14 +0200)]
Cycles: Enable shadow information in requested features when denoising is used

The shadow information isn't only used for shadowcatchers, but also to generate the shadowing feature pass of the denoiser.

15 months agoFix T57320: Crash when adding a linked scene, then deleting it.
Bastien Montagne [Sun, 21 Oct 2018 15:22:09 +0000 (17:22 +0200)]
Fix T57320: Crash when adding a linked scene, then deleting it.

You want to check collections (for NULL children) first, before you
actually go into those children collections checking for NULL objects...

15 months agoFix non-sense overloaded code in remapping post-process of objects and collections.
Bastien Montagne [Sun, 21 Oct 2018 15:20:17 +0000 (17:20 +0200)]
Fix non-sense overloaded code in remapping post-process of objects and collections.

In one case, code was calling the same func on bmain for all objects or
collections inside that bmain... seriously...

15 months agoOptimize meta-ball basis check.
Bastien Montagne [Sun, 21 Oct 2018 15:17:34 +0000 (17:17 +0200)]
Optimize meta-ball basis check.

`BKE_mball_is_basis_for()` was processing whole name, when we can
actually rule out most of cases by just checking third char of the ID
names first, which is much, much cheaper.

Even though MBalls are not much used nowadays, that's a nice
optimization when this is called over a whole Main database full of
meta-balls objects...

15 months agoIcons: update geometry icons
William Reynish [Sun, 21 Oct 2018 05:04:58 +0000 (16:04 +1100)]
Icons: update geometry icons

- Tweaked icons for Box Select, Circle Select & Lasso Select.
- Tweaked icons for Rip Region & Rip Edge.
- Added icons for Bone Envelope, Bone Size, Pose Breakdown,
  Pose Push & Pose Relax.
- Added icons for curve Extrude, Extrude Cursor.

Also removed grease pencil mirror tool which wasn't an active tool,
and is now consistent with regular Edit Mode.

15 months agoCleanup: style
Campbell Barton [Sun, 21 Oct 2018 05:22:46 +0000 (16:22 +1100)]
Cleanup: style

15 months agoCleanup: trailing space
Campbell Barton [Sun, 21 Oct 2018 05:08:30 +0000 (16:08 +1100)]
Cleanup: trailing space

15 months agoCleanup: compiler warnings
Campbell Barton [Sun, 21 Oct 2018 05:22:31 +0000 (16:22 +1100)]
Cleanup: compiler warnings

15 months agoGP: Fix duplication when draw strokes in multiple windows
Antonioya [Sat, 20 Oct 2018 17:40:29 +0000 (19:40 +0200)]
GP: Fix duplication when draw strokes in multiple windows

The stroke must be visible only in the current region and only visible when the stroke is completed.

15 months agoGP: Redesign drawing cache to support particles
Antonioya [Fri, 19 Oct 2018 18:39:21 +0000 (20:39 +0200)]
GP: Redesign drawing cache to support particles

Full redesign of the cache system used for drawing strokes and handle derived frame data.

Before, the cache was saved in bGPdata and a hash was used to manage several objects with the same datablock.

Old design made the use of particles very inefficient and prone to bugs and segment faults, and especially when this was mixed with onion skinning and multiple objects using same datablock. Also, there were some conflicts with the depsgrah logic (the old design was done before despgraph was in place) that made the use of hash not working.

The new design saves the data in the object runtime struct and avoid the use of any hash to find the right data. This improves the speed and reduce a lot the complexity of the code, memory allocation, hash overload and adds full support for particles and reused datablocks.

The particles can reuse the modifiers and shader effects of the original grease pencil object.

16 months agoFix typo
Joshua Leung [Sat, 20 Oct 2018 02:28:43 +0000 (15:28 +1300)]
Fix typo

16 months agoFix: Drivers popover not showing
Joshua Leung [Fri, 12 Oct 2018 22:32:28 +0000 (11:32 +1300)]
Fix: Drivers popover not showing

This was broken since cca87ccc753a85b447872a259c9d3e3f07ec1c13

The problem was that as this popover was defined in the C-code
for the Graph Editor, the relevant panel never got added to the
WM_paneltype registry, since only Python defined panels get
WM_paneltype_add() called when they are defined.

Since the majority of panels defined for regions are only used there,
a more localised fix was applied here by only adding the driver popover
to the global list manually.

16 months agoMulti-Objects: pose slide operators
Dalai Felinto [Fri, 19 Oct 2018 22:08:12 +0000 (19:08 -0300)]
Multi-Objects: pose slide operators

* POSE_OT_breakdown
* POSE_OT_relax
* POSE_OT_push
* POSE_OT_propagate

Note: I could not test relax because of T57313.

Note 2: I believe those are the last armature related operators to be
ported - \o/

16 months agoFix Eevee Reflection CubeMap and Irradiance Volume on some Intel gpus
mano-wii [Fri, 19 Oct 2018 21:22:02 +0000 (18:22 -0300)]
Fix Eevee Reflection CubeMap and Irradiance Volume on some Intel gpus

When you pass a struct as a parameter to a function, the qualifier "layout(column_major)" is lost.

16 months agoRename BakeAction > NLA_OT_bake
Dalai Felinto [Fri, 19 Oct 2018 19:35:09 +0000 (16:35 -0300)]
Rename BakeAction > NLA_OT_bake

This was already the bl_idname anyways.

Now this seems to be working, for single and multi-pose.
That said, the operator seems to fail on redo.

16 months agoRemove defunct NLA_OT_bake
Dalai Felinto [Fri, 19 Oct 2018 19:12:35 +0000 (16:12 -0300)]
Remove defunct NLA_OT_bake

It's been 9 years too long.
And don't get this one confused with nla.bake (why would you even?).

The·BakeAction operator will be renamed to NLA_TO_bake next.

16 months agoMulti-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_KEYINGSET 3/3
Dalai Felinto [Fri, 19 Oct 2018 18:44:04 +0000 (15:44 -0300)]
Multi-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_KEYINGSET 3/3

Note for posterity, I couldn't figure out a way to test this mode
properly. That said, it should be working with multiple-poses now.

16 months agoMulti-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_LAYER 2/3
Dalai Felinto [Fri, 19 Oct 2018 15:44:33 +0000 (12:44 -0300)]
Multi-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_LAYER 2/3

16 months agoMulti-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_GROUP 1/3
Dalai Felinto [Fri, 19 Oct 2018 14:53:48 +0000 (11:53 -0300)]
Multi-Objects: POSE_OT_select_grouped > POSE_SEL_SAME_GROUP 1/3

And disable the other options for now.

16 months agoCleanup: CTX_DATA_BEGIN_FOR_ID no longer needed
Dalai Felinto [Fri, 19 Oct 2018 13:15:01 +0000 (10:15 -0300)]
Cleanup: CTX_DATA_BEGIN_FOR_ID no longer needed

16 months agoFix py API docgen script for new context members.
Bastien Montagne [Fri, 19 Oct 2018 18:13:50 +0000 (20:13 +0200)]
Fix py API docgen script for new context members.

16 months agoMake Static Override optional/hidden by default.
Bastien Montagne [Fri, 19 Oct 2018 14:42:42 +0000 (16:42 +0200)]
Make Static Override optional/hidden by default.

That feature will not be ready (or at least, not tested enough) to be
officially part of 2.80 beta. So we disable it by default, hidding it
behind a startup option (`--enable-static-override`), and a python
app var (``).

That way, people who really want to play with it can do it easily, while
not exposing/enabling non-production-ready feature by default.

Note that underlying override code remains active, i.e. files we do have
overridden data-blocks will be loaded correctly according to static override.

16 months agoEevee: LightProbes: Fix negative padding
Clément Foucault [Fri, 19 Oct 2018 13:12:45 +0000 (15:12 +0200)]
Eevee: LightProbes: Fix negative padding

16 months agoFix function using same local variable name as output variable
Clément Foucault [Fri, 19 Oct 2018 13:06:08 +0000 (15:06 +0200)]
Fix function using same local variable name as output variable

This may fix issues with certain compiler.

16 months agoDope Sheet: remove many hard-coded color and alpha constants.
Alexander Gavrilov [Thu, 18 Oct 2018 20:48:06 +0000 (23:48 +0300)]
Dope Sheet: remove many hard-coded color and alpha constants.

Add the necessary colors and/or alpha components to the theme instead.
Also switch the background for ordinary channels to use the likely
intended theme option, instead of the window background color.

The general rule is that the channel color is drawn full strength in the
channel list on the left, and with alpha in the actual key frame area on
the right. This alpha is also reused with bone group colors.

Reviewers: brecht, billreynish

Differential Revision:

16 months agoUI: reorder and group blend modes in menus, similar to other apps.
Charlie Jolly [Fri, 19 Oct 2018 14:56:38 +0000 (16:56 +0200)]
UI: reorder and group blend modes in menus, similar to other apps.

Differential Revision:

16 months agoUI: move reports / job back to status bar, but make it more visible with color.
Brecht Van Lommel [Fri, 19 Oct 2018 15:14:27 +0000 (17:14 +0200)]
UI: move reports / job back to status bar, but make it more visible with color.

16 months agoMerge remote-tracking branch 'origin/master' into blender2.8
Ray Molenkamp [Fri, 19 Oct 2018 15:16:26 +0000 (09:16 -0600)]
Merge remote-tracking branch 'origin/master' into blender2.8

16 months agobuild_depenencies: Fix url for openal.
Ray Molenkamp [Fri, 19 Oct 2018 15:09:06 +0000 (09:09 -0600)]
build_depenencies: Fix url for openal.

16 months agoFix shadows of sun type lights on some Intel gpus
mano-wii [Fri, 19 Oct 2018 14:02:36 +0000 (11:02 -0300)]
Fix shadows of sun type lights on some Intel gpus

When you pass a struct as a parameter to a function, the qualifier "layout(column_major)" is lost.

16 months agoFix T57284: poor result UV unwrapping concave n-gon.
Brecht Van Lommel [Fri, 19 Oct 2018 12:42:27 +0000 (14:42 +0200)]
Fix T57284: poor result UV unwrapping concave n-gon.

16 months agoMulti-Objects: Implement/Fix POSE_OT_select_constraint_target
Dalai Felinto [Fri, 19 Oct 2018 12:38:21 +0000 (09:38 -0300)]
Multi-Objects: Implement/Fix POSE_OT_select_constraint_target

This operator had an initial multi-objects implementation.
However it would not select target bones across different selected objects.

16 months agoOutliner: Open empty collection when something is dragged into it
Jacques Lucke [Fri, 19 Oct 2018 12:30:39 +0000 (14:30 +0200)]
Outliner: Open empty collection when something is dragged into it

Reviewers: brecht

Differential Revision:

16 months agoUV_OT_unwrap: Error messages
Dalai Felinto [Fri, 19 Oct 2018 12:13:59 +0000 (09:13 -0300)]
UV_OT_unwrap: Error messages

Make sure a message is not reported multiple times when working with
multi-objects. Like in 2.7x we may have two infos coming from the same operator.

In 2.7 we could report non-uniform xor non-scaled, and subsurface.
Now we can report each one of those errors separately.

16 months agoFix multiple-object uv selection not "deselecting" other objects
Dalai Felinto [Fri, 19 Oct 2018 11:49:55 +0000 (08:49 -0300)]
Fix multiple-object uv selection not "deselecting" other objects

16 months agoCTX_DATA_BEGIN for active object only (..._from_active_object)
Dalai Felinto [Fri, 19 Oct 2018 11:29:15 +0000 (08:29 -0300)]
CTX_DATA_BEGIN for active object only (..._from_active_object)

For now only `selected_pose_bones_from_active_object`, more options can
be added on demand.

Discussed this with Campbell Barton. We may need this only for selected
pose bones, time will tell.

16 months agoVersioning: name screens by their workspaces
Campbell Barton [Fri, 19 Oct 2018 09:29:15 +0000 (20:29 +1100)]
Versioning: name screens by their workspaces

Avoids all screens in the startup file being named 'Default.###'.