17 months agoMerge branch 'blender2.7'
Brecht Van Lommel [Sun, 21 Apr 2019 01:08:58 +0000 (03:08 +0200)]
Merge branch 'blender2.7'

17 months agoFix T62408: Cycles viewport adaptive subdivision hangs after updates
Brecht Van Lommel [Thu, 4 Apr 2019 18:06:22 +0000 (20:06 +0200)]
Fix T62408: Cycles viewport adaptive subdivision hangs after updates

Backporting fix from the master branch.

17 months agoFix T63431: crash adding driver to a keyframed property with Ctrl+D
Brecht Van Lommel [Sun, 21 Apr 2019 00:34:26 +0000 (02:34 +0200)]
Fix T63431: crash adding driver to a keyframed property with Ctrl+D

17 months agoFix T63415: no Cycles displacement update when updating OSL code
Brecht Van Lommel [Sun, 21 Apr 2019 00:18:19 +0000 (02:18 +0200)]
Fix T63415: no Cycles displacement update when updating OSL code

17 months agoFix T63681: bad clipping of very long tooltips
Brecht Van Lommel [Sat, 20 Apr 2019 23:22:07 +0000 (01:22 +0200)]
Fix T63681: bad clipping of very long tooltips

17 months agoFix T63686: missing data path for 3D cursor location and rotation.
Brecht Van Lommel [Sat, 20 Apr 2019 23:11:12 +0000 (01:11 +0200)]
Fix T63686: missing data path for 3D cursor location and rotation.

17 months agoFix T63764: error when using library.users_id() function
Brecht Van Lommel [Sat, 20 Apr 2019 22:58:38 +0000 (00:58 +0200)]
Fix T63764: error when using library.users_id() function

Fix suggested by Vilem Duha.

17 months agomake.bat: remove --expand-tabs from "make format" on windows.
Ray Molenkamp [Sat, 20 Apr 2019 19:10:30 +0000 (13:10 -0600)]
make.bat: remove --expand-tabs from "make format" on windows.

following the change on linux.

17 months agoCorrect error in last commit
Campbell Barton [Sat, 20 Apr 2019 18:58:52 +0000 (04:58 +1000)]
Correct error in last commit

17 months agoUI: remove redundant row for header template
Campbell Barton [Sat, 20 Apr 2019 18:49:19 +0000 (04:49 +1000)]
UI: remove redundant row for header template

If it's members need to be aligned the template can handle it.

17 months agoCleanup: add missing macros to clang-format
Campbell Barton [Sat, 20 Apr 2019 18:40:16 +0000 (04:40 +1000)]
Cleanup: add missing macros to clang-format

17 months agoGNUMakefile: disable tab expansion for 'make format'
Campbell Barton [Sat, 20 Apr 2019 18:36:16 +0000 (04:36 +1000)]
GNUMakefile: disable tab expansion for 'make format'

This was only needed for initial migration.

17 months agoUI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:46 +0000 (19:01 +0200)]
UI Overlays: Align checkbox with slider for Wireframes, X-Ray, Shadows.

17 months agoUI Overlays: One line layout for Mask opacity.
Pablo Vazquez [Sat, 20 Apr 2019 17:01:03 +0000 (19:01 +0200)]
UI Overlays: One line layout for Mask opacity.

Saves one line of space and matches Wireframe, X-Ray, Shadows.

17 months agoFix invalid stack memory use with GPencil drawing
Campbell Barton [Sat, 20 Apr 2019 11:35:14 +0000 (13:35 +0200)]
Fix invalid stack memory use with GPencil drawing

17 months agoFix error in recent image preference change
Campbell Barton [Sat, 20 Apr 2019 13:13:04 +0000 (15:13 +0200)]
Fix error in recent image preference change

17 months agoNLA: check that properties are animatable.
Alexander Gavrilov [Sat, 20 Apr 2019 11:15:30 +0000 (14:15 +0300)]
NLA: check that properties are animatable.

17 months agoGPU: automatically draw images with GLSL shader depending on resolution
Brecht Van Lommel [Sat, 20 Apr 2019 10:47:06 +0000 (12:47 +0200)]
GPU: automatically draw images with GLSL shader depending on resolution

This adds a new "Automatic" image display method which uses GLSL shaders for
most images. It only does CPU side color management for higher res images
where sending big float buffers to the GPU is likely to be a bottleneck or
cause memory usage problem.

Automatic is the default now, previously it was 2D Texture.

17 months agoCleanup: remove unused OpenGL functions, rename some for clarity
Brecht Van Lommel [Sat, 20 Apr 2019 10:56:29 +0000 (12:56 +0200)]
Cleanup: remove unused OpenGL functions, rename some for clarity

17 months agoUI: correct accidental removal of TOPBAR_PT_name
Campbell Barton [Sat, 20 Apr 2019 11:28:16 +0000 (13:28 +0200)]
UI: correct accidental removal of TOPBAR_PT_name

Mistake in 9573bf432c4b0

17 months agoCleanup: re-use test for ELEM & STR_ELEM
Campbell Barton [Sat, 20 Apr 2019 11:02:20 +0000 (13:02 +0200)]
Cleanup: re-use test for ELEM & STR_ELEM

Avoid having same test running at the end of each macro.

17 months agoCleanup: quiet warning for NULL pointer use
Campbell Barton [Sat, 20 Apr 2019 10:31:22 +0000 (12:31 +0200)]
Cleanup: quiet warning for NULL pointer use

Warning was false positive but avoid repeating the same check.

17 months ago3D View: add opacity for sculpt mask display
Pablo Dobarro [Sat, 20 Apr 2019 09:58:44 +0000 (11:58 +0200)]
3D View: add opacity for sculpt mask display

This matches vertex/texture paint opacity options.

Useful because 0.75 is sometimes too dark to see the surface shading.

Resolves T63746

17 months agoCleanup: de-duplicate flag setting macro
Campbell Barton [Sat, 20 Apr 2019 09:39:25 +0000 (11:39 +0200)]
Cleanup: de-duplicate flag setting macro

17 months agoCleanup: quiet extra-semicolon warning
Campbell Barton [Sat, 20 Apr 2019 09:28:21 +0000 (11:28 +0200)]
Cleanup: quiet extra-semicolon warning

17 months agoFix T63732: GPencil Onion now working with multiwindows
Antonioya [Sat, 20 Apr 2019 08:26:15 +0000 (10:26 +0200)]
Fix T63732: GPencil Onion now working with multiwindows

If you had several windows or, after last changes in topbar, several areas, the swith of overlays or Onion Skin was not working by area, but as whole switch, so it was impossible to have different status by window.

17 months agoCleanup: comment line length (tests)
Campbell Barton [Sat, 20 Apr 2019 08:06:01 +0000 (10:06 +0200)]
Cleanup: comment line length (tests)

17 months agoCleanup: comment line length (windowmanager)
Campbell Barton [Sat, 20 Apr 2019 08:02:28 +0000 (10:02 +0200)]
Cleanup: comment line length (windowmanager)

17 months agoCleanup: formatting, unused args
Campbell Barton [Sat, 20 Apr 2019 07:15:06 +0000 (09:15 +0200)]
Cleanup: formatting, unused args

17 months agoOutliner: Simplify logic for parent nesting
Dalai Felinto [Fri, 19 Apr 2019 22:02:05 +0000 (19:02 -0300)]
Outliner: Simplify logic for parent nesting

17 months agoEdit Mode: Make edit edges black by default
Clément Foucault [Fri, 19 Apr 2019 17:39:44 +0000 (19:39 +0200)]
Edit Mode: Make edit edges black by default

This is in order to have better contrast now that
the edges are half transparent if not
in edge selection.

17 months agoDRW: Expose VBO garbage collection timings
Clément Foucault [Fri, 19 Apr 2019 16:52:38 +0000 (18:52 +0200)]
DRW: Expose VBO garbage collection timings

This adds user side options to tweak the behavior
of the vbo garbage collection.

17 months agoT63644: Editing while parented is not rotating correctly
Antonioya [Fri, 19 Apr 2019 15:07:45 +0000 (17:07 +0200)]
T63644:  Editing while parented is not rotating correctly

This commit tries to fix the rotation problem when the parent is at layer level.

The problem was the object location was not used, so all object not in origin got weird transformations.

17 months agoFix T63669: Particle editing bypassing occlusion.
mano-wii [Fri, 19 Apr 2019 14:49:17 +0000 (11:49 -0300)]
Fix T63669: Particle editing bypassing occlusion.

The problem occurs because status changes between BackBuffer and Offscreen.

Reviewers: fclem

Differential Revision:

17 months agoFix T63648: Missing update when changing particle force fields
Sergey Sharybin [Fri, 19 Apr 2019 13:38:45 +0000 (15:38 +0200)]
Fix T63648: Missing update when changing particle force fields

Force fields requires relations update in the dependency graph.

17 months agoCleanup: Remove dead code
Sergey Sharybin [Fri, 19 Apr 2019 13:36:18 +0000 (15:36 +0200)]
Cleanup: Remove dead code

There is no more sorting happening, so the comment is out of date
by manu reasons. If something extra is needed there it would need
to be done differently anyway.

17 months agoEdit Mode: Reduce Selected face alpha
Clément Foucault [Fri, 19 Apr 2019 13:18:45 +0000 (15:18 +0200)]
Edit Mode: Reduce Selected face alpha

This is to be less intrusive when doing UV mapping. They remain enough visible
in every select mode

17 months agoEdit Mode: Change face mode edges display
Clément Foucault [Fri, 19 Apr 2019 13:08:46 +0000 (15:08 +0200)]
Edit Mode: Change face mode edges display

This improve visibility in edit face select mode by using the face select color
instead of the edge select color (which is in default theme a bit more red). Also
makes the selected edges in this mode a bit more opaque (0.75 instead of  0.4).
Full opacity is still reserved for edge select mode.

17 months agoDRW: Add batch garbage collection
Clément Foucault [Fri, 19 Apr 2019 00:22:22 +0000 (02:22 +0200)]
DRW: Add batch garbage collection

This is only working for shading batches for the moment and only if some Custom data layer are not needed anymore.

The collection rate is hardcoded at 60 sec but could be exposed to the user.

This system can be extended and discard most unused batches in the future.

This commit is in prevision of removing BKE_MESH_BATCH_DIRTY_SHADING when changing shader parameters.

17 months agoDRW: Make shaded batch validation more correct
Clément Foucault [Thu, 18 Apr 2019 15:25:04 +0000 (17:25 +0200)]
DRW: Make shaded batch validation more correct

This is in order to support garbage collection of unused Custom data layer uploaded to the GPU.

Actual Garbage Collection is not added by this commit.

17 months agoCleanup: Remove image preview code
Sergey Sharybin [Fri, 19 Apr 2019 10:05:51 +0000 (12:05 +0200)]
Cleanup: Remove image preview code

Was commented out for literally 10 years.

17 months agoCleanup: Remove unneeded compositor update function
Sergey Sharybin [Fri, 19 Apr 2019 09:53:00 +0000 (11:53 +0200)]
Cleanup: Remove unneeded compositor update function

Similar to previous commit.

Compositing with animation on socket values and image sequences
still works fine.

17 months agoCleanup: Remove unneeded texture nodes update function
Sergey Sharybin [Fri, 19 Apr 2019 09:11:27 +0000 (11:11 +0200)]
Cleanup: Remove unneeded texture nodes update function

The function was calling update() on the time curve, but there
is no update callback on that node. So, effectively the function
was doing nothing.

17 months agoFix error in recently added STR_ELEM macro
Campbell Barton [Fri, 19 Apr 2019 12:49:57 +0000 (14:49 +0200)]
Fix error in recently added STR_ELEM macro

Very bad oversight, using pointer comparison instead of strcmp
for all but the first item.

17 months agoCMake: fix Cycles linking with OpenCL
Campbell Barton [Fri, 19 Apr 2019 12:00:16 +0000 (14:00 +0200)]
CMake: fix Cycles linking with OpenCL

17 months agoCMake: fix building without smoke enabled
Campbell Barton [Fri, 19 Apr 2019 11:54:43 +0000 (13:54 +0200)]
CMake: fix building without smoke enabled

Was removed when removing sorted libs however it's needed for stubs.

17 months agoFix/workaround crash using ED_area_do_msg_notify_tag_redraw
Campbell Barton [Fri, 19 Apr 2019 10:42:09 +0000 (12:42 +0200)]
Fix/workaround crash using ED_area_do_msg_notify_tag_redraw

Temporary workaround for crash when refreshing the active tool.

Currently ED_region_tag_redraw fails, use notifiers until
this is resolved.

17 months agoUI: minor layout tweaks to 3D viewport gizmo menu
Brecht Van Lommel [Fri, 19 Apr 2019 10:26:11 +0000 (12:26 +0200)]
UI: minor layout tweaks to 3D viewport gizmo menu

17 months agoUI: tweak header context menu, gray out items when they have no effect
Brecht Van Lommel [Fri, 19 Apr 2019 09:53:06 +0000 (11:53 +0200)]
UI: tweak header context menu, gray out items when they have no effect

17 months agoKeymap: add 'Adjust Last Operation' as F9
Campbell Barton [Fri, 19 Apr 2019 07:49:36 +0000 (09:49 +0200)]
Keymap: add 'Adjust Last Operation' as F9

Adding this back was a frequent request.

Now the panel can be hidden - some users may prefer only to access this
via a shortcut.

Unfortunately this uses an F-Key we'd intended to keep free for users.

This still keeps the middle block of F-Keys (5..8) free.

17 months agoKeymap: add set start/end shortcuts to graph editor
Campbell Barton [Fri, 19 Apr 2019 07:36:44 +0000 (09:36 +0200)]
Keymap: add set start/end shortcuts to graph editor

17 months agoKeymap: restore Ctrl-Tab in the dopesheet (removed by accident)
Campbell Barton [Fri, 19 Apr 2019 07:35:53 +0000 (09:35 +0200)]
Keymap: restore Ctrl-Tab in the dopesheet (removed by accident)

Mistake in 6aef124e7d2869a6

17 months agoCorrect cleanup marking keyword args unused
Campbell Barton [Fri, 19 Apr 2019 06:26:18 +0000 (08:26 +0200)]
Correct cleanup marking keyword args unused

17 months agoCleanup: remove redundant poll functions
Campbell Barton [Fri, 19 Apr 2019 06:13:56 +0000 (08:13 +0200)]
Cleanup: remove redundant poll functions

17 months agoCleanup: logical checks in UI scripts
Campbell Barton [Fri, 19 Apr 2019 06:10:39 +0000 (08:10 +0200)]
Cleanup: logical checks in UI scripts

17 months agoCleanup: trailing commas
Campbell Barton [Fri, 19 Apr 2019 06:07:46 +0000 (08:07 +0200)]
Cleanup: trailing commas

17 months agoCleanup: unused vars
Campbell Barton [Fri, 19 Apr 2019 05:52:53 +0000 (07:52 +0200)]
Cleanup: unused vars

17 months agoCleanup: use staticmethod where appropriate
Campbell Barton [Fri, 19 Apr 2019 05:51:14 +0000 (07:51 +0200)]
Cleanup: use staticmethod where appropriate

17 months agoMissing from last commit
Campbell Barton [Fri, 19 Apr 2019 05:49:49 +0000 (07:49 +0200)]
Missing from last commit

17 months agoCleanup: correct misleading classmethod arg
Campbell Barton [Fri, 19 Apr 2019 05:36:07 +0000 (07:36 +0200)]
Cleanup: correct misleading classmethod arg

17 months agoCleanup: mark unused arguments in UI scripts
Campbell Barton [Fri, 19 Apr 2019 05:32:24 +0000 (07:32 +0200)]
Cleanup: mark unused arguments in UI scripts

Quiet's pylint W0613 warning, also remove some unused args.

17 months agoUI: move top-bar into the spaces header
Campbell Barton [Thu, 18 Apr 2019 19:13:22 +0000 (21:13 +0200)]
UI: move top-bar into the spaces header

Currently this is only in the 3D viewport however all spaces
that use the tool-system will have this region added.

D4680 by @brecht with own updates.

17 months agoArmature: remove remains of the object-level deformation data cache.
Alexander Gavrilov [Thu, 18 Apr 2019 20:17:04 +0000 (23:17 +0300)]
Armature: remove remains of the object-level deformation data cache.

Now that B-Bone shape data is kept in bPoseChannel_Runtime, the
armature level cache only holds one quaternion value per bone.
It can also be moved to runtime, and the structure removed.

This has an additional effect that, as far as I can tell, now
the Armature modifier can run as soon as all of the bones it
actually needs are done, thus making T59848 a purely depsgraph
level problem.

17 months agoUI: Revert fix T37463: Y-clamp for header-only spaces
Campbell Barton [Thu, 18 Apr 2019 19:19:49 +0000 (21:19 +0200)]
UI: Revert fix T37463: Y-clamp for header-only spaces

This reverts 91d8519c4782 since I can't redo the reported error
which was in the old header-only info space.

17 months agoPyTests: do not load addons in load_py_modules test.
Bastien Montagne [Thu, 18 Apr 2019 19:11:40 +0000 (21:11 +0200)]
PyTests: do not load addons in load_py_modules test.

It makes no sense to load add-ons here, we already do that (in a more
complete way) in load_addons test, this is only adding overhead and
doubling code to maintain).

Also do not try to load-as-modules add-ons that are not 2.8-ready, and
some other misc fix.

load_py_modules test should be passing again now.

Thanks to @sergey who did part of the work here as well.

17 months agoFix T63332: backup and restore bPoseChannel_Runtime data during COW.
Alexander Gavrilov [Thu, 18 Apr 2019 18:19:57 +0000 (21:19 +0300)]
Fix T63332: backup and restore bPoseChannel_Runtime data during COW.

17 months agoImages: support packing edited images as OpenEXR or PNG.
Brecht Van Lommel [Sat, 20 Feb 2016 13:52:36 +0000 (14:52 +0100)]
Images: support packing edited images as OpenEXR or PNG.

This way float and multilayer images can now be packed without data loss. This
removes the as_png option and always uses the appropriate file format depending
on the image contents.

17 months agoCleanup: unused region init functions
Campbell Barton [Thu, 18 Apr 2019 18:02:09 +0000 (20:02 +0200)]
Cleanup: unused region init functions

17 months agoUI: collapse 3D view collections visibility panel by default.
Brecht Van Lommel [Thu, 18 Apr 2019 17:14:19 +0000 (19:14 +0200)]
UI: collapse 3D view collections visibility panel by default.

17 months agoOpenEXR: add support for writing EXR files to memory.
Brecht Van Lommel [Sat, 20 Feb 2016 13:52:36 +0000 (14:52 +0100)]
OpenEXR: add support for writing EXR files to memory.

17 months agoCleanup: deduplicate single/multiview image packing code.
Brecht Van Lommel [Sat, 3 Mar 2018 15:55:08 +0000 (16:55 +0100)]
Cleanup: deduplicate single/multiview image packing code.

17 months agoCleanup: move image saving code to blenkernel.
Brecht Van Lommel [Sun, 14 Apr 2019 22:24:00 +0000 (00:24 +0200)]
Cleanup: move image saving code to blenkernel.

17 months agoCleanup: make image saving code reusable outside operator.
Brecht Van Lommel [Sat, 20 Feb 2016 21:39:20 +0000 (22:39 +0100)]
Cleanup: make image saving code reusable outside operator.

17 months agoCleanup: deduplicate image user initialization, make consistent.
Brecht Van Lommel [Sat, 20 Feb 2016 21:36:02 +0000 (22:36 +0100)]
Cleanup: deduplicate image user initialization, make consistent.

17 months agoGPencil: Add option to mix color with texture
Antonioya [Thu, 18 Apr 2019 12:19:00 +0000 (14:19 +0200)]
GPencil: Add option to mix color with texture

This was already supported in Fill, but not in Strokes. This adds more artistic options when use textured strokes.

17 months agoCleanup: add trailing commas to avoid right shift
Campbell Barton [Thu, 18 Apr 2019 15:17:32 +0000 (17:17 +0200)]
Cleanup: add trailing commas to avoid right shift

17 months agoPyTests: do not try to load non-2.8-ready add-ons.
Bastien Montagne [Thu, 18 Apr 2019 15:14:17 +0000 (17:14 +0200)]
PyTests: do not try to load non-2.8-ready add-ons.

17 months agoGPencil: Fix Drawing Path follow error while drawing
Antonioya [Thu, 18 Apr 2019 14:59:01 +0000 (16:59 +0200)]
GPencil: Fix Drawing Path follow error while drawing

The strokes was aligned to drawing path only when the stroke was completed. Now, the stroke is aligned while drawing too.

17 months agoGPencil: Initialize variable to remove console warning
Antonioya [Thu, 18 Apr 2019 14:57:41 +0000 (16:57 +0200)]
GPencil: Initialize variable to remove console warning

17 months agoMissing 2.7x keymap update from last commit
Campbell Barton [Thu, 18 Apr 2019 14:41:38 +0000 (16:41 +0200)]
Missing 2.7x keymap update from last commit

17 months agoUI: replace toggle header with a property
Campbell Barton [Thu, 18 Apr 2019 14:35:11 +0000 (16:35 +0200)]
UI: replace toggle header with a property

17 months agoAlembic: catch weird exceptions from library instead of aborting Blender.
Bastien Montagne [Thu, 18 Apr 2019 14:19:17 +0000 (16:19 +0200)]
Alembic: catch weird exceptions from library instead of aborting Blender.

Similar to what is done e.g. in AbcMeshReader::read_mesh()...

17 months agoAMD glitch: missing changes in f41ab375f38b
mano-wii [Thu, 18 Apr 2019 13:53:00 +0000 (10:53 -0300)]
AMD glitch: missing changes in f41ab375f38b

It was committed an earlier version of the patch which missed these changes.

Differential Revision:

17 months agoCleanup: add 'if 0' comment why code is repeated
Campbell Barton [Thu, 18 Apr 2019 13:16:36 +0000 (15:16 +0200)]
Cleanup: add 'if 0' comment why code is repeated

Avoid potentially adding back the problem in the future.

17 months agoFix T62792: AMD glitch when clipping region in edit mode.
mano-wii [Thu, 18 Apr 2019 12:37:07 +0000 (09:37 -0300)]
Fix T62792: AMD glitch when clipping region in edit mode.

The `AMD Radeon HD 7600M` compiler is usually buggy for Geometry Shaders.
In this case, indexing was causing problems in `gl_in[i].gl_ClipDistance[0]`.

Reviewers: fclem

Differential Revision:

17 months agoPyAPI: remove support for importing text blocks as modules
Campbell Barton [Thu, 18 Apr 2019 12:45:23 +0000 (14:45 +0200)]
PyAPI: remove support for importing text blocks as modules

Allowing direct import of text blocks isn't especially useful,
instead add `text.as_module()` script authors can do this
explicitly if it's needed.

Now the text "Register" option executes
instead of loading as a module.

This removes the need to keep track of the current Main,
and C code to override Python's import & reload.

17 months agoFix T63590: Blender crashes when deleting particle hair keys
Sergey Sharybin [Thu, 18 Apr 2019 12:43:25 +0000 (14:43 +0200)]
Fix T63590: Blender crashes when deleting particle hair keys

17 months agoPython API: allow passing integer to some BGL functions instead of bgl.Buffer
Brecht Van Lommel [Thu, 18 Apr 2019 09:24:39 +0000 (11:24 +0200)]
Python API: allow passing integer to some BGL functions instead of bgl.Buffer

These parameters can be both pointers and offsets into a bound buffer, so we
need to support both even if it's possible to cause crashes this way.

17 months agoFix Embree link error after recent cmake changes
Maruf Sarker [Thu, 18 Apr 2019 12:22:52 +0000 (14:22 +0200)]
Fix Embree link error after recent cmake changes

Differential Revision:

17 months agoUI: option to toggle 'Adjust Last Operation'
Campbell Barton [Thu, 18 Apr 2019 11:49:21 +0000 (13:49 +0200)]
UI: option to toggle 'Adjust Last Operation'

17 months agoCleanup: comments, wrapping
Campbell Barton [Thu, 18 Apr 2019 11:59:59 +0000 (13:59 +0200)]
Cleanup: comments, wrapping

17 months agoUI: Expand Enum Items Over Multiple Rows
Jeroen Bakker [Wed, 17 Apr 2019 13:02:30 +0000 (15:02 +0200)]
UI: Expand Enum Items Over Multiple Rows

Expanding enum items in a small area would render the names with
dots, what is a bad solution. When you use expand directly on a
`grid_flow` or `column_flow`, it will render the items on multiple
lines, giving more control to the developer.

Reviewers: campbellbarton, brecht, mont29

Differential Revision:

17 months agoCleanup: correct comment
Campbell Barton [Thu, 18 Apr 2019 10:52:50 +0000 (12:52 +0200)]
Cleanup: correct comment

17 months agoUI: move region toggling to properties
Campbell Barton [Thu, 18 Apr 2019 10:16:03 +0000 (12:16 +0200)]
UI: move region toggling to properties

Each space had separate operators, duplicating logic.

Use RNA properties instead so adding the ability to toggle other
region types (floating redo region for eg) doesn't need to have an
extra operator per space type.

It's also nicer to show a check-box for something which can be toggled.

17 months agoCMake: correct bad change to ceres linking
Campbell Barton [Thu, 18 Apr 2019 10:30:44 +0000 (12:30 +0200)]
CMake: correct bad change to ceres linking

Revert part of 45055199a2e51

17 months agoFix T63513: Gpencil - Circle guide activation with shortcut "C" is not working properly
Charlie Jolly [Thu, 18 Apr 2019 10:39:13 +0000 (11:39 +0100)]
Fix T63513: Gpencil - Circle guide activation with shortcut "C" is not working properly

Only add missing events after first point is added.

17 months agoDisable clang-format for Libmv
Sergey Sharybin [Thu, 18 Apr 2019 10:33:04 +0000 (12:33 +0200)]
Disable clang-format for Libmv

This is an odd-ball: it's a library which has own style and
guidelines, and just happened to be developed by Blender developers
and also happened to rely on some functionality of intern/ for its

Might consider using Google's clang-format in the future (this is
what the style is supposed to be in this library).

17 months agoFix compilation error when using SDL dynamic loading
Sergey Sharybin [Thu, 18 Apr 2019 10:10:08 +0000 (12:10 +0200)]
Fix compilation error when using SDL dynamic loading

17 months agoMerge branch 'blender2.7'
Sergey Sharybin [Thu, 18 Apr 2019 09:57:44 +0000 (11:57 +0200)]
Merge branch 'blender2.7'

17 months agoBuildbot: Attempt to fix wrong branch in buildinfo
Sergey Sharybin [Wed, 10 Apr 2019 13:46:47 +0000 (15:46 +0200)]
Buildbot: Attempt to fix wrong branch in buildinfo

For some reason the buildinfo header was not re-generated. The root
reason is not really clear to me, so simply remove the header similar
to the CMake cache.