blender.git
19 months agoGP: Cleanup shader
Antonioya [Tue, 2 Oct 2018 08:31:49 +0000 (10:31 +0200)]
GP: Cleanup shader

19 months agoGP: Fix blur FX z-depth error
Antonioya [Tue, 2 Oct 2018 08:22:11 +0000 (10:22 +0200)]
GP: Fix blur FX z-depth error

The z-depth must not be blurred, but use the original value.

19 months agoGizmo: option to switch between normal/xyz widgets
Campbell Barton [Tue, 2 Oct 2018 08:16:00 +0000 (18:16 +1000)]
Gizmo: option to switch between normal/xyz widgets

19 months agoCleanup: split extrude gizmo into own file
Campbell Barton [Tue, 2 Oct 2018 07:31:50 +0000 (17:31 +1000)]
Cleanup: split extrude gizmo into own file

19 months agoGizmo: move spin tool axis option into gizmo-group
Campbell Barton [Tue, 2 Oct 2018 07:05:13 +0000 (17:05 +1000)]
Gizmo: move spin tool axis option into gizmo-group

Having this setting here wasn't correct (the operator ignores it).

19 months agoGizmo: support for gizmo-group properties
Campbell Barton [Tue, 2 Oct 2018 06:59:54 +0000 (16:59 +1000)]
Gizmo: support for gizmo-group properties

This allows gizmo groups to store properties in the tool.
This makes sense for gizmo options which only control gizmo display and
don't control operator execution.

Unlike similar kinds of properties,
this isn't accessible via the gizmo-group-type instance.

For now the it's only stored in the workspace tool as can be done for
operator properties, so each instance doesn't have different settings
which would be confusing from a user perspective and complicate access
from the top-bar.

Later we could add gizmo-group properties if needed.

19 months agoWM: generalize tool property initialization
Campbell Barton [Tue, 2 Oct 2018 05:39:20 +0000 (15:39 +1000)]
WM: generalize tool property initialization

Prepare for storing different kinds of properties in tools.

19 months agoWM: report error w/ unknown operator name
Campbell Barton [Tue, 2 Oct 2018 05:28:14 +0000 (15:28 +1000)]
WM: report error w/ unknown operator name

19 months agoCorrect extrude tool operator references
Campbell Barton [Tue, 2 Oct 2018 05:17:00 +0000 (15:17 +1000)]
Correct extrude tool operator references

Caused incorrect tooltips.

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Tue, 2 Oct 2018 01:19:11 +0000 (11:19 +1000)]
Merge branch 'master' into blender2.8

19 months agoCorrect tooltip
Campbell Barton [Tue, 2 Oct 2018 01:17:31 +0000 (11:17 +1000)]
Correct tooltip

19 months agoFix T56990: AutoIK fails
Philipp Oeser [Tue, 2 Oct 2018 00:10:26 +0000 (10:10 +1000)]
Fix T56990: AutoIK fails

Regression from 5d628c519

19 months agoGPY Python: program_use_begin and program_use_end.
mano-wii [Mon, 1 Oct 2018 16:21:08 +0000 (13:21 -0300)]
GPY Python: program_use_begin and program_use_end.

The user has to be encouraged to use the `program_set` or `program_set_builtin` before drawing.
This avoids problem with gl_context.

19 months agoUI: Fix Xray alpha slider being incorrectly greyed out
Clément Foucault [Mon, 1 Oct 2018 16:56:16 +0000 (18:56 +0200)]
UI: Fix Xray alpha slider being incorrectly greyed out

19 months agoDRW: Fix unselectable wire object in solid mode
Clément Foucault [Mon, 1 Oct 2018 16:53:23 +0000 (18:53 +0200)]
DRW: Fix unselectable wire object in solid mode

19 months agoTemplates: tweaks to startup templates, add sculpting template.
Brecht Van Lommel [Mon, 1 Oct 2018 14:38:14 +0000 (16:38 +0200)]
Templates: tweaks to startup templates, add sculpting template.

19 months agoUI: start maximized on X11 if possible, like other platforms.
Brecht Van Lommel [Mon, 1 Oct 2018 15:23:18 +0000 (17:23 +0200)]
UI: start maximized on X11 if possible, like other platforms.

19 months agoFix app template __init__.py not running without a userpref.blend.
Brecht Van Lommel [Mon, 1 Oct 2018 14:23:41 +0000 (16:23 +0200)]
Fix app template __init__.py not running without a userpref.blend.

19 months agoFix Cycles Python warnings related to annotations.
Brecht Van Lommel [Mon, 1 Oct 2018 14:22:38 +0000 (16:22 +0200)]
Fix Cycles Python warnings related to annotations.

19 months agoUI: collapse some paint / sculpt panels by default.
Brecht Van Lommel [Mon, 1 Oct 2018 13:39:03 +0000 (15:39 +0200)]
UI: collapse some paint / sculpt panels by default.

19 months agoUI: use backdrop circle for navigation icons, make clickable area bigger.
Brecht Van Lommel [Mon, 1 Oct 2018 10:47:37 +0000 (12:47 +0200)]
UI: use backdrop circle for navigation icons, make clickable area bigger.

This will look a bit better once the icon outline is gone.

19 months agoGP: Change Blur default parameters for Rim and Shadow effects.
Antonioya [Mon, 1 Oct 2018 14:42:12 +0000 (16:42 +0200)]
GP: Change Blur default parameters for Rim and Shadow effects.

19 months agoGP: Add Blur to Shadow FX
Antonioya [Mon, 1 Oct 2018 14:30:43 +0000 (16:30 +0200)]
GP: Add Blur to Shadow FX

The shadow needed a blur to make soft transitions and get a better effect.

19 months agoUI: Update theme colors for pie menu selected items
Pablo Vazquez [Mon, 1 Oct 2018 13:28:37 +0000 (15:28 +0200)]
UI: Update theme colors for pie menu selected items

19 months agoUI: Color the inside of pie menu items when selected
Pablo Vazquez [Mon, 1 Oct 2018 13:25:11 +0000 (15:25 +0200)]
UI: Color the inside of pie menu items when selected

Follows the same as other selected/active items in the UI.
Tested in Default theme, 2.7x, 2.4x, Flatty Light and Amaranth
all seem to work fine.

19 months agoEdit UVs: Fix missing wires with multiple windows
Clément Foucault [Mon, 1 Oct 2018 13:14:33 +0000 (15:14 +0200)]
Edit UVs: Fix missing wires with multiple windows

All that was needed is a VAO refresh. It's not a performance problem
because it only concerns a handful of batches.

19 months agoEdit UVs: Refactor drawing Shadow UV in Image Editor
Clément Foucault [Mon, 1 Oct 2018 12:55:35 +0000 (14:55 +0200)]
Edit UVs: Refactor drawing Shadow UV in Image Editor

Currently it's not showing the subdivided mesh (if there is a subdiv mod)
and there is some sync issue if there is multiple uv image space opened.
But thoses will be tackled later on. The purpose of this commit is to fix
the overflow issue of IMM and speed issue.

19 months agoGPU: Fix partial draw of batches with index buffers
Clément Foucault [Mon, 1 Oct 2018 12:52:02 +0000 (14:52 +0200)]
GPU: Fix partial draw of batches with index buffers

19 months agoEdit UVs: Refactor drawing Edit UV in Image Editor
Clément Foucault [Sat, 29 Sep 2018 17:42:09 +0000 (19:42 +0200)]
Edit UVs: Refactor drawing Edit UV in Image Editor

NOTE: This commit only concern edit UVs and not the "shadow" mesh displayed
when texture painting. This will be address in a future commit.

We now cache the uv mesh in the mesh batch cache and only reupload data on
changes.

Update could be more granular (and a bit faster) but it's not our main
concern ATM.

This should fix problem caused by the IMM api used to draw large meshes.
This makes performance skyrocket compared to previous implementation.
There is still a big CPU bottleneck when not in sync selection mode but it
is not related to the drawing function directly.

19 months agoBLI: Add mul_v2_v2v2 function
Clément Foucault [Sat, 29 Sep 2018 15:54:13 +0000 (17:54 +0200)]
BLI: Add mul_v2_v2v2 function

19 months agoShrinkwrap Constraint: implement projection features from the modifier.
Alexander Gavrilov [Sun, 8 Jul 2018 10:47:26 +0000 (13:47 +0300)]
Shrinkwrap Constraint: implement projection features from the modifier.

Allow raycasting in two directions and culling front or back faces.

Also implement a new Invert Cull option in both constraint and
modifier that can be used to aim for faces aligned with the project
axis direction when raycasting both ways.

Reviewers: mont29

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

19 months agoGP: Fix Shadow rotation bug
Antonioya [Mon, 1 Oct 2018 09:36:06 +0000 (11:36 +0200)]
GP: Fix Shadow rotation bug

19 months agoRemove obsolete weight paint color computation code.
Alexander Gavrilov [Sun, 30 Sep 2018 15:07:38 +0000 (18:07 +0300)]
Remove obsolete weight paint color computation code.

The new weight paint drawing code converts weight to color
directly in the shader, so the old CD_PREVIEW_MLOOPCOL based
code is not needed anymore.

19 months ago3D View: use context mode string for sidebar
Campbell Barton [Mon, 1 Oct 2018 06:56:41 +0000 (16:56 +1000)]
3D View: use context mode string for sidebar

When moving panels from the toolbar to the sidebar,
'bl_context' is now used for filtering panels in both places.

19 months agoObject Join: use 'selected_editable_objects'
Campbell Barton [Mon, 1 Oct 2018 06:43:49 +0000 (16:43 +1000)]
Object Join: use 'selected_editable_objects'

Was using 'selected_editable_bases', which used to save a lookup.
This is no longer the case and complicates access from Python
which cant yet easily access Bases.

19 months agoFix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
Brecht Van Lommel [Sun, 30 Sep 2018 17:28:15 +0000 (19:28 +0200)]
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.

This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.

19 months agoMerge branch 'master' into blender2.8
Campbell Barton [Mon, 1 Oct 2018 04:06:24 +0000 (14:06 +1000)]
Merge branch 'master' into blender2.8

19 months agoBLI_math: add `isect_seg_seg_v3`
mano-wii [Mon, 1 Oct 2018 03:16:44 +0000 (00:16 -0300)]
BLI_math: add `isect_seg_seg_v3`

19 months agoBLI_math: add `isect_seg_seg_v3` function and use in the cloth collision algorith.
mano-wii [Mon, 1 Oct 2018 03:16:44 +0000 (00:16 -0300)]
BLI_math: add `isect_seg_seg_v3` function and use in the cloth collision algorith.

In my tests a 4% improvement in performance was achieved by simulating a square cloth over the cube.

19 months agoCleanup: use standard prefix for boolean settings
Campbell Barton [Mon, 1 Oct 2018 01:56:41 +0000 (11:56 +1000)]
Cleanup: use standard prefix for boolean settings

Avoid using 'add' as a prefix, it reads like a method.

19 months agoFix freed memory use w/ panel unregister
Campbell Barton [Mon, 1 Oct 2018 00:31:24 +0000 (10:31 +1000)]
Fix freed memory use w/ panel unregister

19 months agoCleanup: use tuple unpacking
Campbell Barton [Sun, 30 Sep 2018 22:45:46 +0000 (08:45 +1000)]
Cleanup: use tuple unpacking

19 months agoCleanup: pep8, unused import
Campbell Barton [Sun, 30 Sep 2018 22:42:58 +0000 (08:42 +1000)]
Cleanup: pep8, unused import

19 months agoCleanup: style
Campbell Barton [Sun, 30 Sep 2018 22:42:26 +0000 (08:42 +1000)]
Cleanup: style

19 months agoFix T56981: python .scene_raycast returned object is not selectable.
Bastien Montagne [Sun, 30 Sep 2018 21:54:11 +0000 (23:54 +0200)]
Fix T56981: python .scene_raycast returned object is not selectable.

Was returning COW evaluated object, not actual data-block...

19 months agoFix T56879: Blender2.8 Crash when Editing Text on Curve.
Bastien Montagne [Sun, 30 Sep 2018 19:36:02 +0000 (21:36 +0200)]
Fix T56879: Blender2.8 Crash when Editing Text on Curve.

Moving cursor in 3D text edit mode calls `BKE_vfont_to_curve_ex()`,
which expects to work with evaluated data (curve cache runtime etc.).

19 months agoFix T56396: Cycles wrong object motion blur with deformation blur disabled.
Brecht Van Lommel [Fri, 28 Sep 2018 16:22:35 +0000 (18:22 +0200)]
Fix T56396: Cycles wrong object motion blur with deformation blur disabled.

19 months agoFix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.
Brecht Van Lommel [Sun, 30 Sep 2018 17:28:15 +0000 (19:28 +0200)]
Fix T56909: wrong interface scale on macOS 10.14, when using 10.14 SDK.

This does not affect existing releases as far as I can tell, only new builds
using the new SDK have the problem.

19 months agoGP: The primitive line must not enable cyclic mode
Antonioya [Sun, 30 Sep 2018 16:45:45 +0000 (18:45 +0200)]
GP: The primitive line must not enable cyclic mode

19 months agoGP: Cleanup and remove old debug code
Antonioya [Sun, 30 Sep 2018 16:26:50 +0000 (18:26 +0200)]
GP: Cleanup and remove old debug code

19 months agoFix T56984: GP: Materials: Isolate (lock/visibility) buttons don't work.
Antonioya [Sun, 30 Sep 2018 15:35:41 +0000 (17:35 +0200)]
Fix T56984: GP: Materials: Isolate (lock/visibility) buttons don't work.

19 months agoio_utils: remove `orientation_helper_factory`.
Bastien Montagne [Sun, 30 Sep 2018 15:30:29 +0000 (17:30 +0200)]
io_utils: remove `orientation_helper_factory`.

Now we only use orientation_helper decorator.

19 months agoGP: New option to disable lasso while drawing
Antonioya [Sun, 30 Sep 2018 14:21:28 +0000 (16:21 +0200)]
GP: New option to disable lasso while drawing

Now it's possible to disable the lasso effect of the fill color while drawing with a fill color.

This sometimes is required to see the lines and it's the first step to implement a new lasso brush.

19 months agoGP: Ensure falloff curve is always initializated
Antonioya [Sun, 30 Sep 2018 13:59:10 +0000 (15:59 +0200)]
GP: Ensure falloff curve is always initializated

19 months agoFix T56970 GP: Sculpt mode : Grap tool doesn't work
Antonioya [Sun, 30 Sep 2018 11:54:23 +0000 (13:54 +0200)]
Fix T56970 GP: Sculpt mode : Grap tool doesn't work

19 months agoGP: Fix error in mutiedit if curve is not available
Antonioya [Sun, 30 Sep 2018 10:54:17 +0000 (12:54 +0200)]
GP: Fix error in mutiedit if curve is not available

19 months agoGP: Do not use UI pixel scale for strokes
Antonioya [Sun, 30 Sep 2018 09:46:47 +0000 (11:46 +0200)]
GP: Do not use UI pixel scale for strokes

This scale value only must affect the interface, but never the stroke.

19 months agoGP: implement Shadow FX (wip)
Antonioya [Sun, 30 Sep 2018 09:19:04 +0000 (11:19 +0200)]
GP: implement Shadow FX (wip)

Initial implementation of effect to create a drop shadow of the strokes

19 months agoAdd Image Operator: minor tweaks
Campbell Barton [Sun, 30 Sep 2018 07:55:39 +0000 (17:55 +1000)]
Add Image Operator: minor tweaks

- Use exception message on error.
- Use 3D view cursor location (for local view).

19 months agoFix mysterious crash when using textureGather on Intel drivers.
mano-wii [Sat, 29 Sep 2018 19:56:47 +0000 (16:56 -0300)]
Fix mysterious crash when using textureGather on Intel drivers.

The crash occurs in a shader with uniform block of a certain size and misaligned.

19 months agoGP: Fix Thickness modifier error for strokes with few points
Antonioya [Sat, 29 Sep 2018 16:07:35 +0000 (18:07 +0200)]
GP: Fix Thickness modifier error for strokes with few points

19 months agoFix mixed drawing face and edge checks in draw manager
Dalai Felinto [Sat, 29 Sep 2018 15:22:44 +0000 (12:22 -0300)]
Fix mixed drawing face and edge checks in draw manager

19 months agoGP: New parameters for instance modifier: Material and On Top
Antonioya [Sat, 29 Sep 2018 14:42:33 +0000 (16:42 +0200)]
GP: New parameters for instance modifier: Material and On Top

Now it's possible to define what material is used in the generated strokes and if the strokes are put in front of the original (default) or keep the original in front.

Before, the generated strokes have been always on top of the original because they were drawn later.

19 months agoA new function to move list at the beginning of another list
Antonioya [Sat, 29 Sep 2018 14:39:45 +0000 (16:39 +0200)]
A new function to move list at the beginning of another list

This is a change of the BLI_movelisttolist but in reverse order.

19 months agoMulti-Objects: ARMATURE_OT_switch_direction
Dalai Felinto [Fri, 28 Sep 2018 22:11:27 +0000 (19:11 -0300)]
Multi-Objects: ARMATURE_OT_switch_direction

19 months agoMulti-Objects: ARMATURE_OT_armature_layers
Dalai Felinto [Fri, 28 Sep 2018 22:06:07 +0000 (19:06 -0300)]
Multi-Objects: ARMATURE_OT_armature_layers

19 months agoExpose armature.dissolve to the menu
Dalai Felinto [Fri, 28 Sep 2018 21:53:25 +0000 (18:53 -0300)]
Expose armature.dissolve to the menu

Following the vertice delete menu logic here, where delete needs no verb
and the special case (dissolve here) gets the full verb + noun)

Note: This operator wasn't even listed in the T54646 task. I suspect other
operators may share the same fate.

19 months agoMultiple-Objects: ARMATURE_OT_dissolve
Dalai Felinto [Fri, 28 Sep 2018 21:42:42 +0000 (18:42 -0300)]
Multiple-Objects: ARMATURE_OT_dissolve

19 months agoMultiple-Objects: ARMATURE_OT_flip_names
Dalai Felinto [Fri, 28 Sep 2018 21:20:34 +0000 (18:20 -0300)]
Multiple-Objects: ARMATURE_OT_flip_names

19 months agoRNA: Cleanup - remove no longer needed get/set functions
Dalai Felinto [Fri, 28 Sep 2018 19:44:48 +0000 (16:44 -0300)]
RNA: Cleanup - remove no longer needed get/set functions

Left over from rBbdbf4471a6c4ba2d444eea5e7f0e6984b3aaafc2.

19 months agoFix painting clone ui/rna not working
Dalai Felinto [Fri, 28 Sep 2018 19:34:12 +0000 (16:34 -0300)]
Fix painting clone ui/rna not working

19 months agoGP: Fix Fx Wave options panel
Antonioya [Fri, 28 Sep 2018 16:55:53 +0000 (18:55 +0200)]
GP: Fix Fx Wave options panel

The orientation was layout vertical

19 months agoMulti-Objects: Fix edit mesh texts drawing in the wrong place
Dalai Felinto [Fri, 28 Sep 2018 16:37:28 +0000 (13:37 -0300)]
Multi-Objects: Fix edit mesh texts drawing in the wrong place

It was always drawing on the active object localspace.

19 months agoFix T56396: Cycles wrong object motion blur with deformation blur disabled.
Brecht Van Lommel [Fri, 28 Sep 2018 16:22:35 +0000 (18:22 +0200)]
Fix T56396: Cycles wrong object motion blur with deformation blur disabled.

19 months agoFix errors for show_occlude_wire not in view3d.overlay
Dalai Felinto [Fri, 28 Sep 2018 15:25:50 +0000 (12:25 -0300)]
Fix errors for show_occlude_wire not in view3d.overlay

19 months agoMulti-Objects: MESH_OT_sort_elements
Dalai Felinto [Fri, 28 Sep 2018 14:52:11 +0000 (11:52 -0300)]
Multi-Objects: MESH_OT_sort_elements

Based on D3330 by Falk David

19 months agoFix wireframe threshold not active on wireframe mode
Dalai Felinto [Fri, 28 Sep 2018 15:05:25 +0000 (12:05 -0300)]
Fix wireframe threshold not active on wireframe mode

19 months agoTemplates: tweaks to 2D animation template from grease pencil team.
Brecht Van Lommel [Fri, 28 Sep 2018 13:35:54 +0000 (15:35 +0200)]
Templates: tweaks to 2D animation template from grease pencil team.

19 months agoGP: Remove Shader FX use_property_split to keep UI consistency
Antonioya [Fri, 28 Sep 2018 15:25:35 +0000 (17:25 +0200)]
GP: Remove Shader FX use_property_split to keep UI consistency

In order to get the same look and feel of modifiers, we need disable this single column option.

19 months agoGP: Remove show lines from Pixelate effect
Antonioya [Fri, 28 Sep 2018 15:20:00 +0000 (17:20 +0200)]
GP: Remove show lines from Pixelate effect

The grid lines get a weird result and it's better keep disabled. Maybe in the future we implement a new shader with a full grid.

19 months agoGP: Set pixel shader fx lines to OFF by default
Antonioya [Fri, 28 Sep 2018 14:52:20 +0000 (16:52 +0200)]
GP: Set pixel shader fx lines to OFF by default

19 months agoGP: Make Layer and Material lists shorter
Antonioya [Fri, 28 Sep 2018 13:47:36 +0000 (15:47 +0200)]
GP: Make Layer and Material lists shorter

This reduces UI vertical space.

19 months agoCleanup: Remove bmo_similar.c and small renaming
Dalai Felinto [Fri, 28 Sep 2018 13:32:04 +0000 (10:32 -0300)]
Cleanup: Remove bmo_similar.c and small renaming

19 months agoMulti-Objects: Select similar vertex: SIMVERT_VGROUP
Dalai Felinto [Wed, 19 Sep 2018 01:08:54 +0000 (22:08 -0300)]
Multi-Objects: Select similar vertex: SIMVERT_VGROUP

I'm storing the name of the vertex groups in a gset. This way
we can select vertex groups with the same name across different
objects.

Also this is the last select similar mode that needs porting o/

19 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 28 Sep 2018 13:03:03 +0000 (15:03 +0200)]
Merge branch 'master' into blender2.8

19 months agoCycles: Fix compilation error of CUDA kernel
Sergey Sharybin [Fri, 28 Sep 2018 13:02:20 +0000 (15:02 +0200)]
Cycles: Fix compilation error of CUDA kernel

Was caused by previous commit.

19 months agoFix T56947: Copy text from disabled search menu crashed
Jacques Lucke [Fri, 28 Sep 2018 12:12:00 +0000 (14:12 +0200)]
Fix T56947: Copy text from disabled search menu crashed

Reviewers: brecht

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

19 months agoTests: recurse into directories for finding OpenGL draw test .blends.
Brecht Van Lommel [Fri, 28 Sep 2018 12:09:42 +0000 (14:09 +0200)]
Tests: recurse into directories for finding OpenGL draw test .blends.

19 months agoGP: Remove add/delete buttons from topbar material popover
Antonioya [Fri, 28 Sep 2018 12:01:36 +0000 (14:01 +0200)]
GP: Remove add/delete buttons from topbar material popover

19 months agoMerge branch 'master' into blender2.8
Sergey Sharybin [Fri, 28 Sep 2018 11:58:30 +0000 (13:58 +0200)]
Merge branch 'master' into blender2.8

19 months agoCycles: Fix crash with BVH8 on certain scenes
Sergey Sharybin [Fri, 28 Sep 2018 10:39:49 +0000 (12:39 +0200)]
Cycles: Fix crash with BVH8 on certain scenes

The crash was caused by BVH traversal stack being overflowed.

That overflow was caused by lots of false-positive intersections
for rays originating on a non-finite location.

Not sure why those rays will be existing in the first place,
this is to be investigated separately.

This commit moves pre-SSE4.1 check to a higher level function
and enables it for all miroarchitectures.

19 months agoFix T56905: unsupported channel layout error writing AAC audio.
Brecht Van Lommel [Fri, 28 Sep 2018 10:03:15 +0000 (12:03 +0200)]
Fix T56905: unsupported channel layout error writing AAC audio.

This uses same mapping as Audaspace to specify channel layout, which was
missing before.

19 months agoUI: move messages and running jobs to top bar.
Brecht Van Lommel [Fri, 28 Sep 2018 09:05:04 +0000 (11:05 +0200)]
UI: move messages and running jobs to top bar.

It's too easy to miss at the bottom of the screen, and if the status bar is
collapsed critical messages may not be seen at all. There might be a better
looking solution, but for now this solves the main usability problem.

19 months agoFix merge error, this should have been included from master.
Brecht Van Lommel [Fri, 28 Sep 2018 08:47:11 +0000 (10:47 +0200)]
Fix merge error, this should have been included from 

19 months agoFix T56940: crash rendering with OpenGL as engine.
Brecht Van Lommel [Fri, 28 Sep 2018 08:39:20 +0000 (10:39 +0200)]
Fix T56940: crash rendering with OpenGL as engine.

19 months agoMake struct initialization happy for CLang
Sergey Sharybin [Fri, 28 Sep 2018 08:13:56 +0000 (10:13 +0200)]
Make struct initialization happy for CLang

19 months agoSubdiv: Return enumerator of proper type
Sergey Sharybin [Fri, 28 Sep 2018 08:13:18 +0000 (10:13 +0200)]
Subdiv: Return enumerator of proper type

Was harmless, that code is never to be reached.

19 months agoFix/workaround stupidity of CLang
Sergey Sharybin [Fri, 28 Sep 2018 08:11:28 +0000 (10:11 +0200)]
Fix/workaround stupidity of CLang

Seems there is something wrong with ternary operator
and type deduction.

Copying matrix to a variable with cleaner name seems
to be better solution than to force cast to an array.

19 months agoGPencil: Avoid tautology assignment
Sergey Sharybin [Fri, 28 Sep 2018 08:10:25 +0000 (10:10 +0200)]
GPencil: Avoid tautology assignment

This is considered a warning which is usually promoted to
error in developers' environment.

Probably worth adding an assert or so, if possible?

19 months agoCMake: Default to C11 for Clang and GCC
Sergey Sharybin [Fri, 28 Sep 2018 08:06:59 +0000 (10:06 +0200)]
CMake: Default to C11 for Clang and GCC

The option WITH_C11 is gone, and C++ is defaulting to C++11 now,
so guess it's fine to assume we need C11 now.

This is technically what we use anyway, with all the re-definitions
of structs (like when we typedef anonymous struct in a header file
first, and them define it to a proper structure in implementation
file).