Campbell Barton
aaa99106fe
make IS_EQ and IS_EQF typecheck args
2013-11-10 14:13:26 +00:00
Lukas Toenne
61c411068b
Patch #37274 : Circle select for node editor, by Henrik Aarnio (hjaarnio).
...
Circle select was missing from node editor, and C key was assigned to now defunct "show cyclic dependencies". This patch remaps the key and adds circle select operator.
Functions to check intersection between rctf/rcti and a circle were also added to rct.c for code cleanliness and consistency.
2013-11-06 19:21:42 +00:00
Campbell Barton
f9d5bccb06
code cleanup: spelling
2013-10-31 23:52:44 +00:00
Campbell Barton
beae4f498d
code cleanup: spelling
2013-10-31 14:10:01 +00:00
Campbell Barton
48c1e0c0fc
spelling: use American spelling for canceled
2013-10-26 01:06:19 +00:00
Campbell Barton
a304b5a988
correct typo
2013-10-25 22:12:05 +00:00
Campbell Barton
c80c1c6f5c
add copy_v4_fl4, replace QUATSET macro.
2013-10-22 03:31:21 +00:00
Campbell Barton
6193963daa
style cleanup
2013-10-22 03:03:56 +00:00
Campbell Barton
7c8c49a34a
style cleanup
2013-10-21 23:35:08 +00:00
Sergey Sharybin
e9d5e9813c
Code cleanup: added generic function copt_m3_m3d
2013-10-20 12:08:51 +00:00
Sergey Sharybin
fc8b0ed5e5
Move utility functions from mball to mathutils
2013-10-18 23:38:51 +00:00
Irie Shinsuke
bf462838b3
Fix build failure with VS2012 + SCons, caused by redefinition of the bool type.
2013-10-17 06:40:35 +00:00
Sergey Sharybin
f0dcff9aa9
Task scheduler ported form CYcles to C
...
Replaces ThreadedWorker and is gonna to be used
for threaded object update in the future and
some more upcoming changes.
But in general, it's to be used for any task
based subsystem in Blender.
Originally written by Brecht, with some fixes
and tweaks by self.
2013-10-12 14:08:59 +00:00
Brecht Van Lommel
6d9ccbc28d
Further tweak for dual quaternion armature deform problem, tweak the epsilon
...
value to solve some more cases.
2013-10-12 12:54:09 +00:00
Campbell Barton
b6db417ee4
code cleanup: use const's for vector args.
2013-10-12 02:19:37 +00:00
Brecht Van Lommel
744f691af4
Fix dual quaternion armature deform giving erratic results in some cases. Bug
...
was encountered in a Kiribati rig file.
The problem was actually in the matrix to quaternion conversion function. One
problem is that it was using the wrong matrix indices in case of an ill defined
matrix trace. Besides that FLT_EPSILON was too small to detect cases where
float precision becomes a problem.
2013-10-12 00:08:34 +00:00
Campbell Barton
f895bc54cd
code cleanup: boxpack, pack struct and use unsigned ints
2013-10-11 00:22:00 +00:00
Campbell Barton
03602dc158
use BLI_bitmap for editmesh selection buffer to save some memory.
2013-10-10 22:30:16 +00:00
Campbell Barton
afab39b9d6
code cleanup: use const's for static arrays
2013-10-10 20:22:17 +00:00
Campbell Barton
e220d3228f
add MEM_SIZE_OPTIMAL to avoid memory fragmentation & waste lost to slop-space.
2013-10-10 18:18:13 +00:00
Campbell Barton
590f58d455
code cleanup: redundant includes and add minor comments.
2013-10-08 20:18:38 +00:00
Bastien Montagne
6631d4ddd5
Build fix (issue could happen with scons,reported by ebrain on IRC, thanks).
...
Var declared in an #ifdef DEBUG, but used in an #ifndef NDEBUG…
2013-10-07 07:39:58 +00:00
Campbell Barton
8ccf118058
rename overlap to holes for isect_point_poly_v2
2013-10-05 12:36:35 +00:00
Campbell Barton
48013e8a9c
more corrections to valgrind hinting.
2013-10-05 04:59:43 +00:00
Campbell Barton
2621d77f39
use valgrind hints for memarena for better debugging info when using valgrind.
...
also quiet a false positive in BLI_mempool_free().
2013-10-05 04:38:08 +00:00
Campbell Barton
0b1cf4c2ea
code cleanup: warnings and minor edits.
2013-10-04 17:47:58 +00:00
Campbell Barton
5dc9db3533
fix for lasso failing/glitches on overlapping lines, replace scanfill with 2d pixel filling for drawing and selection.
2013-10-04 15:02:05 +00:00
Campbell Barton
ec4a7fcad1
fix for lasso selection (in non-zbuf mode) when the line intersected its self.
...
isect_point_poly_v2() - add argument to check overlapping areas.
2013-10-04 10:48:24 +00:00
Campbell Barton
f5eb880358
freeing mempool elements now fills freed memory with --debug for debug builds.
2013-10-03 14:44:33 +00:00
Campbell Barton
9b1be7ce93
add cmake option WITH_MEM_VALGRIND, helps to track down errors with mempool use which sometimes only show up as bugs in very rare cases (because even though the element is freed, the chunk is still allocated).
2013-10-03 12:22:44 +00:00
Sergey Sharybin
dd02c2937a
Made PIL_time_utildefines self-sufficient
...
Meaning it's enough to only include PIL_time_utildefines for
benchmarking, no need to worry about other header dependencies.
2013-09-26 21:27:23 +00:00
Campbell Barton
3c05662f5e
fix error where BKE_mesh_cd_validate layer renaming would use invalid index values. from r60260
...
also correct some comments.
2013-09-25 11:11:41 +00:00
Brecht Van Lommel
eaf354e222
Fix related to #36319 : restore SDL_VIDEODRIVER=dummy environment variable, it
...
seems that somehow not having this is causing keyboard events to be caught by
SDL. This was removed because it broke addons that could use SDL, now set the
environment variable only temporary during SDL initialization.
This may have been causing issues with keyboard events getting missed in the
game engine, but I couldn't confirm the issue here.
2013-09-23 14:48:28 +00:00
Campbell Barton
d6b21df2e6
correct include guards and add checks in check_style_c.py for them.
2013-09-19 23:17:52 +00:00
Campbell Barton
1576565932
minor changes needed for building standalone mathutils.
2013-09-14 00:30:56 +00:00
Campbell Barton
8beb565c59
code cleanup: headers - doxy comments.
2013-09-12 03:02:50 +00:00
Sergey Sharybin
9b09af0dca
Fix #36701 : Mask pivioting doesnt honor parenting
...
Made mask transformation aware of parent matrix.
2013-09-11 10:06:54 +00:00
Campbell Barton
d2d1025e4a
add mathutils.geometry.box_fit_2d() to wrap BLI_convexhull_aabb_fit_points_2d()
2013-09-11 06:56:51 +00:00
Campbell Barton
44ec0b0aab
uv-pack operator: option to rotate uv islands to fit in the optimal rectangle when packing.
2013-09-10 23:11:58 +00:00
Campbell Barton
ab8d88ac18
add angle_to_mat2 utility function.
2013-09-10 20:45:47 +00:00
Campbell Barton
92d94ccb08
misc minor changes
...
- make cmake osx use of -ftemplate-depth match scons.
- use array size within sizeof(), more compact.
- replace AT with __func__ where the function is unique enough.
- BLI_box_pack_2D -> 2d to match other functions.
- rename new mesh normal calculation to mesh.calc_normals_split()
2013-09-10 19:23:39 +00:00
Bastien Montagne
773ea29b4a
Possible fix for MSVC compiling (grr...).
2013-09-10 15:41:01 +00:00
Campbell Barton
73be170fb5
add BLI_SMALLSTACK_***, macros: stack doesn't have a fixed size, it uses stack memory and never allocates.
...
it can be added and removed many times per function but will always remain the size of the maximum number of items.
not used yet, added for normal calculation function from mont29.
2013-09-10 11:04:20 +00:00
Thomas Dinges
561e82e927
* Compile fix for r59990.
2013-09-10 09:06:24 +00:00
Campbell Barton
5dbe17cc12
add 2d convex hull utility function, BLI_convexhull_2d(), and python api mathutils.geometry.convex_hull_2d()
...
uses Andrew's monotone chain 2D convex hull algorithm.
2013-09-10 07:52:10 +00:00
Campbell Barton
66efedd096
enable strict flags for mesh_evaluate.c
2013-09-09 03:12:23 +00:00
Campbell Barton
65fcc29d0c
missing NULL check in recent commit, also skip some calculations in mean_value_half_tan functions for degenerate cases.
2013-09-07 06:56:27 +00:00
Campbell Barton
6439ae9d51
fix for barycentric_weights_v2_quad() divide by zero when the location we're checking the weight of touches one of the weighting coords exactly.
2013-09-06 05:44:18 +00:00
Campbell Barton
7a38fe97fd
sorting utility functions for simple cases - sorting pointers by float for example.
2013-09-05 22:24:12 +00:00
Campbell Barton
3b72f1824c
rename positive_mod to mod_i, make it work with nagative numbers (matching pythons modulo), and use in a few more places.
...
allow mesh-checker-deselect to have a negative offset.
2013-09-05 20:54:32 +00:00