3 years agoCleanup: quiet GCC -Wtype-limits
Campbell Barton [Mon, 14 May 2018 06:58:09 +0000 (08:58 +0200)]
Cleanup: quiet GCC -Wtype-limits

While the warning can normally be disabled, we don't have have as much
control of warnings when macros are used.

3 years agoBLI_utildefines: re-ordering array delete macro
Campbell Barton [Mon, 14 May 2018 05:37:17 +0000 (07:37 +0200)]
BLI_utildefines: re-ordering array delete macro

3 years agoCleanup: trailing space
Campbell Barton [Sun, 13 May 2018 04:44:03 +0000 (06:44 +0200)]
Cleanup: trailing space

3 years agoCleanup: modifier arg wrapping
Campbell Barton [Sat, 12 May 2018 06:04:56 +0000 (08:04 +0200)]
Cleanup: modifier arg wrapping

3 years agoPlatform: macOS. Allow building on directory with whitespace (For example /Volumes...
Arto Kitula [Fri, 11 May 2018 18:56:13 +0000 (21:56 +0300)]
Platform: macOS. Allow building on directory with whitespace (For example /Volumes/External HD/blender-build)

3 years agoEditMesh: remove duplicate rip macro
Campbell Barton [Fri, 11 May 2018 18:02:12 +0000 (20:02 +0200)]
EditMesh: remove duplicate rip macro

Change the fill setting in the keymap,
this allows tool access the macro with either setting.

3 years agoWM: initialize last used macro properties
Campbell Barton [Fri, 11 May 2018 18:01:51 +0000 (20:01 +0200)]
WM: initialize last used macro properties

3 years agoFix (unreported) broken freeing code for Sequencer.
Bastien Montagne [Fri, 11 May 2018 09:21:30 +0000 (11:21 +0200)]
Fix (unreported) broken freeing code for Sequencer.

Freeing sequencer would always do usercount, which is now forbidden when
called from main ID freeing code.

Annoying in 2.7x, much more critical issue in 2.8!

Also, moved RNA sequencer API functions to proper rna_scene_api.c file.

3 years agoFix (unreported) load image code calling icin/preview update from non-Main thread.
Bastien Montagne [Fri, 11 May 2018 08:48:04 +0000 (10:48 +0200)]
Fix (unreported) load image code calling icin/preview update from non-Main thread.

Icin/preview only works in main thread, while image loading can be done
from others too... This could have generated random crashes and such.

3 years agoFix broken 'check/validate libs' code with indirect libs.
Bastien Montagne [Wed, 9 May 2018 13:46:22 +0000 (15:46 +0200)]
Fix broken 'check/validate libs' code with indirect libs.

Readcode always set relative paths of indirectly linked libs relative to
*current* .blend file, not to the library using it.

But BKE_library_filepath_set was then setting them relative to their
parent library, breaking checking code (and saved files even :((( ).

3 years agoFix T54992: Lattice modifier on another Lattice object does not take the
Philipp Oeser [Tue, 8 May 2018 09:05:42 +0000 (11:05 +0200)]
Fix T54992: Lattice modifier on another Lattice object does not take the
Influence vertexgroup into account

3 years agoFix T54997: simple typo in property description
Philipp Oeser [Wed, 9 May 2018 12:26:47 +0000 (14:26 +0200)]
Fix T54997: simple typo in property description

3 years agoFix (unreported) bug in BVHTree 'free tessfaces' flag setting.
Bastien Montagne [Wed, 9 May 2018 10:33:21 +0000 (12:33 +0200)]
Fix (unreported) bug in BVHTree 'free tessfaces' flag setting.

Could lead to atempt to free NULL pointer, and/or memory leak.

3 years agoMSVC: resolve near/far issue take2
Campbell Barton [Wed, 9 May 2018 09:20:12 +0000 (11:20 +0200)]
MSVC: resolve near/far issue take2

Previous fix failed w/ compositor,
tested on MSVC2015, full build.

3 years agoMSVC: remove hack for near/far name collision
Campbell Barton [Wed, 9 May 2018 08:00:55 +0000 (10:00 +0200)]
MSVC: remove hack for near/far name collision

windows headers define these, conflicting w/ View3D.near/far.

3 years agoColor: Combine/Separate YCbCrA node default to rec. 709
Aaron Carlisle [Wed, 9 May 2018 02:24:58 +0000 (22:24 -0400)]
Color: Combine/Separate YCbCrA node default to rec. 709

This commit is part of T54798

Differential Revision:

3 years agoCleanup: includes
Campbell Barton [Tue, 8 May 2018 16:01:47 +0000 (18:01 +0200)]
Cleanup: includes

3 years agoCleanup: move mesh conversion into own function
Campbell Barton [Tue, 8 May 2018 15:44:54 +0000 (17:44 +0200)]
Cleanup: move mesh conversion into own function

3 years agoFix building with latest versions of ffmpeg.
Bastien Montagne [Tue, 8 May 2018 14:00:52 +0000 (16:00 +0200)]
Fix building with latest versions of ffmpeg.

Some years-old deprecated stuff has now been removed.

Correct solution is probably to use valid defines etc. in own code, but
this is more FFMEPG maintainer task (since it also may change how old
FFMPEG we do support...).

3 years agoFix (unreported) bloody modifiers messing with ID user count in copy.
Bastien Montagne [Tue, 8 May 2018 13:27:10 +0000 (15:27 +0200)]
Fix (unreported) bloody modifiers messing with ID user count in copy.

User count of IDs is handled by higher-level, generic function,
low-level copydata functions *MUST NOT* touch them anymore, ever!

3 years agoCleanup: Nuke empty dummy wrappers around modifier_copyData_generic().
Bastien Montagne [Tue, 8 May 2018 13:04:10 +0000 (15:04 +0200)]
Cleanup: Nuke empty dummy wrappers around modifier_copyData_generic().

This also changes signature of modifier copy callback, first (source)
parameter is now a const, which is saner anyway!

3 years agoModifiers: sanitize/cleanup modifiers' copying & freeing code.
Bastien Montagne [Tue, 8 May 2018 12:21:02 +0000 (14:21 +0200)]
Modifiers: sanitize/cleanup modifiers' copying & freeing code.

Should also fix T55000: Crash with hooks and curves in Cycles render.

3 years agoCleanup: quiet -Warray-bounds warning
Campbell Barton [Tue, 8 May 2018 11:32:52 +0000 (13:32 +0200)]
Cleanup: quiet -Warray-bounds warning

3 years agoTracking: Use bmain from context
Sergey Sharybin [Tue, 8 May 2018 09:58:42 +0000 (11:58 +0200)]
Tracking: Use bmain from context

3 years agoCleanup: remove unused wmReport struct
Campbell Barton [Tue, 8 May 2018 05:52:13 +0000 (07:52 +0200)]
Cleanup: remove unused wmReport struct

3 years agoFix (unreported) memleak when copying object with some modifiers.
Bastien Montagne [Mon, 7 May 2018 15:58:35 +0000 (17:58 +0200)]
Fix (unreported) memleak when copying object with some modifiers.

3 years agoCleanup: rename char/float conversion functions
Campbell Barton [Mon, 7 May 2018 15:31:28 +0000 (17:31 +0200)]
Cleanup: rename char/float conversion functions

- FTOCHAR       -> unit_float_to_uchar_clamp
- F3TOCHAR3     -> unit_float_to_uchar_clamp_v3 (swap args)
- F4TOCHAR4     -> unit_float_to_uchar_clamp_v4 (swap args)
- FTOUSHORT     -> unit_float_to_ushort_clamp
- USHORTTOUCHAR -> unit_ushort_to_uchar

3 years agoCleanup: move unit char/short/float to functions
Campbell Barton [Mon, 7 May 2018 15:14:28 +0000 (17:14 +0200)]
Cleanup: move unit char/short/float to functions

This caused GCC 8.1 to crash at build time,
but was also not very nice use of macros.

3 years agoFix Movieclip editors 'graph' and 'dopesheet' view using themes region
Philipp Oeser [Mon, 7 May 2018 12:57:05 +0000 (14:57 +0200)]
Fix Movieclip editors 'graph' and 'dopesheet' view using themes region
background setting

mentioned in T54942

Reviewed By: campbellbarton

Differential Revision:

3 years agoFix T54525: crash when setting number of frames to use between dupoff
Philipp Oeser [Mon, 7 May 2018 12:49:09 +0000 (14:49 +0200)]
Fix T54525: crash when setting number of frames to use between dupoff

caused division by zero if both dupli_frames_on and dupli_frames_off are
zero. doing this doesnt seem useful, dupliframes can be disabled in
other ways.

Reviewed By: campbellbarton

Differential Revision:

3 years agoMore tweaks to strict compiler flags
Sergey Sharybin [Mon, 7 May 2018 12:28:22 +0000 (14:28 +0200)]
More tweaks to strict compiler flags

3 years agoSilence compilation error around possible fall-through
Sergey Sharybin [Mon, 7 May 2018 12:19:12 +0000 (14:19 +0200)]
Silence compilation error around possible fall-through

3 years agoFix wrong comparison of drop target URI on X11
Sergey Sharybin [Mon, 7 May 2018 12:08:33 +0000 (14:08 +0200)]
Fix wrong comparison of drop target URI on X11

Need to compare, NOT to override passed file name.

3 years agoFix Bevel percent mode bug 54228
Howard Trickey [Mon, 7 May 2018 11:04:12 +0000 (07:04 -0400)]
Fix Bevel percent mode bug 54228

Previous new adjust pass commit should have excluded percent mode.

3 years agoFix T54324: remove stencil entries from weight paint keymap
Philipp Oeser [Mon, 7 May 2018 10:28:15 +0000 (12:28 +0200)]
Fix T54324: remove stencil entries from weight paint keymap

Reviewed By: mont29

Differential Revision:

3 years agoFix T54594: Lattice with Armature modifier not updating correctly
Sergey Sharybin [Mon, 7 May 2018 10:04:50 +0000 (12:04 +0200)]
Fix T54594: Lattice with Armature modifier not updating correctly

3 years agoFix T54966: mathutils.noise.voronoi Memory leak
Bastien Montagne [Mon, 7 May 2018 09:07:11 +0000 (11:07 +0200)]
Fix T54966: mathutils.noise.voronoi Memory leak

C code was not correctly handling release of temp data, not technically
a memory leak, but indeed rather annoying bug! ;)

3 years agoNodes: show node labels (like image name) in material properties node view.
Brecht Van Lommel [Mon, 19 Feb 2018 13:39:27 +0000 (14:39 +0100)]
Nodes: show node labels (like image name) in material properties node view.

3 years agoCleanup: split rotation_from_view
Campbell Barton [Sun, 6 May 2018 16:32:18 +0000 (18:32 +0200)]
Cleanup: split rotation_from_view

Add a function that takes only a quat, instead of the 3D view.

Allows for using non-view orientations.

3 years agoObject Snap: add object & matrix to view ray cast
Campbell Barton [Sun, 6 May 2018 13:56:09 +0000 (15:56 +0200)]
Object Snap: add object & matrix to view ray cast

Some snap functions already exposed this.

3 years agoWM: include macros in last-properties
Campbell Barton [Sun, 6 May 2018 06:54:58 +0000 (08:54 +0200)]
WM: include macros in last-properties

Needed for 2.8 tool system storage of macro properties.

3 years agoIDProp API: use stored string length for IDP_repr
Campbell Barton [Sun, 6 May 2018 06:45:54 +0000 (08:45 +0200)]
IDProp API: use stored string length for IDP_repr

Also NULL check ID pointers.

3 years agoFix T54801: incorrect render with zero weight transparent BSDFs.
Brecht Van Lommel [Sat, 5 May 2018 23:24:53 +0000 (01:24 +0200)]
Fix T54801: incorrect render with zero weight transparent BSDFs.

3 years agoIDProp API: add native C repr function
Campbell Barton [Sat, 5 May 2018 12:27:54 +0000 (14:27 +0200)]
IDProp API: add native C repr function

Was using Python which wasn't very efficient (even for logging).

3 years agoPyAPI: add pop method to RNA struct types
Campbell Barton [Sat, 5 May 2018 07:53:30 +0000 (09:53 +0200)]
PyAPI: add pop method to RNA struct types

This fits in with existing dict style access.

3 years agoIDProp Py API: Add default argument to pop
Campbell Barton [Sat, 5 May 2018 07:48:06 +0000 (09:48 +0200)]
IDProp Py API: Add default argument to pop

Match dict.pop behavior.

3 years agoIDProp API: Avoid redundant group replace lookup
Campbell Barton [Sat, 5 May 2018 07:31:17 +0000 (09:31 +0200)]
IDProp API: Avoid redundant group replace lookup

3 years agoBKE: bvhuils: remove member `sphere_radius`.
Germano [Fri, 4 May 2018 14:57:01 +0000 (11:57 -0300)]
BKE: bvhuils: remove member `sphere_radius`.

This member currently doubles the value of `ray->radius` or is not even used.

3 years agoFix erroe in previous commit.
Germano [Fri, 4 May 2018 14:22:50 +0000 (11:22 -0300)]
Fix erroe in previous commit.

3 years agoBKE: bvhutils: Unifies static functions oh bvhtrees creation.
Germano [Fri, 4 May 2018 14:15:21 +0000 (11:15 -0300)]
BKE: bvhutils: Unifies static functions oh bvhtrees creation.

3 years agoCleanup: Remove G.main from framechange_poses_clear_unkeyed()
Sergey Sharybin [Fri, 4 May 2018 12:57:31 +0000 (14:57 +0200)]
Cleanup: Remove G.main from framechange_poses_clear_unkeyed()

3 years agoBKE: Smoke: Fix error with implicit declaration of function due recent changes.
Germano [Fri, 4 May 2018 13:11:30 +0000 (10:11 -0300)]
BKE: Smoke: Fix error with implicit declaration of function due recent changes.

3 years agoBKE: BVHtree: Replace all external references of `bvhtree_from_mesh_looptri` with...
Germano [Fri, 4 May 2018 12:21:42 +0000 (09:21 -0300)]
BKE: BVHtree: Replace all external references of `bvhtree_from_mesh_looptri` with `bvhtree_from_mesh_get`.

3 years 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.

3 years 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.

3 years 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

3 years 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`.

3 years 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.

3 years 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.

3 years 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.

3 years 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

3 years 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.

3 years 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

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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.

3 years 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

3 years 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.

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

3 years 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.

3 years 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.

3 years 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!

3 years 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.

3 years 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:

3 years 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.

3 years 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.

3 years 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

3 years 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.

3 years 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`

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

3 years 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

3 years 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

3 years 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

3 years 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.

3 years 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)

3 years 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.

3 years 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!

3 years 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.

3 years 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

3 years 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".

3 years 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.

3 years 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.

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

3 years 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
* 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...

3 years 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

3 years 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.

3 years 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.

3 years 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.