Campbell Barton
433aaa8c2e
Cleanup: remove unused wmReport struct
2018-05-08 07:52:13 +02:00
Bastien Montagne
c09e22306a
Fix (unreported) memleak when copying object with some modifiers.
2018-05-07 17:59:23 +02:00
Campbell Barton
f74d85ffc8
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
2018-05-07 17:51:40 +02:00
Campbell Barton
905eeb0bc7
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.
2018-05-07 17:50:25 +02:00
Philipp Oeser
66ec3c7e7f
Fix Movieclip editors 'graph' and 'dopesheet' view using themes region
...
background setting
mentioned in T54942
Reviewed By: campbellbarton
Differential Revision: https://developer.blender.org/D3200
2018-05-07 14:57:05 +02:00
Philipp Oeser
1f76e6c326
Fix T54525: crash when setting number of frames to use between dupoff
...
frames
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: https://developer.blender.org/D3132
2018-05-07 14:49:09 +02:00
Sergey Sharybin
6c243b7e40
More tweaks to strict compiler flags
2018-05-07 14:28:22 +02:00
Sergey Sharybin
592c3881ba
Silence compilation error around possible fall-through
2018-05-07 14:19:12 +02:00
Howard Trickey
cd3f5983cd
Fix Bevel percent mode bug 54228
...
Previous new adjust pass commit should have excluded percent mode.
2018-05-07 07:05:41 -04:00
Philipp Oeser
9eb5aa32b8
Fix T54324: remove stencil entries from weight paint keymap
...
Reviewed By: mont29
Differential Revision: http://developer.blender.org/D3178
2018-05-07 12:28:15 +02:00
Sergey Sharybin
ea1751a038
Fix T54594: Lattice with Armature modifier not updating correctly
2018-05-07 12:05:09 +02:00
Bastien Montagne
a3b4c3823c
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! ;)
2018-05-07 11:07:11 +02:00
Brecht Van Lommel
9bd2e9104a
Nodes: show node labels (like image name) in material properties node view.
2018-05-06 19:28:23 +02:00
Campbell Barton
046904e3fc
Cleanup: split rotation_from_view
...
Add a function that takes only a quat, instead of the 3D view.
Allows for using non-view orientations.
2018-05-06 18:32:18 +02:00
Campbell Barton
84474b0171
Object Snap: add object & matrix to view ray cast
...
Some snap functions already exposed this.
2018-05-06 15:56:09 +02:00
Campbell Barton
632f2b5c18
WM: include macros in last-properties
...
Needed for 2.8 tool system storage of macro properties.
2018-05-06 08:57:53 +02:00
Campbell Barton
9e3bfd9210
IDProp API: use stored string length for IDP_repr
...
Also NULL check ID pointers.
2018-05-06 08:57:19 +02:00
Campbell Barton
d3b3df0371
IDProp API: add native C repr function
...
Was using Python which wasn't very efficient (even for logging).
2018-05-05 14:41:25 +02:00
Campbell Barton
d83681807e
PyAPI: add pop method to RNA struct types
...
This fits in with existing dict style access.
2018-05-05 09:53:30 +02:00
Campbell Barton
d2591e5c2d
IDProp Py API: Add default argument to pop
...
Match dict.pop behavior.
2018-05-05 09:48:06 +02:00
Campbell Barton
86c2c4d513
IDProp API: Avoid redundant group replace lookup
2018-05-05 09:31:17 +02:00
Germano
b27b4743a2
BKE: bvhuils: remove member sphere_radius.
...
This member currently doubles the value of `ray->radius` or is not even used.
2018-05-04 11:57:01 -03:00
Germano
02788a9d1a
Fix erroe in previous commit.
2018-05-04 11:22:50 -03:00
Germano
e78ef82827
BKE: bvhutils: Unifies static functions oh bvhtrees creation.
2018-05-04 11:15:21 -03:00
Sergey Sharybin
aa0380a6a5
Cleanup: Remove G.main from framechange_poses_clear_unkeyed()
2018-05-04 15:18:47 +02:00
Germano
78fde19e68
BKE: Smoke: Fix error with implicit declaration of function due recent changes.
2018-05-04 10:11:30 -03:00
Germano
aea637456e
BKE: BVHtree: Replace all external references of bvhtree_from_mesh_looptri with bvhtree_from_mesh_get.
2018-05-04 09:21:42 -03:00
Germano
3dd6912fce
Mesh Remap: Face Corner Data: Do not use large epsilon values to create bvhtrees.
...
Use ray radius instead.
2018-05-04 09:01:56 -03:00
Germano
8c6a1d8f95
Mesh Remap: Face Data: Do not use large epsilon values to create bvhtree.
...
If you need the approximation, use raycast radius.
2018-05-04 08:29:00 -03:00
Sergey Sharybin
fa11dc6730
Depsgraph: Fix extra operations and relations created for shared armatures
2018-05-04 12:49:48 +02:00
Germano
b886cdf81d
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`.
2018-05-04 07:43:08 -03:00
Germano
3d26cf112b
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.
2018-05-04 07:39:07 -03:00
Germano
82d59c6588
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.
2018-05-04 07:33:26 -03:00
Sergey Sharybin
d1be30f779
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.
2018-05-04 11:40:27 +02:00
Philipp Oeser
288d7794d4
Fix T54341: Particle Instance Modifier doesn't preserve edge data
2018-05-04 09:20:57 +02:00
Campbell Barton
75b310f489
Fix wireframe modifier w/ even offset
...
Was passing non-normalized axis to angle_on_axis.
2018-05-04 08:38:01 +02:00
Campbell Barton
c7cfee04c4
Logging: setting log level wasn't working
2018-05-04 08:00:22 +02:00
Campbell Barton
f3c5b0394f
IDProp API: expose repr utility function
...
Useful for logging properties passed to operators.
2018-05-04 07:29:05 +02:00
Germano
16253285ff
BKE: BVHtree: make bvhtree_from_mesh_edges a static function.
...
This will help us have more control over bvhtrees that are cached.
2018-05-03 18:33:16 -03:00
Germano
133dadcdee
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.
2018-05-03 18:19:36 -03:00
Germano
7915cc7ddb
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.
2018-05-03 15:52:09 -03:00
Germano
98ecdc4896
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.
2018-05-03 15:50:48 -03:00
Campbell Barton
0f217de403
Fix T54927: BMesh Py error w/ select history slice
2018-05-03 20:23:32 +02:00
Campbell Barton
38b6f8e143
Cleanup: correct solidify logic
...
Code for side normals isn't executing at the moment,
so not essential, but better correct it.
2018-05-03 19:48:28 +02:00
Campbell Barton
5e225ddb21
Cleanup: parentheses warning
2018-05-03 19:37:20 +02:00
Germano
ac19483e63
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.
2018-05-03 14:26:39 -03:00
Bastien Montagne
a5d0597b92
Fix tooltip for constraints' subtarget.
...
Thanks @aligorith for the head-up.
2018-05-03 16:00:34 +02:00
Bastien Montagne
53c43259ad
Cleanup: factorize RNA constraint targets definition.
...
No expected changes in behavior from that commit!
2018-05-03 15:00:12 +02:00
Campbell Barton
0d6ddd0a1d
Cleanup: split out extrude spin/screw
...
Since these will have their own manipulators,
its more convenient to keep them separate.
2018-05-03 08:20:29 +02:00
Germano
522bee3fc8
Refactoring: bvhutils: Use a function that gets the bvhtree through an identifier type.
...
Reviewed By: @campbellbarton
Differential Revision: https://developer.blender.org/D3192
2018-05-01 10:03:28 -03:00