Campbell Barton
8bf5ec4f8a
code cleanup: de-duplicate BLI_ghashIterator_new/init and disable unused text undo print function.
2013-07-21 17:05:41 +00:00
Campbell Barton
7db1d6556d
code cleanup: add break statements in switch ()'s, (even at the last case).
2013-07-21 08:16:37 +00:00
Campbell Barton
49c61e169b
misc edits
...
- fix for missing None check with recent 'Hidden Wire' draw option.
- avoid int overflow with mesh selection.
- remove ';' outside of functions.
2013-07-20 15:07:57 +00:00
Campbell Barton
4b0f50597f
revert r58419. caller should do NULL check here.
2013-07-20 00:15:01 +00:00
Daniel Stokes
869d654ccc
BGE fix [ #36223 ] Strange page fault of "Game" actuator
...
Adding a NULL check to BLI_ghash_lookup
2013-07-19 22:04:06 +00:00
Campbell Barton
a2492e0603
style cleanup: braces/indentation
2013-07-19 16:44:17 +00:00
Campbell Barton
397da50002
style cleanup: switch statements, include break statements within braces & indent.
...
also indent case's within the switch (we already did both of these almost everywhere)
2013-07-19 15:23:42 +00:00
Campbell Barton
dc06041049
code cleanup: use __linux__ define over linux
2013-07-19 10:41:04 +00:00
Campbell Barton
bc5ecbc393
optimization: avoid extra loop in BLI_mempool_destroy(). free the list inline.
2013-07-19 10:40:57 +00:00
Campbell Barton
40c2f52dbf
code cleanup: simplify BLI_parent_dir using BLI_join_dirfile
2013-07-19 10:39:49 +00:00
Campbell Barton
33e0bc6b48
code cleanup: avoid sqrt in isect_seg_seg_v2_point
2013-07-19 10:39:37 +00:00
Campbell Barton
925c5010e8
fix for checking char arrays against NULL, instead check their first character. also remove some dead code (return directly after return).
2013-07-16 11:42:07 +00:00
Campbell Barton
7430701600
correct own incorrect check bmesh edgerin subdivide, also add missing break in orthogonalize_m3 though this one wouldn't effect release builds.
2013-07-16 11:39:48 +00:00
Campbell Barton
60e64bcfa7
revert part of own commit r58254, utf8 isnt stepping by 1 always so use less-than comparison.
2013-07-15 21:34:48 +00:00
Campbell Barton
76ccf2403a
correct placement of debug memset() for DEBUG_STRSIZE
2013-07-15 09:10:51 +00:00
Campbell Barton
2b6f35d686
fix for error in string copy
...
- BLI_strncpy_wchar_from_utf8 wasn't NULL terminating the destination string, caused uninitialized memory use in BPY_python_start().
- BLI_strncpy_wchar_as_utf8 could write one byte past the buffer bounds.
2013-07-15 05:09:06 +00:00
Campbell Barton
02f5b0fc08
debug option (off by default), for BLI_string to help find incorrect sizes being passed in (enable in source files only)
2013-07-15 03:54:57 +00:00
Campbell Barton
d4ab6f3a9e
fix [ #36107 ] Moving origin of instanced objects doesn't work properly
...
now use the active object first if its selected, this means when multiple instances are selected, using the active object gives a predictable outcome.
2013-07-15 01:34:59 +00:00
Campbell Barton
d522a995cf
fix for orthogonalize_m3,4, missing break statements in switch.
2013-07-13 06:54:44 +00:00
Campbell Barton
55c79821b9
optimize interp_weights_poly_v2(), well tested, was calculating the area twice as much as was needed.
2013-07-12 00:18:27 +00:00
Campbell Barton
a3a4386991
fix [ #36105 ] Bevel UV Flicker
...
interp_weights_poly_v2/3 functions used much too small an epsilon value, caused flickering.
2013-07-11 15:57:22 +00:00
Campbell Barton
e6b22d287f
utility function for printing arbitrary sizes vectors.
2013-07-11 15:32:26 +00:00
Campbell Barton
3d13f22e89
no need to copy mat4x4 -> 3x3 in mat4_to_scale
2013-07-10 12:12:58 +00:00
Campbell Barton
d4ff53b760
fix [ #36066 ] crash when Tab out text object
...
the way Curve.len is used at the moment is really stupid, calculate string size on save for now, but should really store the length in bytes and total number of characters.
2013-07-09 06:21:45 +00:00
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