blender.git
19 months agoMesh Remap: Face Corner Data: Do not use large epsilon values to create bvhtrees.
Germano [Fri, 4 May 2018 12:01:56 +0000 (09:01 -0300)]
Mesh Remap: Face Corner Data: Do not use large epsilon values to create bvhtrees.

Use ray radius instead.

19 months agoMesh Remap: Face Data: Do not use large epsilon values to create bvhtree.
Germano [Fri, 4 May 2018 11:29:00 +0000 (08:29 -0300)]
Mesh Remap: Face Data: Do not use large epsilon values to create bvhtree.

If you need the approximation, use raycast radius.

19 months agoDepsgraph: Fix extra operations and relations created for shared armatures
Sergey Sharybin [Fri, 4 May 2018 10:49:28 +0000 (12:49 +0200)]
Depsgraph: Fix extra operations and relations created for shared armatures

19 months agoMesh Remap: Change the sphere_radius parameter instead of creating a bvhtree with...
Germano [Fri, 4 May 2018 10:43:08 +0000 (07:43 -0300)]
Mesh Remap: Change the sphere_radius parameter instead of creating a bvhtree with epsilon equal to the value of ray_radius.

This is the desirable behavior.
It also removes one more use of `bvhtree_from_mesh_looptri`.

19 months agoConstraint: Shrink Warp: Replace `bvhtree_from_mesh_looptri` with` bvhtree_from_mesh_...
Germano [Fri, 4 May 2018 10:39:07 +0000 (07:39 -0300)]
Constraint: Shrink Warp: Replace `bvhtree_from_mesh_looptri` with` bvhtree_from_mesh_get`.

The value of epsilon was never used to create this bvhtree because whenever we activate this constraint, a bvhtree with parameter epsilon 0.0 was created and cached.

19 months agoMesh Lapacian: Use `isect_ray_tri_watertight_v3` instead of Epsilons to prevent corne...
Germano [Fri, 4 May 2018 10:33:26 +0000 (07:33 -0300)]
Mesh Lapacian: Use `isect_ray_tri_watertight_v3` instead of Epsilons to prevent corners errors in raycast.

Using FLT_EPSILON can fail with large coordinate values.
This commit also avoids storing bvhtrees with different settings in BVHCache.

19 months agoFix T54935: Particle group instances don't render when hidden in viewport
Sergey Sharybin [Fri, 4 May 2018 09:40:27 +0000 (11:40 +0200)]
Fix T54935: Particle group instances don't render when hidden in viewport

Seems to be only related on linked nature of particles.

This is caused by some conflicting optimization done for viewport, which
does not do particles re-calculation if they do not depend on time
(which is crucial for big layout scene grass fields) and particle render
setting  switch which was relying on fact that render pipeline will do
particle update via time dependency.

Now we extent an old workaround for invisible objects, which now also
deals with particles in the same way as old dependency graph was dealing
with this: tag object data for update if there is particle system.

There shouldn't be any speed difference between old and new depsgraph,
since tagging was already needed and was happening.

In Blender 2.8 such things should be easier to deal with since the whole
depsgraph is to be evaluated for render engine anyway.

19 months agoFix T54341: Particle Instance Modifier doesn't preserve edge data
Philipp Oeser [Fri, 4 May 2018 07:20:57 +0000 (09:20 +0200)]
Fix T54341: Particle Instance Modifier doesn't preserve edge data

19 months agoFix wireframe modifier w/ even offset
Campbell Barton [Fri, 4 May 2018 06:38:01 +0000 (08:38 +0200)]
Fix wireframe modifier w/ even offset

Was passing non-normalized axis to angle_on_axis.

19 months agoLogging: setting log level wasn't working
Campbell Barton [Fri, 4 May 2018 06:00:22 +0000 (08:00 +0200)]
Logging: setting log level wasn't working

19 months agoIDProp API: expose repr utility function
Campbell Barton [Fri, 4 May 2018 05:26:42 +0000 (07:26 +0200)]
IDProp API: expose repr utility function

Useful for logging properties passed to operators.

19 months agoBKE: BVHtree: make `bvhtree_from_mesh_edges` a static function.
Germano [Thu, 3 May 2018 21:33:16 +0000 (18:33 -0300)]
BKE: BVHtree: make `bvhtree_from_mesh_edges` a static function.

This will help us have more control over bvhtrees that are cached.

19 months agoFix `Transfer Mesh Data` with `Edge Mapping` of type `Projected Edge Interpolated...
Germano [Thu, 3 May 2018 21:19:36 +0000 (18:19 -0300)]
Fix `Transfer Mesh Data` with `Edge Mapping` of type `Projected Edge Interpolated` and `Ray Radius` other than 0.0.

`MREMAP_RAYCAST_APPROXIMATE_BVHEPSILON(ray_radius)` greatly increased the radius making for example that 0.1 becoming 1.5
Now the result is much more predictable.

19 months agoParticle Edit: Shape Cut: Create and use bvhtree with AABB hull.
Germano [Thu, 3 May 2018 18:52:09 +0000 (15:52 -0300)]
Particle Edit: Shape Cut: Create and use bvhtree with AABB hull.

This bvhtree is only used for raycast. Currently the raycast does not benefit from general hull.

19 months agoDynamic Paint: Create and use bvhtree with AABB hull.
Germano [Thu, 3 May 2018 18:50:48 +0000 (15:50 -0300)]
Dynamic Paint: Create and use bvhtree with AABB hull.

This bvhtree is only used for raycast and find_nearest which currently do not benefit from general hull.

19 months agoFix T54927: BMesh Py error w/ select history slice
Campbell Barton [Thu, 3 May 2018 18:23:32 +0000 (20:23 +0200)]
Fix T54927: BMesh Py error w/ select history slice

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

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

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

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

19 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!

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

19 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

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

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

19 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

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

19 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`

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

19 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

19 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

19 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

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

19 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)

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

19 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!

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

19 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

19 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".

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

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

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

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

19 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

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

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

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

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

19 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

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

19 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

19 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

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

19 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)

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

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

19 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

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

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

19 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

19 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

19 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

19 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

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

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

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

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

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

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

19 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

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

19 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

19 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,

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

19 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'.

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

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

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

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

19 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

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

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

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

19 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

19 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

19 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

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

19 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)

19 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

19 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

19 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

19 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

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

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

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

19 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)

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

19 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

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

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