blender.git
7 months agoUI: Preferences Redesign Part 2
Severin [Fri, 4 Jan 2019 20:40:16 +0000 (21:40 +0100)]
UI: Preferences Redesign Part 2

(Part 1 was 00963afc14978b)

Does the following changes visible to users:
* Use panels and sub-panels for more structured & logical grouping
* Re-organized options more logically than before (see images in D4148)
* Use flow layout (single column by default).
* New layout uses horizontal margin if there's enough space.
* Change size of Preferences window to suit new layout.
* Move keymap related options from "Input" into own section.
* Own, left-bottom aligned region for Save Preferences button.
* Adjustments of names, tooltips & icons.
* Move buttons from header into the main region (except editor switch).
* Hide Preferences header when opened in temporary window.
* Use full area width for header.
* Don't use slider but regular number widget for UI scale.
* Gray out animation player path option if player isn't "Custom"

Internal changes:
* Rearrange RNA properties to match changed UI structure.
* Introduces new "EXECUTE" region type, see reasoning in D3982.
* Changes to panel layout and AZone code for dynamic panel region.
* Bumps subversion and does versioning for new regions.

RNA changes are documented in the release notes:
https://wiki.blender.org/wiki/Reference/Release_Notes/2.80/Python_API/Preferences_API

Design & implementation mostly done by @billreynish and myself.
I recommend checking out the screenshots posted by William:
https://developer.blender.org/D4148#93787

Reviewed By: brecht

Maniphest Tasks: T54115

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

7 months agoGP: Add Fill keyframe if active not equal to CFRA
Antonioya [Fri, 4 Jan 2019 18:35:42 +0000 (19:35 +0100)]
GP: Add Fill keyframe if active not equal to CFRA

When fill a stroke if the fill layer hasn't keyframe, the fill is wrong because previous fill shape hide area to fill.

Now, if the keyframe is missing in the active layer for the current frame, a new frame is added.

7 months agoFix T57890: freestyle rendering crash.
Brecht Van Lommel [Fri, 4 Jan 2019 16:35:07 +0000 (17:35 +0100)]
Fix T57890: freestyle rendering crash.

Depsgraph objects are deleted after conversion to Freestyle data structures,
so don't keep a pointer to their name strings.

7 months agoFix T60157: Applying subdivide GP modifier gets wrong fill
Antonioya [Fri, 4 Jan 2019 16:18:03 +0000 (17:18 +0100)]
Fix T60157: Applying subdivide GP modifier gets wrong fill

The problem was the triangulation cache was not initializated.

7 months agoFix T58669, T59772: freestyle + EEVEE render not working.
Brecht Van Lommel [Fri, 4 Jan 2019 16:06:50 +0000 (17:06 +0100)]
Fix T58669, T59772: freestyle + EEVEE render not working.

7 months agoFix T59546: Grease Pencil Edit: Rotation around individual origins error
Antonioya [Fri, 4 Jan 2019 16:01:39 +0000 (17:01 +0100)]
Fix T59546: Grease Pencil Edit: Rotation around individual origins error

Thanks to Habib Gahbiche (@zazizizou) for helping fixing this bug. See D4156.

7 months agoFix T58692: splash screen next not working when using BLENDER_USER_CONFIG.
Brecht Van Lommel [Fri, 4 Jan 2019 15:24:11 +0000 (16:24 +0100)]
Fix T58692: splash screen next not working when using BLENDER_USER_CONFIG.

7 months agoDepsgraph: Fix missing relation from node tree to light
Sergey Sharybin [Fri, 4 Jan 2019 15:17:53 +0000 (16:17 +0100)]
Depsgraph: Fix missing relation from node tree to light

Was only happening when lamp had driver on the Light datablock.

Reported by Dalai Felinto in T60137.

7 months agoFix T60124: Multires modifier not reading data from external files
Sergey Sharybin [Fri, 4 Jan 2019 14:57:44 +0000 (15:57 +0100)]
Fix T60124: Multires modifier not reading data from external files

7 months agoSilence warning
Dalai Felinto [Fri, 4 Jan 2019 14:57:17 +0000 (12:57 -0200)]
Silence warning

7 months agoOutliner: better support for clips/masks ('Blender File' view)
Philipp Oeser [Sat, 29 Dec 2018 17:26:04 +0000 (18:26 +0100)]
Outliner: better support for clips/masks ('Blender File' view)

- clips/masks were not showing an icon [both dont have a dedicated icon,
took the ones used elsewhere]
- masks hit an assert in outliner_add_element()
- missing outliner update when adding a mask

spotted while looking into T59939

Reviewers: mont29, brecht

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

7 months agoUI: fix incorrect collapse menu button alignment.
Harley Acheson [Fri, 4 Jan 2019 14:12:12 +0000 (15:12 +0100)]
UI: fix incorrect collapse menu button alignment.

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

7 months agoUI: make text editor scrollbar with consistent with other editors.
Harley Acheson [Fri, 4 Jan 2019 14:11:59 +0000 (15:11 +0100)]
UI: make text editor scrollbar with consistent with other editors.

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

7 months agoUI: alter scrollbar extents to not interfere with split/join areas.
Harley Acheson [Fri, 4 Jan 2019 14:11:51 +0000 (15:11 +0100)]
UI: alter scrollbar extents to not interfere with split/join areas.

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

7 months agoUI: fix incorrect area splitting shape in corners.
Harley Acheson [Fri, 4 Jan 2019 14:09:11 +0000 (15:09 +0100)]
UI: fix incorrect area splitting shape in corners.

It was intended to be a quarter-circle, however it was oriented wrong.
Since the triangle is no longer visible and does not overlap with the
button anymore, this just makes it a square.

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

7 months agoUI: fix display of menu buttons without text and icon, and only a down arrow.
Harley Acheson [Fri, 4 Jan 2019 14:08:47 +0000 (15:08 +0100)]
UI: fix display of menu buttons without text and icon, and only a down arrow.

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

7 months agoUI: fix too wide resize area on edges of nodes, interfering with content.
Harley Acheson [Fri, 4 Jan 2019 14:08:24 +0000 (15:08 +0100)]
UI: fix too wide resize area on edges of nodes, interfering with content.

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

7 months agoFix T59898: Slow modifier stack on trasnform
Sergey Sharybin [Fri, 4 Jan 2019 13:47:16 +0000 (14:47 +0100)]
Fix T59898: Slow modifier stack on trasnform

7 months agoFix T58657: blender 2.7 keymap Alt+A does not work for animation playback.
Brecht Van Lommel [Fri, 4 Jan 2019 13:34:07 +0000 (14:34 +0100)]
Fix T58657: blender 2.7 keymap Alt+A does not work for animation playback.

7 months agoFix T59946: multiple quit dialogs possible.
Sebastian Parborg [Fri, 4 Jan 2019 13:23:49 +0000 (14:23 +0100)]
Fix T59946: multiple quit dialogs possible.

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

7 months agoFix T60068: missing viewport update when renaming objects in outliner.
Sebastian Parborg [Fri, 4 Jan 2019 13:21:35 +0000 (14:21 +0100)]
Fix T60068: missing viewport update when renaming objects in outliner.

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

7 months agoFix T60132: Convert hair particles to mesh
Sergey Sharybin [Fri, 4 Jan 2019 13:28:47 +0000 (14:28 +0100)]
Fix T60132: Convert hair particles to mesh

Needed to port operator to use evaluated particle system.

But also changed interface to always show Convert button when
draw type is set to Path (Hair particle system is forced to
be draws as path). This avoid rather expensive lookup on every
redraw, but will show Convert button for un-baked particle
emitter.

Probably, an acceptable compromise.

7 months agoPartial fix T60148: EEVEE hangs when anamorphic bokeh is too low
Dalai Felinto [Fri, 4 Jan 2019 13:15:23 +0000 (11:15 -0200)]
Partial fix T60148: EEVEE hangs when anamorphic bokeh is too low

Fixed by setting the limit to the original limit I used for Cycles.
Rendering still goes extremely slow when bokeh is lower than 1.0.

But at least now it is "waitable". With lower numbers than 0.01 I don't
think we would ever get a render to finish.

@fclem feel free to address the real root of the problem, but I'm afraid
it may be a limitation of the algorithm you are using.

7 months agoFix T59768: UV context menu showing in image editor.
Brecht Van Lommel [Fri, 4 Jan 2019 12:47:50 +0000 (13:47 +0100)]
Fix T59768: UV context menu showing in image editor.

7 months agoEEVEE DoF: Fix runtime error: division by zero when blades was 0
Dalai Felinto [Fri, 4 Jan 2019 12:25:59 +0000 (10:25 -0200)]
EEVEE DoF: Fix runtime error: division by zero when blades was 0

Even though the fragment shader was already discarding all members of
dof_bokeh_sides when blades was zero, the C code was still trying to
use this for a few divisions leading to runtime asserts.

Those are harmless yet can lead some to waste time while pursuiting
other bugs (namely a near freeze when blades aspect ratio is too low).

7 months agoFix T60044: Sculpting brush is not visible on file load
Dalai Felinto [Wed, 2 Jan 2019 11:34:41 +0000 (09:34 -0200)]
Fix T60044: Sculpting brush is not visible on file load

The original issue is that wm->paintcursors is empty until we go in and
out of the sculpt mode. To fix this we need to toggle inside the sculpt
mode.

This is usually tackled by ED_editors_init(), however the sculpt mode
toggling was never call because the object technically had "mode data".

Reviewers: campbellbarton

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

7 months agoCleanup: Spelling
Sergey Sharybin [Fri, 4 Jan 2019 11:51:10 +0000 (12:51 +0100)]
Cleanup: Spelling

7 months agoProvide more information on unknown GPU
Sergey Sharybin [Fri, 4 Jan 2019 11:50:05 +0000 (12:50 +0100)]
Provide more information on unknown GPU

7 months agoMerge branch 'blender2.7'
Sergey Sharybin [Fri, 4 Jan 2019 11:42:13 +0000 (12:42 +0100)]
Merge branch 'blender2.7'

7 months agoRecognize llvmpipe renderer as software OpenGL
Sergey Sharybin [Fri, 4 Jan 2019 11:41:35 +0000 (12:41 +0100)]
Recognize llvmpipe renderer as software OpenGL

7 months agoObject: don't flip scale when setting dimensions
Campbell Barton [Fri, 4 Jan 2019 08:58:18 +0000 (19:58 +1100)]
Object: don't flip scale when setting dimensions

7 months agoFix T54771: Can't change multiple dimensions at once
Campbell Barton [Fri, 4 Jan 2019 08:52:13 +0000 (19:52 +1100)]
Fix T54771: Can't change multiple dimensions at once

- Use non-rna button for adjusting dimensions.
- Make Object.dimensions RNA read-only since it never worked well.
  This is mainly a UI editing feature.

7 months agoCleanup: unused calculation
Campbell Barton [Fri, 4 Jan 2019 08:08:46 +0000 (19:08 +1100)]
Cleanup: unused calculation

7 months agoCleanup: indentation (right shift)
Campbell Barton [Fri, 4 Jan 2019 08:08:09 +0000 (19:08 +1100)]
Cleanup: indentation (right shift)

7 months agoMerge branch 'blender2.7'
Campbell Barton [Fri, 4 Jan 2019 06:08:34 +0000 (17:08 +1100)]
Merge branch 'blender2.7'

7 months agoFix T60099: Inconsistent normals from spin tool
Campbell Barton [Fri, 4 Jan 2019 05:23:04 +0000 (16:23 +1100)]
Fix T60099: Inconsistent normals from spin tool

7 months agoSpin Tool: don't flip when using a negative angle
Campbell Barton [Fri, 4 Jan 2019 05:17:49 +0000 (16:17 +1100)]
Spin Tool: don't flip when using a negative angle

The intention was to flip normals when extruding in the opposite
direction, however the sign of the angle isn't meaningful unless
the geometry center and region normal are taken into account.

Disable, may add back in a way that works more predictably.

7 months agoFix eternal loop in spin tool merge first/last
Campbell Barton [Fri, 4 Jan 2019 05:08:42 +0000 (16:08 +1100)]
Fix eternal loop in spin tool merge first/last

7 months agoHaiku: build fix
Campbell Barton [Fri, 4 Jan 2019 06:04:04 +0000 (17:04 +1100)]
Haiku: build fix

D4130 by @miqlas

7 months agoHaiku: build fix
Campbell Barton [Fri, 4 Jan 2019 06:04:04 +0000 (17:04 +1100)]
Haiku: build fix

D4130 by @miqlas

7 months agoFix T60099: Inconsistent normals from spin tool
Campbell Barton [Fri, 4 Jan 2019 05:23:04 +0000 (16:23 +1100)]
Fix T60099: Inconsistent normals from spin tool

7 months agoSpin Tool: don't flip when using a negative angle
Campbell Barton [Fri, 4 Jan 2019 05:17:49 +0000 (16:17 +1100)]
Spin Tool: don't flip when using a negative angle

The intention was to flip normals when extruding in the opposite
direction, however the sign of the angle isn't meaningful unless
the geometry center and region normal are taken into account.

Disable, may add back in a way that works more predictably.

7 months agoFix eternal loop in spin tool merge first/last
Campbell Barton [Fri, 4 Jan 2019 05:08:42 +0000 (16:08 +1100)]
Fix eternal loop in spin tool merge first/last

7 months agoMerge branch 'blender2.7'
Campbell Barton [Fri, 4 Jan 2019 00:26:11 +0000 (11:26 +1100)]
Merge branch 'blender2.7'

7 months agoCleanup: use typed unsigned ints
Campbell Barton [Fri, 4 Jan 2019 00:09:18 +0000 (11:09 +1100)]
Cleanup: use typed unsigned ints

7 months agoCleanup: use typed unsigned ints
Campbell Barton [Fri, 4 Jan 2019 00:05:53 +0000 (11:05 +1100)]
Cleanup: use typed unsigned ints

7 months agoUI: refactor layout vars out of uiFontStyle
Campbell Barton [Thu, 3 Jan 2019 22:58:03 +0000 (09:58 +1100)]
UI: refactor layout vars out of uiFontStyle

Word wrap and alignment layout args only used by UI_fontstyle_draw
were vars in uiFontStyle.
These were written to before drawing, so better pass as an argument.

Pass uiFontStyle & uiWidgetColors as const args.

7 months agoMissed last commit
Campbell Barton [Thu, 3 Jan 2019 21:37:17 +0000 (08:37 +1100)]
Missed last commit

7 months ago3D View: use full opacity by default
Campbell Barton [Thu, 3 Jan 2019 21:21:07 +0000 (08:21 +1100)]
3D View: use full opacity by default

Vertex paint overlays the color w/ solid mode,
Having a partial overlay makes the sample tool not give useful results.

7 months agoFix T60101: vertex paint color sample
Sebastian Parborg [Thu, 3 Jan 2019 21:02:17 +0000 (08:02 +1100)]
Fix T60101: vertex paint color sample

7 months agoFix T59049: some modal transform keys no working in custom keymaps.
Brecht Van Lommel [Thu, 3 Jan 2019 18:53:46 +0000 (19:53 +0100)]
Fix T59049: some modal transform keys no working in custom keymaps.

7 months agoFix T58113 Multiple problems with bevel harden normals.
Howard Trickey [Thu, 3 Jan 2019 18:39:52 +0000 (13:39 -0500)]
Fix T58113 Multiple problems with bevel harden normals.

Move the bevel hardening code all into bmesh_bevel.c.
Based on user feedback, rewrote the bevel hardening algorithm
to be more what users want.
Based on user feedback, changed the UI, removing some
not-useful options. Now hardening normals while beveling
is enabled by a simple checkbox.
Now setting face strength gives options for which faces
get their face strength set.

7 months agoFix T59349: Cycles viewport render flickering when changing some settings.
Brecht Van Lommel [Thu, 3 Jan 2019 18:21:10 +0000 (19:21 +0100)]
Fix T59349: Cycles viewport render flickering when changing some settings.

7 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Thu, 3 Jan 2019 17:32:51 +0000 (18:32 +0100)]
Merge branch 'blender2.7'

7 months agoFix for T58250 fix: Blender failing to start with OpenGL context < 4.5.
Brecht Van Lommel [Thu, 3 Jan 2019 17:28:46 +0000 (18:28 +0100)]
Fix for T58250 fix: Blender failing to start with OpenGL context < 4.5.

7 months agoCleanup: don't do nodetree verification/versioning twice.
Brecht Van Lommel [Thu, 3 Jan 2019 16:58:59 +0000 (17:58 +0100)]
Cleanup: don't do nodetree verification/versioning twice.

7 months agoFix T60073: can't unlink by dragging from some node input sockets.
Brecht Van Lommel [Thu, 3 Jan 2019 17:20:30 +0000 (18:20 +0100)]
Fix T60073: can't unlink by dragging from some node input sockets.

7 months agoFix T60022: Crash when adding grease pencil object to a collection disabled in viewport.
Antonioya [Thu, 3 Jan 2019 17:10:39 +0000 (18:10 +0100)]
Fix T60022: Crash when adding grease pencil object to a collection disabled in viewport.

See D4163

Thanks to Habib Gahbiche (@zazizizou) for the fix.

7 months agoFix T59925: Crash when adding any generative modifier on a curve with more than one...
Bastien Montagne [Thu, 3 Jan 2019 17:01:56 +0000 (18:01 +0100)]
Fix T59925: Crash when adding any generative modifier on a curve with more than one material.

Am not totally convinced that generating meshes without fully valid
material info is a good thing, but this seems to be rather common in our
code base (in both mesh editing and convert-to-mesh cases).

So for now, duplicated code in mesh eval finalization to main displist
creation/eval function, synchronizing mat data at the end of modifiers
stack eval, if needed.

7 months agoDon't link against GLU library
Sergey Sharybin [Thu, 3 Jan 2019 16:42:04 +0000 (17:42 +0100)]
Don't link against GLU library

We are core profile now, no need to link against GLU.

This change makes it so Blender binary is not dependent on liGLU.so.
That was a weird thing that Blender was dependent on it, but was not
using any functions from it.

7 months agoFix T54962: Cycles crash using subsurface scattering texture blur.
Brecht Van Lommel [Thu, 3 Jan 2019 16:08:46 +0000 (17:08 +0100)]
Fix T54962: Cycles crash using subsurface scattering texture blur.

7 months agoFix T58250: crash starting Blender on X11 without OpenGL 3.3.
Brecht Van Lommel [Thu, 3 Jan 2019 15:43:09 +0000 (16:43 +0100)]
Fix T58250: crash starting Blender on X11 without OpenGL 3.3.

Instead display an error message and exit.

7 months agoFix T60119: incorrect filter size in new scenes.
Brecht Van Lommel [Thu, 3 Jan 2019 14:59:01 +0000 (15:59 +0100)]
Fix T60119: incorrect filter size in new scenes.

7 months agoFix T59072: Text extrusion cannot be animated
Sergey Sharybin [Thu, 3 Jan 2019 14:44:53 +0000 (15:44 +0100)]
Fix T59072: Text extrusion cannot be animated

7 months agoFix incorrect drawing of material list outline, after recent changes.
Brecht Van Lommel [Thu, 3 Jan 2019 14:38:22 +0000 (15:38 +0100)]
Fix incorrect drawing of material list outline, after recent changes.

For draw cache flushing the default blend mode needs to be set.

7 months agoFix T57177: redo select random operator selects hidden objects.
Brecht Van Lommel [Thu, 3 Jan 2019 14:17:01 +0000 (15:17 +0100)]
Fix T57177: redo select random operator selects hidden objects.

7 months agoFix some inconsistencies in object visibility/selectability tests.
Brecht Van Lommel [Thu, 3 Jan 2019 13:20:43 +0000 (14:20 +0100)]
Fix some inconsistencies in object visibility/selectability tests.

7 months agoFix T60107: gizmos should not show for unselectable objects.
Brecht Van Lommel [Thu, 3 Jan 2019 11:39:16 +0000 (12:39 +0100)]
Fix T60107: gizmos should not show for unselectable objects.

7 months agoFix T58870: submenus don't open for some specific mouse positions.
Brecht Van Lommel [Thu, 3 Jan 2019 11:10:14 +0000 (12:10 +0100)]
Fix T58870: submenus don't open for some specific mouse positions.

7 months agoFix accidental changes to default preferences in recent startup.blend commit.
Brecht Van Lommel [Thu, 3 Jan 2019 10:48:05 +0000 (11:48 +0100)]
Fix accidental changes to default preferences in recent startup.blend commit.

7 months agoFix T60056: Make Duplicates Real with Keep Hierarchy does nothing
Philipp Oeser [Wed, 2 Jan 2019 14:37:15 +0000 (15:37 +0100)]
Fix T60056: Make Duplicates Real with Keep Hierarchy does nothing

Caused by rB36ca072375deea4803df4681716c1d3224095e07
[one instance of `DEG_get_original_object` was neccesary, the other one
breaks getting the parent in `BLI_ghash_lookup`]

Reviewed by: brecht

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

7 months agoGP: Include Lasso eraser in Fill and Primitives
Antonioya [Thu, 3 Jan 2019 10:29:33 +0000 (11:29 +0100)]
GP: Include Lasso eraser in Fill and Primitives

This option allows to delete sections using Ctrl+Alt.

7 months agoFix T59527: Segment fault changing layer visibility and onion skin
Antonioya [Thu, 3 Jan 2019 09:39:14 +0000 (10:39 +0100)]
Fix T59527: Segment fault changing layer visibility and onion skin

In some situation when the layer is hidden, the onion skin must be disabled too, because the material is not available.

7 months agoCleanup: indentation
Campbell Barton [Thu, 3 Jan 2019 06:30:54 +0000 (17:30 +1100)]
Cleanup: indentation

7 months agoDRW: remove INDEX4 normal flipping
Campbell Barton [Thu, 3 Jan 2019 06:20:41 +0000 (17:20 +1100)]
DRW: remove INDEX4 normal flipping

Added in 531e5ad49a03763 but I couldn't find a case when it's needed,
It's not needed for solid-mode viewport drawing for eg.

7 months agoRevert "GPU: add negated normal conversion functions"
Campbell Barton [Thu, 3 Jan 2019 06:19:05 +0000 (17:19 +1100)]
Revert "GPU: add negated normal conversion functions"

This reverts commit d28b29d428cc7fc7eb29f2302b5d80fc63a9f870.

7 months agoFix T59842: Curve flat shading doesn't work
Campbell Barton [Thu, 3 Jan 2019 05:56:53 +0000 (16:56 +1100)]
Fix T59842: Curve flat shading doesn't work

Calculate flat shaded normals when creating batch cache.

Note that 2.7x was using vertex normals as flat-face normals.

7 months agoGPU: add negated normal conversion functions
Campbell Barton [Thu, 3 Jan 2019 05:56:16 +0000 (16:56 +1100)]
GPU: add negated normal conversion functions

Saves having to negate to a temporary variable.

7 months agoCleanup: variable name
Campbell Barton [Thu, 3 Jan 2019 05:02:26 +0000 (16:02 +1100)]
Cleanup: variable name

7 months agoCleanup: preprocessor indentation
Campbell Barton [Thu, 3 Jan 2019 04:52:07 +0000 (15:52 +1100)]
Cleanup: preprocessor indentation

7 months agoTransform: default shrink/fatten even-offset to false
Campbell Barton [Thu, 3 Jan 2019 04:13:46 +0000 (15:13 +1100)]
Transform: default shrink/fatten even-offset to false

Changed for 2.8 but this cases spikes for some geometry, see: T59968

7 months agoFix new material for pinned objects
Campbell Barton [Thu, 3 Jan 2019 01:33:12 +0000 (12:33 +1100)]
Fix new material for pinned objects

Grease pencil check was using active object.

7 months agoMerge branch 'blender2.7'
Campbell Barton [Thu, 3 Jan 2019 01:23:17 +0000 (12:23 +1100)]
Merge branch 'blender2.7'

7 months agoFix T60014: material link pref ignored
Campbell Barton [Thu, 3 Jan 2019 01:15:03 +0000 (12:15 +1100)]
Fix T60014: material link pref ignored

The PreferencesEdit.material_link only worked for adding slots,
adding an initial new material didn't respect the preference.

7 months agoFix (unreported): unpredictable crashes when it is done snap after automerge.
mano-wii [Wed, 2 Jan 2019 18:57:54 +0000 (16:57 -0200)]
Fix (unreported): unpredictable crashes when it is done snap after automerge.

The `em->tottri` of an evaluated object can be different from the actual amount of looptris.

7 months agoFix T58859: render with compositor does not render other scenes.
Brecht Van Lommel [Wed, 2 Jan 2019 19:22:16 +0000 (20:22 +0100)]
Fix T58859: render with compositor does not render other scenes.

7 months agoFix wrong alpha blending for datablock preview icons.
Brecht Van Lommel [Wed, 2 Jan 2019 19:10:48 +0000 (20:10 +0100)]
Fix wrong alpha blending for datablock preview icons.

7 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Wed, 2 Jan 2019 18:58:26 +0000 (19:58 +0100)]
Merge branch 'blender2.7'

7 months agoFix T60061: Cycles OSL point density not working.
Brecht Van Lommel [Wed, 2 Jan 2019 18:55:26 +0000 (19:55 +0100)]
Fix T60061: Cycles OSL point density not working.

Add override keywords so we can detect when the function definitions change.

7 months agoFix T60037: single column layout breaks file browse button.
Brecht Van Lommel [Wed, 2 Jan 2019 18:22:56 +0000 (19:22 +0100)]
Fix T60037: single column layout breaks file browse button.

7 months agoFix T59063: operator search menu loses background in some cases.
Brecht Van Lommel [Wed, 2 Jan 2019 17:56:36 +0000 (18:56 +0100)]
Fix T59063: operator search menu loses background in some cases.

7 months agoFix wrong grease pencil shader FX usage of object location.
Brecht Van Lommel [Wed, 2 Jan 2019 17:18:11 +0000 (18:18 +0100)]
Fix wrong grease pencil shader FX usage of object location.

It should use the evaluated object location, and not add any unnecessary
dependency on geometry data.

7 months agoFix T59792: Cycles crash rendering motion pass with motion blur enabled.
Brecht Van Lommel [Wed, 2 Jan 2019 16:46:57 +0000 (17:46 +0100)]
Fix T59792: Cycles crash rendering motion pass with motion blur enabled.

7 months agoFix T60051: Wrong stroke projection when viewmode set to Front
Antonioya [Wed, 2 Jan 2019 16:43:09 +0000 (17:43 +0100)]
Fix T60051: Wrong stroke projection when viewmode set to Front

As the z-depth is calculated using the internal drawing, if we use the front mode the z-depth is wrong. The Front or Back mode must be used only for display, but not for calculation.

7 months agoFix T60046: crash with Cycles viewport render and particle info node.
Brecht Van Lommel [Wed, 2 Jan 2019 15:32:32 +0000 (16:32 +0100)]
Fix T60046: crash with Cycles viewport render and particle info node.

This code was not correctly ported to 2.8.

7 months agoFix T60031: Joining two Grease Pencilobjects sometimes crashes
Antonioya [Wed, 2 Jan 2019 16:10:37 +0000 (17:10 +0100)]
Fix T60031: Joining two Grease Pencilobjects sometimes crashes

The drawing cache was not set as dirty and drawing engine used old data.

7 months agoFixes and edits to studio light operators
Campbell Barton [Wed, 2 Jan 2019 15:01:28 +0000 (02:01 +1100)]
Fixes and edits to studio light operators

- Remove pathlib use
  (was converting to/from string with no real advantage).
- Use user_resource(..., create=True) to ensure the path exists.
- Pass full path to BKE_studiolight_create, don't add extension after.
- Fix 'sl' filtering glob and move from ui code to operator.
- Fix string copy length.

7 months agoCleanup: py-gpu error checks
Campbell Barton [Wed, 2 Jan 2019 14:08:26 +0000 (01:08 +1100)]
Cleanup: py-gpu error checks

Move gpu initialization checks to the start of each function instead
of mixing with argument parsing.

7 months agoRevert file rename from T59773 fix
Campbell Barton [Wed, 2 Jan 2019 13:55:07 +0000 (00:55 +1100)]
Revert file rename from T59773 fix

Mixing file rename with other changes should be avoided.

Using 'module_py_api' convention here
is in keeping with imbuf, idprop, blf & bmesh.
No reason for gpu to have a different convention.

7 months agoFix T59773: Raise exception if the gpu module is used in backgound mode.
mano-wii [Wed, 2 Jan 2019 12:01:46 +0000 (10:01 -0200)]
Fix T59773: Raise exception if the gpu module is used in backgound mode.

Instead of crashing, an error message is displayed if a function of the gpu module is called without a GPU context.

Reviewers: brecht, campbellbarton, JacquesLucke, mont29

Subscribers: abdelmatinboulbayam, amir.shehata

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