15 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.

15 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.

15 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

15 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.

15 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.

15 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

15 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

15 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

15 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()...

15 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:

15 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.

15 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:

15 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.

15 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

15 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.

15 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:

15 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'

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

15 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:

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

15 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.

15 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

15 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.

15 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).

15 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

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

15 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.

15 months agoFix T63663: Object mode proportional editing affects objects which are disabled for...
Sebastian Parborg [Thu, 18 Apr 2019 09:50:00 +0000 (11:50 +0200)]
Fix T63663: Object mode proportional editing affects objects which are disabled for selection

Objects which are not selectable are no longer affected by
proportional transformations.

15 months agoCleanup: remove last bits of WITH_LEGACY_DEPSGRAPH CMake option.
Bastien Montagne [Thu, 18 Apr 2019 09:34:53 +0000 (11:34 +0200)]
Cleanup: remove last bits of WITH_LEGACY_DEPSGRAPH CMake option.

Legacy depsgraph has been removed from Blender since several months

15 months agoOverlay Engine: Option to Disable AA Ortho Grid
Jeroen Bakker [Wed, 17 Apr 2019 09:35:20 +0000 (11:35 +0200)]
Overlay Engine: Option to Disable AA Ortho Grid

When in Axis alligned orthographic view a grid was always displayed.
With this change the user can enable/disable this grid.

The Grid is always visible and editable, but only rendered active when user is in quad view, or axis aligned ortho view.

Reviewers: brecht, fclem

Maniphest Tasks: T63517

Differential Revision:

15 months agoFix mistake in recent commit.
Jeroen Bakker [Thu, 18 Apr 2019 06:10:38 +0000 (08:10 +0200)]
Fix mistake in recent commit.

Needed to remove footers and not headers

15 months agoclang-format: add statement macro
Campbell Barton [Thu, 18 Apr 2019 06:04:03 +0000 (08:04 +0200)]
clang-format: add statement macro

Disabled for now but corrects syntax when we switch to v8.

15 months agoCleanup: indentation from braces in '#if 0'
Campbell Barton [Thu, 18 Apr 2019 05:52:45 +0000 (07:52 +0200)]
Cleanup: indentation from braces in '#if 0'

15 months agoCleanup: comment blocks
Campbell Barton [Thu, 18 Apr 2019 05:21:26 +0000 (07:21 +0200)]
Cleanup: comment blocks

15 months agoUI: don't expand selection tool option enum
Brecht Van Lommel [Thu, 18 Apr 2019 04:46:51 +0000 (06:46 +0200)]
UI: don't expand selection tool option enum

This was taking too much space.

15 months agoCleanup: move region manipulation to utility functions
Brecht Van Lommel [Thu, 18 Apr 2019 04:48:34 +0000 (06:48 +0200)]
Cleanup: move region manipulation to utility functions

15 months agoCleanup: warnings
Campbell Barton [Thu, 18 Apr 2019 04:51:44 +0000 (06:51 +0200)]
Cleanup: warnings

15 months agocmake: Fix python linker issues on windows.
Ray Molenkamp [Wed, 17 Apr 2019 19:26:02 +0000 (13:26 -0600)]
cmake: Fix python linker issues on windows.

Recent cmake work made the debug build link both python37.dll and python37_d.dll

15 months agoEdit Mode: Rework display to differentiate selection modes
Clément Foucault [Wed, 17 Apr 2019 00:52:15 +0000 (02:52 +0200)]
Edit Mode: Rework display to differentiate selection modes

This removes the large edges and instead use colors to hint in which
selection mode the user is.

The component in each individual selection mode is more prominent to add
more emphasis. The other components are less prominent and dimmed.

A minor default theme changes needed to be made to keep clarity in all

Forcing old behavior (no selection mode hit) could be done quite easily
by just making the 2 booleans true (selectFaces and selectEdges).

Reviewers: campbellbarton, billreynish

Reviewed By: campbellbarton, billreynish

Subscribers: ThinkingPolygons

Maniphest Tasks: T1234

Differential Revision:

15 months agoClangFormat: disable for generated theme
Campbell Barton [Wed, 17 Apr 2019 17:24:38 +0000 (19:24 +0200)]
ClangFormat: disable for generated theme

15 months agoCleanup: line wrapping caused by comments
Campbell Barton [Wed, 17 Apr 2019 16:50:53 +0000 (18:50 +0200)]
Cleanup: line wrapping caused by comments

15 months agoAnimation: Refactor storage usage during fcurve modifier evaluation
Jacques Lucke [Wed, 17 Apr 2019 16:09:33 +0000 (18:09 +0200)]
Animation: Refactor storage usage during fcurve modifier evaluation

Previously, when a fcurve modifier used storage,
many heap allocations were done.
This caused major slowdowns as described in T63656.

Furthermore, the storage usage was a special case only
used by the Cycles modifier. This refactor makes
storage usage the "normal" case.
That reduces the overall complexity.

The storage is stack allocated now.

The framerate on the provided test scene went up from ~5 fps to ~16 fps.

Reviewers: angavrilov

Differential Revision:

15 months agoTests: Fix Alembic regression test
Sergey Sharybin [Wed, 17 Apr 2019 15:39:17 +0000 (17:39 +0200)]
Tests: Fix Alembic regression test

15 months agoTests: Fix ID properties test
Sergey Sharybin [Wed, 17 Apr 2019 10:39:42 +0000 (12:39 +0200)]
Tests: Fix ID properties test

Simply adjust to Python API changes done in 2.8.

15 months agoAvoid autosave name collisions
Jacques Lucke [Wed, 17 Apr 2019 14:54:28 +0000 (16:54 +0200)]
Avoid autosave name collisions

When the same .blend file was open in two instances of Blender,
the autosaved files would overwrite each other.

The solution is to put the pid into the filename.

The exact pattern is the result of a discussion with @pablovazquez.

15 months agoFix T63678 Link error of tests with MSVC.
Ray Molenkamp [Wed, 17 Apr 2019 13:58:48 +0000 (07:58 -0600)]
Fix T63678 Link error of tests with MSVC.

Ideally OCIO removes their log2 implementation from the global namespace
but for now this linker tweak will have to do.

15 months agoGPUBuffers: Remove wrong assert
Clément Foucault [Tue, 16 Apr 2019 23:38:15 +0000 (01:38 +0200)]
GPUBuffers: Remove wrong assert

The assert was not true if the pbvh node had no triangle.

Also update the comment to reflect that.

15 months agoFix T63673: Wrong api documentation for
Jacques Lucke [Wed, 17 Apr 2019 11:48:41 +0000 (13:48 +0200)]
Fix T63673: Wrong api documentation for

15 months agoFix T60982: don't allow editing group properties in linked actions.
Alexander Gavrilov [Wed, 17 Apr 2019 11:43:02 +0000 (14:43 +0300)]
Fix T60982: don't allow editing group properties in linked actions.

15 months agoFix T63674: Incorrect poll methods in node category classes
nBurn [Wed, 17 Apr 2019 11:36:20 +0000 (13:36 +0200)]
Fix T63674: Incorrect poll methods in node category classes

Differential Revision:

15 months agoeditorconfig: correct indent size
Campbell Barton [Wed, 17 Apr 2019 11:34:26 +0000 (13:34 +0200)]
editorconfig: correct indent size

15 months agoFix T63247: edbm_rip_invoke__edge rips unselected verts on mesh borders
Sebastian Parborg [Wed, 17 Apr 2019 10:30:00 +0000 (12:30 +0200)]
Fix T63247: edbm_rip_invoke__edge rips unselected verts on mesh borders

Ripping edges would in some cases rip verts on unselected edges. This is now fixed so that we only rip verts from the actually selected edges.

Reviewed By: Brecht

Differential Revision:

15 months agoFix Change when re-running clang-format 7.
Bastien Montagne [Wed, 17 Apr 2019 09:32:21 +0000 (11:32 +0200)]
Fix Change when re-running clang-format 7.

This was the only broken case for me, hopefully we have nailed all of
those down now.

15 months agoDisable clang-format for objective-C bits in GHOST.
Bastien Montagne [Wed, 17 Apr 2019 08:56:11 +0000 (10:56 +0200)]
Disable clang-format for objective-C bits in GHOST.

Pre-8 versions of clang-format do not handle objective-C very well,
leading to unwanted changes when re-running the edits.

15 months agoCleanup: Silence compiler warning with release builds
Sergey Sharybin [Wed, 17 Apr 2019 08:54:56 +0000 (10:54 +0200)]
Cleanup: Silence compiler warning with release builds

15 months agoClangFormat: re-run (#if 0 caused noise)
Campbell Barton [Wed, 17 Apr 2019 07:34:15 +0000 (09:34 +0200)]
ClangFormat: re-run (#if 0 caused noise)

15 months agoClangFormat: remove '#if 0' to fix bmo_inset.c indent
Campbell Barton [Wed, 17 Apr 2019 07:27:18 +0000 (09:27 +0200)]
ClangFormat: remove '#if 0' to fix bmo_inset.c indent

15 months agoCleanup: replace comments with meaningful variable names
Campbell Barton [Wed, 17 Apr 2019 07:05:56 +0000 (09:05 +0200)]
Cleanup: replace comments with meaningful variable names

15 months agoClangFormat: adjust '#if 0' to fix gpu_buffers.c indent
Campbell Barton [Wed, 17 Apr 2019 06:56:59 +0000 (08:56 +0200)]
ClangFormat: adjust '#if 0' to fix gpu_buffers.c indent

15 months agoClangFormat: format '#if 0' code
Campbell Barton [Wed, 17 Apr 2019 06:50:46 +0000 (08:50 +0200)]
ClangFormat: format '#if 0' code

Previous cleanups didn't account for space after '#'.

15 months agoCleanup: comment length in transform
Campbell Barton [Wed, 17 Apr 2019 06:44:58 +0000 (08:44 +0200)]
Cleanup: comment length in transform

15 months agoCleanup: comment length in interface
Campbell Barton [Wed, 17 Apr 2019 06:44:38 +0000 (08:44 +0200)]
Cleanup: comment length in interface

15 months agoClangFormat: format '#if 0' code in source/
Campbell Barton [Wed, 17 Apr 2019 06:24:14 +0000 (08:24 +0200)]
ClangFormat: format '#if 0' code in source/

15 months agoClangFormat: format '#if 0' code in intern/
Campbell Barton [Wed, 17 Apr 2019 06:16:53 +0000 (08:16 +0200)]
ClangFormat: format '#if 0' code in intern/

15 months agoCleanup: use 2 space indentation for CMake
Campbell Barton [Wed, 17 Apr 2019 04:35:54 +0000 (06:35 +0200)]
Cleanup: use 2 space indentation for CMake

15 months agoClangFormat: manually format sobol.cpp
Campbell Barton [Wed, 17 Apr 2019 04:34:20 +0000 (06:34 +0200)]
ClangFormat: manually format sobol.cpp

Disabled because it uses a lot of memory and is mostly data.

15 months agoClangFormat: apply to source, most of intern
Campbell Barton [Wed, 17 Apr 2019 04:17:24 +0000 (06:17 +0200)]
ClangFormat: apply to source, most of intern

Apply clang format as proposed in T53211.

For details on usage and instructions for migrating branches
without conflicts, see:

15 months agoeditorconfig: update for new clang-format config
Campbell Barton [Wed, 17 Apr 2019 04:12:55 +0000 (06:12 +0200)]
editorconfig: update for new clang-format config

15 months agoClangFormat: add configuration files
Campbell Barton [Wed, 17 Apr 2019 04:09:59 +0000 (06:09 +0200)]
ClangFormat: add configuration files

Prepare for applying clang-format, see: T53211

15 months agoCleanup: use 2 space indentation for shell scripts
Campbell Barton [Wed, 17 Apr 2019 04:08:01 +0000 (06:08 +0200)]
Cleanup: use 2 space indentation for shell scripts

Already used by

15 months agoClangFormat: disable for most of sobol.cpp
Campbell Barton [Wed, 17 Apr 2019 04:00:20 +0000 (06:00 +0200)]
ClangFormat: disable for most of sobol.cpp

15 months agoIndustry Compat keymap: Fix loop selection
William Reynish [Tue, 16 Apr 2019 20:13:25 +0000 (22:13 +0200)]
Industry Compat keymap: Fix loop selection

- Extending loops wasn't working correctly. This is now fixed.
- Also added ability to deselect loops by holding Ctrl and double-clicking

15 months agoSelecing a pose bone in outliner deselect others
Dalai Felinto [Tue, 16 Apr 2019 19:09:59 +0000 (16:09 -0300)]
Selecing a pose bone in outliner deselect others

This mimics what is now the behaviour for edit bones as well.
See e6151bc4c1f2.

And it also matches what we do in the viewport when selecting bones.

15 months agoFix T63066: Outliner crash when selecting object being in armature editmode
Dalai Felinto [Tue, 16 Apr 2019 18:35:08 +0000 (15:35 -0300)]
Fix T63066: Outliner crash when selecting object being in armature editmode

While fixing it, also reproducing multi-object selection logic we have
in the viewport. If you select one bone from an armature, it deselects all
bones from the other armatures currently in edit mode.

Inspired by proposed fix by Philipp Oeser (lichtwerk).

Code explanation

CTX_data_edit_object(C) may be NULL here. In the few cases where it is
not we use it for the notifier (in the other cases we call the notifier
with NULL, so no harm done).

This code is called during outliner drawing, and it is called, for
instance every time you mouse hover a bone.

If you have a mesh object in edit mode and mouse hover the bones of an armature
it is plain obvious we can't rely on CTX_data_edit_object() for anything
armature related. And that the original assert was asking for troubles.

15 months agoCleanup: avoid adjacent C-style comments
Campbell Barton [Tue, 16 Apr 2019 15:55:11 +0000 (17:55 +0200)]
Cleanup: avoid adjacent C-style comments

Causes clang-format to give different results on a second run.

15 months agoCleanup: avoid adjacent C-style comments
Campbell Barton [Tue, 16 Apr 2019 15:48:22 +0000 (17:48 +0200)]
Cleanup: avoid adjacent C-style comments

Causes clang-format to give different results on a second run.

15 months agoSpline IK: support changing individual bone length via Y scaling.
Alexander Gavrilov [Mon, 15 Apr 2019 17:25:41 +0000 (20:25 +0300)]
Spline IK: support changing individual bone length via Y scaling.

Previously Spline IK provided only two choices: either scale the
length of the bone chain to fit the length of the curve, or don't
scale the bone in the Y dimension at all (ignoring effects of
actually fitting to the curve due to curvature and curve object

This patch adds a new option to use the pre-IK Y scale of the
bones to adjust their length when fitted to the curve, allowing
individual posing control over the length of the segments.

Reviewers: brecht

Differential Revision:

15 months agoCleanup: simplify comments
Campbell Barton [Tue, 16 Apr 2019 15:37:04 +0000 (17:37 +0200)]
Cleanup: simplify comments

clang-format reformatted when running a second time.

15 months agoClang-format: Speed up detection of clang-format
Sergey Sharybin [Tue, 16 Apr 2019 15:05:31 +0000 (17:05 +0200)]
Clang-format: Speed up detection of clang-format

Don't construct the full build environment, following
feedback from Ray.

15 months agoClangFormat: add comments to ignore formatting
Campbell Barton [Tue, 16 Apr 2019 15:02:52 +0000 (17:02 +0200)]
ClangFormat: add comments to ignore formatting

15 months agoFix T63312: Crash XRay + clipping
Jeroen Bakker [Mon, 8 Apr 2019 06:12:45 +0000 (08:12 +0200)]
Fix T63312: Crash XRay + clipping

Outline shaders were only selected when no checker depth was available.

Reviewed By: fclem

Maniphest Tasks: T63312

Differential Revision:

15 months agoClangFormat: add comments to ignore formatting
Campbell Barton [Tue, 16 Apr 2019 14:53:50 +0000 (16:53 +0200)]
ClangFormat: add comments to ignore formatting

15 months agoFix BLI_path test of BLI_path_frame_strip.
Bastien Montagne [Tue, 16 Apr 2019 14:49:55 +0000 (16:49 +0200)]
Fix BLI_path test of BLI_path_frame_strip.

Ensure that returned string buffer is always properly initialized with
NULL char...

15 months agoGNUmakefile: move clang format utility
Campbell Barton [Tue, 16 Apr 2019 14:47:05 +0000 (16:47 +0200)]
GNUmakefile: move clang format utility

Makes more sense to place in 'utils_maintenance'.

15 months agoCleanup: trailing commas
Campbell Barton [Tue, 16 Apr 2019 14:40:47 +0000 (16:40 +0200)]
Cleanup: trailing commas

15 months agoCleanup: use keyword only args to rna_idprop_ui_create
Campbell Barton [Tue, 16 Apr 2019 14:00:24 +0000 (16:00 +0200)]
Cleanup: use keyword only args to rna_idprop_ui_create

15 months agoPython: add a utility function for creating custom properties.
Alexander Gavrilov [Sat, 30 Mar 2019 09:53:39 +0000 (12:53 +0300)]
Python: add a utility function for creating custom properties.

Creating a fully functional custom property requires also setting up
its limits, description, default value and static override status.
It is complex enough to warrant providing an official utility.

Currently boolean properties are technically int, but the utility
pretends they are separate in case that eventually they are.

Reviewers: campbellbarton

Differential Revision:

15 months agoGNUmakefile: add 'make format'
Campbell Barton [Tue, 16 Apr 2019 13:42:54 +0000 (15:42 +0200)]
GNUmakefile: add 'make format'

Convenience access to utility.

15 months agoInitial support of `make format` for Windows
Sergey Sharybin [Tue, 16 Apr 2019 13:34:32 +0000 (15:34 +0200)]
Initial support of `make format` for Windows

There are couple of caviats currently:

- The script requires system-wide Python 3 available in the current
  search PATH as python.exe.

  This will get addressed soon by distributing unpacked Python binary
  in our libraries.

- Since the libraries folder is to be known, this requires to have
  MSVC detected. Not too bad, since formatting is still way slower
  than detection, but still doesn't feel ideal.

15 months agoFix tool system Python errors if there is no active object.
Brecht Van Lommel [Tue, 16 Apr 2019 10:18:28 +0000 (12:18 +0200)]
Fix tool system Python errors if there is no active object.

15 months agoFix T63641: transform snap invert keymap item has an effect when disabled.
Brecht Van Lommel [Tue, 16 Apr 2019 09:38:50 +0000 (11:38 +0200)]
Fix T63641: transform snap invert keymap item has an effect when disabled.

15 months agoFix T63617: Bone groups (de)select operators not immediately refreshing
Philipp Oeser [Tue, 16 Apr 2019 10:15:01 +0000 (12:15 +0200)]
Fix T63617: Bone groups (de)select operators not immediately refreshing

was missing DEG updates

Reviewers: brecht

Maniphest Tasks: T63617

Differential Revision:

15 months agoFix T63204: Toggle collection visibility with shift
Dalai Felinto [Tue, 16 Apr 2019 12:52:02 +0000 (09:52 -0300)]
Fix T63204: Toggle collection visibility with shift

Shift was always turning the collection visible. It now toggles, similar
to what we had in 2.79.

15 months agoCMake: fix building WITH_CYCLES_LOGGING=ON
Campbell Barton [Tue, 16 Apr 2019 12:56:17 +0000 (14:56 +0200)]
CMake: fix building WITH_CYCLES_LOGGING=ON

15 months agoUI: Move Collection Visibility popover from 3D View header into the Sidebar
William Reynish [Tue, 16 Apr 2019 12:52:44 +0000 (14:52 +0200)]
UI: Move Collection Visibility popover from 3D View header into the Sidebar

It's more practical to use this from the Sidebar, and takes away one item from the crowded header.

See T63527

15 months agoFix broken build when using system Glew on linux.
Bastien Montagne [Tue, 16 Apr 2019 12:43:56 +0000 (14:43 +0200)]
Fix broken build when using system Glew on linux.

15 months agoUI: Refactor View2D number drawing
Jacques Lucke [Tue, 16 Apr 2019 12:15:49 +0000 (14:15 +0200)]
UI: Refactor View2D number drawing

This also fixes alignment issues in many editors.
E.g. the frame numbers were badly aligned to the grid lines
in the timeline.

Checkout the images in D4681 for more examples.

Reviewers: brecht

Differential Revision:

15 months agoCMake: fix building without libmv
Campbell Barton [Tue, 16 Apr 2019 12:10:38 +0000 (14:10 +0200)]
CMake: fix building without libmv

15 months agoFix T63619: Fill Tool is misaligned when 'Gradient' is enabled
Philipp Oeser [Tue, 16 Apr 2019 11:36:44 +0000 (13:36 +0200)]
Fix T63619: Fill Tool is misaligned when 'Gradient' is enabled

Reviewers: brecht

Maniphest Tasks: T63619

Differential Revision:

15 months agoCMake: fix linking with gtest & cycles enabled
Campbell Barton [Tue, 16 Apr 2019 11:57:03 +0000 (13:57 +0200)]
CMake: fix linking with gtest & cycles enabled