blender.git
17 months agoCleanup: correct solidify logic
Campbell Barton [Thu, 3 May 2018 17:48:28 +0000 (19:48 +0200)]
Cleanup: correct solidify logic

Code for side normals isn't executing at the moment,
so not essential, but better correct it.

17 months agoCleanup: parentheses warning
Campbell Barton [Thu, 3 May 2018 17:37:20 +0000 (19:37 +0200)]
Cleanup: parentheses warning

17 months agoBKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.
Germano [Thu, 3 May 2018 17:26:39 +0000 (14:26 -0300)]
BKE bvhtree: Add `tree_type` parameter to `bvhtree_from_mesh_get`.

This will allow greater control of the bvhtrees that are obtained, and helps identify problems.
It is also an additional step to unify the functions.

17 months agoFix tooltip for constraints' subtarget.
Bastien Montagne [Thu, 3 May 2018 14:00:34 +0000 (16:00 +0200)]
Fix tooltip for constraints' subtarget.

Thanks @aligorith for the head-up.

17 months agoCleanup: factorize RNA constraint targets definition.
Bastien Montagne [Thu, 3 May 2018 13:00:12 +0000 (15:00 +0200)]
Cleanup: factorize RNA constraint targets definition.

No expected changes in behavior from that commit!

17 months agoCleanup: split out extrude spin/screw
Campbell Barton [Thu, 3 May 2018 06:13:17 +0000 (08:13 +0200)]
Cleanup: split out extrude spin/screw

Since these will have their own manipulators,
its more convenient to keep them separate.

17 months agoRefactoring: bvhutils: Use a function that gets the bvhtree through an identifier...
Germano [Tue, 1 May 2018 13:03:28 +0000 (10:03 -0300)]
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.

Reviewed By: @campbellbarton
Differential Revision: https://developer.blender.org/D3192

17 months agoAdd support for area lights to the Apply Transform operator
Lukas Stockner [Mon, 30 Apr 2018 20:05:03 +0000 (22:05 +0200)]
Add support for area lights to the Apply Transform operator

Since area lights are affected by scaling them, it only makes sense to support applying the scale to the lamp size.
Of course, applying location or rotation does not work.

If a scaling that changes the aspect ratio is applied to a square lamp, the mode is automatically changed to Rectangle.

17 months agoFix Merge > To Cursor
Dalai Felinto [Mon, 30 Apr 2018 19:34:13 +0000 (21:34 +0200)]
Fix Merge > To Cursor

In master this is working fine, but in 2.8 ob->imat was identity matrix.
Committing this in master to simplify merging.

17 months agoCleanup: de-duplicate paint access from object
Campbell Barton [Mon, 30 Apr 2018 16:58:43 +0000 (18:58 +0200)]
Cleanup: de-duplicate paint access from object

17 months agoUV editing: Make 'Select Linked' work consistent to 3D View
Julian Eisel [Mon, 30 Apr 2018 13:42:29 +0000 (15:42 +0200)]
UV editing: Make 'Select Linked' work consistent to 3D View

Don't see a good reason for the old behavior, so better have it consistent.

17 months agoBLI Color: YUV to/from rgb colorspace option
Aaron Carlisle [Sun, 29 Apr 2018 22:00:45 +0000 (18:00 -0400)]
BLI Color: YUV to/from rgb colorspace option

This commit does two things:

- Adds an option to do the calculation in different color spaces (BT601
or BT709).
- Changes the default caluclation from legacy BT601 to BT709.

This affects several areas:

- UI areas (mainly scopes)
- ViewLevelsNode
- Several other nodes that use `COM_ConvertOperation.h`

17 months agoCycles: Cleanup: Remove double semicolons
Lukas Stockner [Sun, 29 Apr 2018 07:27:44 +0000 (09:27 +0200)]
Cycles: Cleanup: Remove double semicolons

17 months agoFix vertex paint alpha brush setting color black
Campbell Barton [Sat, 28 Apr 2018 12:47:53 +0000 (14:47 +0200)]
Fix vertex paint alpha brush setting color black

17 months agoCleanup: meaningful names for color blending
Campbell Barton [Sat, 28 Apr 2018 12:43:05 +0000 (14:43 +0200)]
Cleanup: meaningful names for color blending

17 months agoFix T54836: Select sharp edges doesn't flush to faces
Campbell Barton [Thu, 26 Apr 2018 12:30:27 +0000 (14:30 +0200)]
Fix T54836: Select sharp edges doesn't flush to faces

17 months agoCleanup: Use enums for View2D value defines
Julian Eisel [Thu, 26 Apr 2018 12:03:08 +0000 (14:03 +0200)]
Cleanup: Use enums for View2D value defines

Makes the file much less cluttered and more structured.
Also made some whitespace tweaks.

17 months agoFix discontinuity in default UVs for a torus
Philipp Oeser [Thu, 26 Apr 2018 09:18:59 +0000 (11:18 +0200)]
Fix discontinuity in default UVs for a torus

Reported in T47489 by Simon Windmill (coolpowers) who also provided the
fix, thanx.

Reviewed by Sebastian Witt (witt)

17 months agoUI: optionally pass icon size to widget_draw_icon
Campbell Barton [Wed, 25 Apr 2018 15:24:45 +0000 (17:24 +0200)]
UI: optionally pass icon size to widget_draw_icon

No functional changes.

17 months agoLibrary: Add assert to catch unsupported copy flags combination
Sergey Sharybin [Wed, 25 Apr 2018 14:59:35 +0000 (16:59 +0200)]
Library: Add assert to catch unsupported copy flags combination

Thanks Bastien for review!

17 months agoDepsgraph: Fix missing relations in array modifier
Sergey Sharybin [Wed, 25 Apr 2018 14:34:01 +0000 (16:34 +0200)]
Depsgraph: Fix missing relations in array modifier

Found by Dr. Sybren while working on modifiers port.

17 months agoCDDM: correct (disabled) logic in merge verts
Campbell Barton [Wed, 25 Apr 2018 12:53:44 +0000 (14:53 +0200)]
CDDM: correct (disabled) logic in merge verts

17 months agoRemove developer exception hack
Campbell Barton [Wed, 25 Apr 2018 10:54:27 +0000 (12:54 +0200)]
Remove developer exception hack

This caused too much trouble, also it's possible users run with
'release' in their CWD causing issues.

Developers can symlink "release/" to "bin/2.79".

17 months agoRevert "Fix (unreported) broken 'get system path' in some cases."
Campbell Barton [Wed, 25 Apr 2018 10:48:51 +0000 (12:48 +0200)]
Revert "Fix (unreported) broken 'get system path' in some cases."

This reverts commit f1bc0aeddedacf68182164dde5d4674d11aba6c9.

17 months agoBuildbot: Attempt to link against Blosc statically
Sergey Sharybin [Wed, 25 Apr 2018 10:27:01 +0000 (12:27 +0200)]
Buildbot: Attempt to link against Blosc statically

Was broken by f1e6838376a.

17 months agoCleanup: comments
Campbell Barton [Wed, 25 Apr 2018 10:25:47 +0000 (12:25 +0200)]
Cleanup: comments

17 months agoFix (unreported) broken 'get system path' in some cases.
Bastien Montagne [Wed, 25 Apr 2018 08:33:29 +0000 (10:33 +0200)]
Fix (unreported) broken 'get system path' in some cases.

There were two issues here actually:
* The hack to allow running Blender directly from the source directory
would just check for a 'release' directory, without actually ensuring it
is release dir from blender source tree, and not some other random
folder.
* GHOST_getSystemDir returns nothing for portable installations, now
we'll then check directly in the blender binary dir in that case.

This fix is more critical in 2.8 branch, where that system path is used
to retrieve new '3D' icons...

17 months agoFix string comparison in GNUMakefile for linux systems
Dalai Felinto [Wed, 25 Apr 2018 07:28:35 +0000 (09:28 +0200)]
Fix string comparison in GNUMakefile for linux systems

17 months agoBLI BVHTree Walk DFS: Decreases the size of the stack space used for the recursive...
Germano [Tue, 24 Apr 2018 12:48:14 +0000 (09:48 -0300)]
BLI BVHTree Walk DFS: Decreases the size of the stack space used for the recursive function.

Each parameter of the function is copied into the memory stack.
This also brought an improvement in peformance of snapping functions between 5% and 12% in my tests.

17 months agoBuild: Added explicit search for Blosc in CMake files. Unix build will now disable...
Stefan Werner [Tue, 24 Apr 2018 11:26:54 +0000 (13:26 +0200)]
Build: Added explicit search for Blosc in CMake files. Unix build will now disable WITH_OPENVDB_BLOSC if Blosc libraries cannot be found.

17 months agoBuild deps: Fixed TBB build with GCC 6 and newer, turning off dead store elimination.
Stefan Werner [Tue, 24 Apr 2018 11:23:52 +0000 (13:23 +0200)]
Build deps: Fixed TBB build with GCC 6 and newer, turning off dead store elimination.

17 months agoBuild deps: Fixed capitalisation of CMake modules path for OpenVDB. Before, OpenVDB...
Stefan Werner [Tue, 24 Apr 2018 08:28:38 +0000 (10:28 +0200)]
Build deps: Fixed capitalisation of CMake modules path for OpenVDB. Before, OpenVDB would always build without BLOSC and TBB support on case-sensitive file systems.

17 months agoBLI_math: avoid assert with non-finite numbers
Campbell Barton [Mon, 23 Apr 2018 19:07:27 +0000 (21:07 +0200)]
BLI_math: avoid assert with non-finite numbers

17 months agoDepsgraph: Add relation flag to avoid flush across it
Sergey Sharybin [Mon, 23 Apr 2018 14:42:37 +0000 (16:42 +0200)]
Depsgraph: Add relation flag to avoid flush across it

This way we can avoid re-evaluation of certain parts of datablock
when something unrelated has changed.

17 months agoDepsgraph: Fix missing update with animated curve path
Sergey Sharybin [Mon, 23 Apr 2018 12:53:54 +0000 (14:53 +0200)]
Depsgraph: Fix missing update with animated curve path

17 months agoDepsgraph: Cleanup, remove unused relation tag
Sergey Sharybin [Mon, 23 Apr 2018 12:34:56 +0000 (14:34 +0200)]
Depsgraph: Cleanup, remove unused relation tag

17 months agoCleanup: style
Campbell Barton [Mon, 23 Apr 2018 08:00:42 +0000 (10:00 +0200)]
Cleanup: style

17 months agoFix T54766: "Record With"-NLA "Push Down" discards Blend Mode, Extrapolation, and...
Joshua Leung [Mon, 23 Apr 2018 10:35:37 +0000 (12:35 +0200)]
Fix T54766: "Record With"-NLA "Push Down" discards Blend Mode, Extrapolation, and Influence

Applied similar fix to T54233 to get the "Record with NLA" feature working with
active action blending + influence settings. Extrapolation is explicitly ignored
though, as it shouldn't be used with this feature (i.e. it is already disabled
with the new strips and also on the animdata by default)

17 months agoDepsgraph: Add missing relations builder
Sergey Sharybin [Mon, 23 Apr 2018 07:33:33 +0000 (09:33 +0200)]
Depsgraph: Add missing relations builder

Was possible to miss some relations from being built
when parent object is linked to the scene graph indirectly.

17 months agoCleanup: UI naming
Campbell Barton [Sun, 22 Apr 2018 17:22:10 +0000 (19:22 +0200)]
Cleanup: UI naming

17 months agoCleanup: de-dup popup/pie menu RNA definition
Campbell Barton [Sun, 22 Apr 2018 08:49:45 +0000 (10:49 +0200)]
Cleanup: de-dup popup/pie menu RNA definition

Also rename pupmenu -> popmenu

17 months agoCleanup: variable naming
Campbell Barton [Sat, 21 Apr 2018 18:22:12 +0000 (20:22 +0200)]
Cleanup: variable naming

17 months agoBLI_bitmap: 2D triangle drawing function
Campbell Barton [Sat, 21 Apr 2018 16:34:34 +0000 (18:34 +0200)]
BLI_bitmap: 2D triangle drawing function

Matching polygon filling but no need for allocation or qsort.

17 months agoBLI math: clamped barycentric weight calculation
Campbell Barton [Sat, 21 Apr 2018 16:34:20 +0000 (18:34 +0200)]
BLI math: clamped barycentric weight calculation

18 months agoFix: D3160 fixed blednerplayer stub.s for unix
Gaia Clary [Fri, 20 Apr 2018 21:34:54 +0000 (23:34 +0200)]
Fix: D3160 fixed blednerplayer stub.s for unix

18 months agoCleanup (followup commit for D3160)
Gaia Clary [Fri, 20 Apr 2018 13:09:56 +0000 (15:09 +0200)]
Cleanup (followup commit for D3160)

Added some spaces to keep the eInsertKeyFlags enumeration proper

18 months agoFix: D3160 Propose to use proper typedefs to avoid confusion
Gaia Clary [Wed, 18 Apr 2018 16:21:27 +0000 (18:21 +0200)]
Fix: D3160 Propose to use proper typedefs to avoid confusion

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

18 months agoFix usage of lib filepath in previous own commit...
Bastien Montagne [Fri, 20 Apr 2018 09:00:12 +0000 (11:00 +0200)]
Fix usage of lib filepath in previous own commit...

18 months agoAdd debug tool to check validity of current file *before* saving.
Bastien Montagne [Wed, 18 Apr 2018 16:22:18 +0000 (18:22 +0200)]
Add debug tool to check validity of current file *before* saving.

It is hidden behind the --debug-io flag for now.

Idea is to try to catch broken libraries state in current Main before we
actually write the file on disk, should help catching and understanding
what happens in Spring corruption cases.

18 months agoVSE Effects: Wipe box: fix compilation errors
Aaron Carlisle [Thu, 19 Apr 2018 22:41:06 +0000 (18:41 -0400)]
VSE Effects: Wipe box: fix compilation errors

This is still broken I cant tell if it is the fact that the in_band
funtion does not work properally or an issue in the box algorithm, or
both.

It seems like the calculation of the size of the box while roatated
needs to be fixed also.

18 months agoCleanup: make variable name English
Campbell Barton [Thu, 19 Apr 2018 16:10:51 +0000 (18:10 +0200)]
Cleanup: make variable name English

18 months agoCleanup: rename vlak -> poly
Campbell Barton [Thu, 19 Apr 2018 16:08:55 +0000 (18:08 +0200)]
Cleanup: rename vlak -> poly

18 months agoCleanup: rename Icon.type -> id_type
Campbell Barton [Thu, 19 Apr 2018 10:52:32 +0000 (12:52 +0200)]
Cleanup: rename Icon.type -> id_type

Confusing when adding non-id icons.

18 months agoPort particle instance modifier changes from Gooseberry branch
Sergey Sharybin [Wed, 18 Apr 2018 10:14:28 +0000 (12:14 +0200)]
Port particle instance modifier changes from Gooseberry branch

The work is mainly from Lukas Toenne, with some modifications from myself.

Includes following obvious changes:

- Particle system selection is now name-based, with lookup menu.
- Lots of new options to control varieties.

Changes comparing to the Gooseberry branch:

- Default values and versioning code ensures same behavior as the
  old modifier.

- Custom data layers are coming from vertex color, the modifier
  does not create arbitrary layers now. The hope is to keep data
  more manageable, and maybe make it easier to select in the shader
  later on.

  This means, values are quantized to 256 values, but it should be
  enough to get varieties in practice.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Subscribers: eyecandy

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

18 months agoCleanup: style
Campbell Barton [Thu, 19 Apr 2018 06:18:16 +0000 (08:18 +0200)]
Cleanup: style

18 months agoUndo: add missing flag for text delete
Campbell Barton [Thu, 19 Apr 2018 06:16:37 +0000 (08:16 +0200)]
Undo: add missing flag for text delete

18 months agoDepsgraph: Fix missinf relation for particle instance modifier
Sergey Sharybin [Wed, 18 Apr 2018 11:54:02 +0000 (13:54 +0200)]
Depsgraph: Fix missinf relation for particle instance modifier

Was causing lack of animation update when particle system had simulation,

18 months agoCleanup: Trailing whitespace
Sergey Sharybin [Wed, 18 Apr 2018 10:04:58 +0000 (12:04 +0200)]
Cleanup: Trailing whitespace

18 months agoRemove irrelevant print statement
Sybren A. Stüvel [Wed, 18 Apr 2018 10:22:58 +0000 (12:22 +0200)]
Remove irrelevant print statement

This statement is only relevant in 2.8, but causes confusion in master.
I kept the 'default' label to prevent compiler warnings about unhandled
cases. The break is needed because there should be at least one statement
after 'default'.

18 months agoParticles: Interpolate size for interpolated children
Sergey Sharybin [Wed, 18 Apr 2018 08:52:27 +0000 (10:52 +0200)]
Particles: Interpolate size for interpolated children

This finally allows us to use Random factor to add variations to the
interpolated children. This feature never worked since 2007L there was
random factor slider in the interface, but it was only used by simple
children. Now it has affect on interpolated children as well.

Technically, this will break compatibility if older file had random
factor set to something else than 0 (default value is 0 though). But
we are leaving 2.7 series, so can accept such breackage in the name
of supported features.

18 months agoFix makesdna not respecting C++ comments
Julian Eisel [Tue, 17 Apr 2018 22:29:53 +0000 (00:29 +0200)]
Fix makesdna not respecting C++ comments

Tab after C++ comment broke parsing and didn't remove the line at all.
Was there since 2002 at least, probably confused some peeps.

This means commented out code was actually written to SDNA.

18 months agobpy consistency fix handler_add(handle)
Dalai Felinto [Tue, 17 Apr 2018 10:29:24 +0000 (12:29 +0200)]
bpy consistency fix handler_add(handle)

This doesn't change the API, so it doesn't affect any script.
However it give more consistent error messages.

18 months agobpy blf api example update
Dalai Felinto [Tue, 17 Apr 2018 10:25:51 +0000 (12:25 +0200)]
bpy blf api example update

With changes from Campbell Barton as well.

18 months agoFix (unreported) RNA sometimes trying to get named sub-props from non-Group IDProp.
Bastien Montagne [Tue, 17 Apr 2018 09:59:14 +0000 (11:59 +0200)]
Fix (unreported) RNA sometimes trying to get named sub-props from non-Group IDProp.

Why exactly this happens remains unclear, found that in the
autumn.blenrig file of Spring production while working on static
overrides... Tons of ugly IDProps in that rig. xD

18 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 16:13:48 +0000 (18:13 +0200)]
Cleanup: indentation

18 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:16:29 +0000 (17:16 +0200)]
Cleanup: indentation

18 months agoCleanup: indentation
Campbell Barton [Mon, 16 Apr 2018 15:08:27 +0000 (17:08 +0200)]
Cleanup: indentation

18 months agoBKE_context: macro to access ID's while looping
Campbell Barton [Mon, 16 Apr 2018 14:19:16 +0000 (16:19 +0200)]
BKE_context: macro to access ID's while looping

18 months agoDepsgraph: Pull indirect relations via driver targets
Sergey Sharybin [Mon, 16 Apr 2018 14:12:15 +0000 (16:12 +0200)]
Depsgraph: Pull indirect relations via driver targets

18 months agoMake ID icons safe for deletion from threads
Sergey Sharybin [Fri, 13 Apr 2018 11:52:37 +0000 (13:52 +0200)]
Make ID icons safe for deletion from threads

Added a lock-free deferred queue for deletion. Now if ID icon
is requested to be freed from non-main thread, it will be added
to the deferred list. Actual deletion will happen later from main
thread.

Currently actual deletion only happens next time BKE_icon_id_delete()
is called, which might not be enough. But it's easy to enforce
deferred deletion.

Icons for preview images are not covered by deferred deletion yet.

Reviewers: mont29

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

18 months agoAdded lock-free single linked list implementation
Sergey Sharybin [Fri, 13 Apr 2018 11:31:55 +0000 (13:31 +0200)]
Added lock-free single linked list implementation

Only supports lock-free insertion for now, can not delete element
or traverse the list at the same time.

18 months agoDisable Feature Collada: Tests do not work on unix
Gaia Clary [Mon, 16 Apr 2018 07:55:05 +0000 (09:55 +0200)]
Disable Feature Collada: Tests do not work on unix

The tests as they are now make string comparisons. This only works
on Windows because the reference files look different for different
operating systems because of different number formatting.
The collada tests need a complete rework (wip)

18 months agoLogging: edits to build on macOS
Campbell Barton [Mon, 16 Apr 2018 05:38:11 +0000 (07:38 +0200)]
Logging: edits to build on macOS

18 months agoCleanup: skip redundant edit-bone select lookups
Campbell Barton [Sun, 15 Apr 2018 19:45:19 +0000 (21:45 +0200)]
Cleanup: skip redundant edit-bone select lookups

18 months agoPydoc: Fix multiple bpy.type modules
Aaron Carlisle [Sun, 15 Apr 2018 15:42:52 +0000 (11:42 -0400)]
Pydoc: Fix multiple bpy.type modules

18 months agoCleanup: remove redundant args from ebone picking
Campbell Barton [Sun, 15 Apr 2018 10:45:39 +0000 (12:45 +0200)]
Cleanup: remove redundant args from ebone picking

Make this match editmesh picking more closely

18 months agoCleanup: remove bad casts
Campbell Barton [Sun, 15 Apr 2018 09:57:49 +0000 (11:57 +0200)]
Cleanup: remove bad casts

18 months agoCleanup: ED_armature naming
Campbell Barton [Sun, 15 Apr 2018 09:45:51 +0000 (11:45 +0200)]
Cleanup: ED_armature naming

- Wasn't clear which functions handle edit-bones.
- Mixed both ebone and edit_bone in names.
- Didn't use ED_armature_* prefix for public API.

See P655 to apply to branches.

18 months agoCleanup: remove undoing access, minor formatting
Campbell Barton [Sun, 15 Apr 2018 08:48:50 +0000 (10:48 +0200)]
Cleanup: remove undoing access, minor formatting

Access to undoing state isn't needed,
some text insert code was overly compacted.

18 months agoFix T54593: Py text edits crash (undo regression)
Campbell Barton [Sun, 15 Apr 2018 08:34:41 +0000 (10:34 +0200)]
Fix T54593: Py text edits crash (undo regression)

18 months agoFix compiler error in Windows
Antonio Vazquez [Sat, 14 Apr 2018 14:24:06 +0000 (16:24 +0200)]
Fix compiler error in Windows

18 months agoFix T54527: Misleading Tooltip on Snap Target Menu
Aaron Carlisle [Sat, 14 Apr 2018 22:26:27 +0000 (18:26 -0400)]
Fix T54527: Misleading Tooltip on Snap Target Menu

18 months agoPydocs: Expand bge.contraint docs
Aaron Carlisle [Thu, 29 Mar 2018 22:18:04 +0000 (18:18 -0400)]
Pydocs: Expand bge.contraint docs

Takes information from the manual and dumps it here.

18 months agoCleanup: style
Campbell Barton [Sat, 14 Apr 2018 20:26:12 +0000 (22:26 +0200)]
Cleanup: style

18 months agoCleanup: use const for BKE_object args
Campbell Barton [Sat, 14 Apr 2018 12:27:38 +0000 (14:27 +0200)]
Cleanup: use const for BKE_object args

18 months agoLogging: replace 'fwrite' w/ 'write'
Campbell Barton [Sat, 14 Apr 2018 11:59:33 +0000 (13:59 +0200)]
Logging: replace 'fwrite' w/ 'write'

We're already buffing output, so use write directly.

18 months agoCleanup: rename WriteData struct members.
Campbell Barton [Sat, 14 Apr 2018 11:17:11 +0000 (13:17 +0200)]
Cleanup: rename WriteData struct members.

Relationship between tot/count/buf wasn't clear.

Also use doxy sections.

18 months agoUndo: refactor memfile writing
Campbell Barton [Sat, 14 Apr 2018 10:33:19 +0000 (12:33 +0200)]
Undo: refactor memfile writing

- Move static undo variable into 'WriteData',
  'memfile_chunk_add' used arguments in a confusing way,
  sometimes to set/clear static var.

- Replace checks for 'wd->current' with 'wd->use_memfile'
  move memfile vars into 'wd->mem' struct.

18 months agoFix T54568: Undo memory de-duplication failed
Campbell Barton [Sat, 14 Apr 2018 10:30:14 +0000 (12:30 +0200)]
Fix T54568: Undo memory de-duplication failed

Error in 651b8fb14e caused de-duplication to fail.

18 months agoRemove editor type selector from File Browser when in 'Operator' mode.
Bastien Montagne [Fri, 13 Apr 2018 10:11:56 +0000 (12:11 +0200)]
Remove editor type selector from File Browser when in 'Operator' mode.

Having that one when opening a file or loading some lib makes absolutely
no sense, and switching that 'temp' editor to some other type can
trigger all kind of funny bugs...

Note that using the shortcuts keys (Shift-F5 etc.) is still possible,
removing those seems a bit more involved. :/

18 months agoFix: Follow up to 16b795cb95c
Joshua Leung [Thu, 12 Apr 2018 13:42:55 +0000 (15:42 +0200)]
Fix: Follow up to 16b795cb95c

It's not just the Graph Editor that needed this - the NLA also uses similar code
and thus suffers from a similar problem.

(My first commit from the Blender Institute v2.0 - Just testing that everything works)

18 months agoMoved vectorblur code from render to compositor
Jeroen Bakker [Thu, 12 Apr 2018 08:27:38 +0000 (10:27 +0200)]
Moved vectorblur code from render to compositor

In preparation of the removal of blender internal render we
moved the vectorblur code that was placed in the render package
(legacy) to the compositor. The compositor is only using this
code even the blender internal renderer did not use the code at
all.

18 months agoChanged assertion of '..' in file browser entries
Sybren A. Stüvel [Wed, 11 Apr 2018 13:06:42 +0000 (15:06 +0200)]
Changed assertion of '..' in file browser entries

The previous assert assumed '..' is always there, which isn't necessarily
true (for example when in the root of an Asset Engine repository).

The new code asserts that if '..' is present it should be the first entry
(rather than forcing the first entry to be '..').

18 months agofix T54549: Vector Transform node in wrong nodeclass
Philipp Oeser [Tue, 10 Apr 2018 07:50:25 +0000 (09:50 +0200)]
fix T54549: Vector Transform node in wrong nodeclass

the Vector Transform node was added to the "Vector" category in
nodeitems_builtins.py
but was using the "NODE_CLASS_CONVERTOR" internally (thus using e.g. the
'wrong' theme color)

thanx @dingto for review

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

18 months agoPose Mode: pass object to mode enter/exit
Campbell Barton [Wed, 11 Apr 2018 07:20:29 +0000 (09:20 +0200)]
Pose Mode: pass object to mode enter/exit

Also add lower level mode exit function

18 months agoCleanup: minor changes to pose-mode switching API
Campbell Barton [Wed, 11 Apr 2018 06:53:59 +0000 (08:53 +0200)]
Cleanup: minor changes to pose-mode switching API

Prepare for multi-object pose mode

18 months agoCleanup: remove unused flag
Campbell Barton [Tue, 10 Apr 2018 18:13:31 +0000 (20:13 +0200)]
Cleanup: remove unused flag

18 months agoFix transform nearest axis check
Campbell Barton [Tue, 10 Apr 2018 14:13:32 +0000 (16:13 +0200)]
Fix transform nearest axis check

Was mixing up global/local coords

18 months agoDepsgraph: Build relations for objects linked via pchan constraints
Sergey Sharybin [Tue, 10 Apr 2018 09:56:20 +0000 (11:56 +0200)]
Depsgraph: Build relations for objects linked via pchan constraints

This is similar to previous fix for missing ID nodes, just the original
fix missed this part of change because it looked like it is already
happening.

18 months agoFix T54423: Messages from RNA_property_editable_info() were not translatable.
Bastien Montagne [Tue, 10 Apr 2018 08:22:40 +0000 (10:22 +0200)]
Fix T54423: Messages from RNA_property_editable_info() were not translatable.