Brecht Van Lommel
3ce280e825
Fix #35960 , #36044 : blender internal viewport rendering crash while editing data.
...
Now the viewport rendering thread will lock the main thread while it is exporting
objects to render data. This is not ideal if you have big scenes that might block
the UI, but Cycles does the same, and it's fairly quick because the same evaluated
mesh can be used as for viewport drawing. It's the only way to get things stable
until the thread safe dependency graph is here.
This adds a mechanism to the job system for jobs to lock the main thread, using a
new 'ticket mutex lock' which is a mutex lock that gives priority to the first
thread that tries to lock the mutex.
Still to solve: undo/redo crashes.
2013-07-08 17:56:51 +00:00
Campbell Barton
a02d256f5e
fix [ #35987 ] bevel gives nan vertices
...
The line intersection function bevel uses could give nan intersections.
2013-07-05 00:30:00 +00:00
Campbell Barton
418011907c
remove nan copyrights from code added since blender become opensource (copy paste errors), also remove BKE_script.h
2013-07-02 10:14:59 +00:00
Campbell Barton
eba9b4f6c1
fix for out of bounds read in BLI_path_rel
2013-06-27 20:47:59 +00:00
Campbell Barton
bb42703ea3
- remove edge collapse loop operator (now replaced by dissolve).
...
- fix missing null pointer check from own recent changes.
- add asserts if BLI path functions are given wrong id's
2013-06-27 01:10:19 +00:00
Campbell Barton
a050ddf279
remove unused callback
2013-06-26 03:42:45 +00:00
Campbell Barton
fad1da062d
correct typos in comments.
2013-06-25 22:58:23 +00:00
Brecht Van Lommel
40d4dfaba8
Fix #35824 : finding missing files not working correct for filepaths with special
...
characters on Windows.
Replaced some uses of stat() by BLI_stat() to properly handle such filepaths.
2013-06-25 14:48:30 +00:00
Campbell Barton
f8c37b083c
remove own optimization in scanfill, in rare cases it caused problems, reported as [ #35861 ]
2013-06-24 18:22:59 +00:00
Campbell Barton
adba695209
remove vec_rot_to_mat3(), replace with axis_angle_normalized_to_mat3()
2013-06-22 23:58:52 +00:00
Campbell Barton
1a50be2d94
Make edgehash and ghash use the same limit for expanding buckets, r26206 changed ghash.
...
double checked and r26206 does indeed give a speedup, so change for edgehash too.
2013-06-22 22:30:56 +00:00
Campbell Barton
1fb980e7df
reduce sign conversion comparisons for smallhash and tweak warnings elsewhere.
2013-06-22 20:20:06 +00:00
Dalai Felinto
d23bf09712
build fix for old gccs (after rev.57620)
...
enabling the new pragmas only when gcc >= 4.6
gcc 4.2.1 here (OSX)
2013-06-22 20:00:17 +00:00
Brecht Van Lommel
2df82a2a2b
Code cleanup: fix some vs2012 compiler warnings
2013-06-21 12:33:19 +00:00
Campbell Barton
2efea8cf03
reduce sign comparisons for ghash and add more strict warnings for gcc.
2013-06-20 19:39:29 +00:00
Campbell Barton
c721d82f25
move sort from vert/edge/face into mesh menu only (sorting isn't such a common operation).
...
correct own recently added assert.
2013-06-20 19:09:18 +00:00
Campbell Barton
998101763a
correct for own regressions when refactoring select-path, was using heap popmin incorrectly.
2013-06-19 19:59:49 +00:00
Campbell Barton
c9341334b1
add BLI_strcpy_rlen, replace strcat, which was used in misleading way.
2013-06-16 08:29:02 +00:00
Brecht Van Lommel
8b2c5e693c
Fix #35634 : weight paint did not do z-buffer culling anymore on Windows after recent change to size of bool.
2013-06-13 17:11:09 +00:00
Campbell Barton
a91964e0e2
code cleanup: use boolean for intersection functions.
2013-06-09 21:25:27 +00:00
Campbell Barton
9b5be450d8
text rendering: shadow offset was causing text to clip, now check for clipping without the shadow since not-drawing characters because of subtle effect is rather annoying.
2013-06-06 21:43:52 +00:00
Campbell Barton
a6b505ef0b
style cleanup
2013-06-06 06:02:46 +00:00
Campbell Barton
99b55ef6eb
add asserts when scanfilling or triangulating with zero length normal.
2013-06-02 22:54:00 +00:00
Campbell Barton
c431df8f77
remove null checks for list functions, all hard asserts so we would have noticed problems already.
2013-05-30 19:05:46 +00:00
Brecht Van Lommel
fe76c06b30
UI: support 3 digit hex colors like HTML, e.g. #123 becomes #112233 .
...
Patch #35359 by Forest Ka.
2013-05-30 09:48:17 +00:00
Campbell Barton
225c5fee6b
move BLO_sys_types.h -> BLI_sys_types.h (it had nothing todo with loading)
...
remove MEM_sys_types.h which was a duplicate.
2013-05-28 19:35:26 +00:00
Campbell Barton
c7a46d5369
reorder includes for win
2013-05-28 13:37:47 +00:00
Campbell Barton
44b3735078
fix error in own recent commit, also other minor changes.
2013-05-27 18:51:31 +00:00
Campbell Barton
ec8d277c64
BLI_math rename functions:
...
- mult_m4_m4m4 -> mul_m4_m4m4
- mult_m3_m3m4 -> mul_m3_m3m4
these temporary names were used to avoid problems when argument order was switched.
2013-05-26 18:36:25 +00:00
Campbell Barton
e63ab3505f
use math functions rather then macros for bicubic interpolation.
2013-05-25 09:33:08 +00:00
Campbell Barton
13bde6645b
code cleanup: remove callbacks only added to wrap MEM_freeN
2013-05-21 08:45:10 +00:00
Campbell Barton
7759b2743a
code cleanup: replace PARALLEL define with _OPENMP
2013-05-20 16:15:16 +00:00
Campbell Barton
eacb629c72
style cleanup
2013-05-19 15:11:25 +00:00
Campbell Barton
ae0220332e
code cleanup: simplify fast_ray_nearest_hit()
2013-05-19 15:03:36 +00:00
Campbell Barton
cfbf9c324b
style cleanup
2013-05-14 06:58:35 +00:00
Campbell Barton
28ecc1ce20
fix for building with mingw
2013-05-13 05:40:51 +00:00
Brecht Van Lommel
877e0e1184
Fix #35319 : python 2x2 matrix inverse and adjugate were wrong.
2013-05-12 09:26:02 +00:00
Campbell Barton
0d36225dd1
quiet sign conversion warnings and reduce sign conversion for BLI_string, and BLF.
2013-05-12 06:33:21 +00:00
Campbell Barton
7b707fff56
correct assert for driver evaluation,
...
also add asserts for listbase functions when the list is NULL, and use noreturn attribute for jpeg_error.
2013-05-12 05:54:33 +00:00
Campbell Barton
a19f7899fb
utility functions to reverse and rotate linklists.
2013-05-11 12:18:12 +00:00
Brecht Van Lommel
65ed588c8b
Fix #35270 : files with numbers higher than 2147483648 or with different numbers
...
of leading zeros but otherwise the same would show in random order in the file
browser. Selecting an item would change the order of all the items.
Problem was that it was comparing by parsing the number into an int, which has
only limited precision and does not care about the number of leading zeros. Now
do the comparison directly on the string.
2013-05-10 14:52:23 +00:00
Campbell Barton
0ac5028f2a
use unsigned ints for edgehash
2013-05-10 12:06:40 +00:00
Campbell Barton
4392fc6f1d
Optimize BKE_mesh_calc_normals(), gives approx 25% speedup.
...
- no need to allocate polygon normal array.
- no need to use BLI_array_ functions (realloc's).
- reduce some of the looping.
2013-05-10 10:07:01 +00:00
Campbell Barton
0ee45c9301
more optimal method of calculating the normal for the solidify modifier.
...
When adding 2 unit length vectors, the length can be used to calculate the angle.
2013-05-08 14:33:02 +00:00
Brecht Van Lommel
a07dcd67eb
Fix #35240 : command line -t number of threads option did not work for cycles.
...
Now it works for blender internal, cycles and other multithreading code in
Blender in both background and UI mode.
2013-05-08 13:23:17 +00:00
Campbell Barton
a9fb183901
rename BLI_ghashIterator_notDone() -> BLI_ghashIterator_done()
...
was renamed fairly recently but other similar iterators not negated
like this, would prefer to keep it as it was
2013-05-08 12:58:11 +00:00
Campbell Barton
3b341068ba
warn of sign conversions for low level apis - ghash, heap, mempool
2013-05-08 12:55:51 +00:00
Campbell Barton
89c8de1f48
add matrix multiply for projection that outputs 2d values.
2013-05-08 12:55:36 +00:00
Campbell Barton
62db610220
use unsigned int's for smallhash, avoids using ABS when converting an
...
int from a key.
2013-05-08 12:54:07 +00:00
Campbell Barton
4319685234
fix for cursor jumping error stepping backwards where the the first character of a string would be skipped no matter what it was.
2013-05-06 03:35:21 +00:00