Campbell Barton
74b32a23f7
Cleanup: checks for unsupported MSVC versions
2015-06-20 15:17:32 +10:00
Bastien Montagne
0f171d4a25
BLI_threads Queue: add BLI_thread_queue_is_empty().
...
Avoids counting the whole queue when we only want to check whether it is empty or not!
2015-06-19 12:31:26 +02:00
Campbell Barton
52e95ad3d3
BLI_stack: BLI_stack_pop_n_reverse
...
Useful to fill an array in the order its added.
2015-06-19 20:19:37 +10:00
Campbell Barton
d4aeec9204
BLI_stack: function comments
2015-06-19 15:54:42 +10:00
Campbell Barton
28c34d332f
Assert when relative paths are passed to IO ops
...
This is typically an error (& hangs a few seconds on win32), best catch early.
2015-06-18 12:49:10 +10:00
Campbell Barton
ecdbe3cc63
Cleanup: style
2015-06-17 07:06:59 +10:00
Campbell Barton
b986f955e9
Disable assert for polyfill
...
Would fail on some zero-area ngons.
2015-06-16 21:13:22 +10:00
Campbell Barton
b1a92f2b3a
Fix T44701: Buffer overrun reading directories
2015-06-16 10:04:28 +10:00
Campbell Barton
532e29cd76
Win32: make DIR struct opaque
2015-06-16 10:03:12 +10:00
Campbell Barton
3f7ea7489e
Cleanup: quiet assert for zero-length axis
2015-06-16 04:16:27 +10:00
Campbell Barton
fd629d2fb8
Cleanup: quiet warning
2015-06-15 19:56:43 +10:00
Sergey Sharybin
b1ed12bfec
Compilation error fixes for older GCC/CLang compilers
...
Avoid data type re-declaration, it's not really working on current FreeBSD's 9
system and CLang-3.0 from OSX.
This is not a good idea to do such sort of copy-paste anyway.
If someone knows better way of dealing with this please go ahead and correct
the code :)
2015-06-13 22:19:50 +02:00
Campbell Barton
9e91313a97
CMake: remove comment
2015-06-13 03:23:58 +10:00
Campbell Barton
4ab47a7670
BLI_linklist, avoid full list search for append
...
For areas that require append, store the last node,
Previous behavior would too easily hide poorly performing code.
Also avoid (prepend, reverse) where possible.
2015-06-12 17:13:34 +10:00
Julian Eisel
939948c233
File Browser Arrow Keys Navigation
...
Adds support for selecting/deselecting files in File Browser using the
arrow keys. All directions (up, down, left, right) are possible.
When to Select, When to Deselect?
Standard behaviour is selecting, however if we move into a block of
already selected files (meaning 2+ files are selected) we start
deselecting
Possible Selection Methods
Simple selection (arrow-key): All other files are deselected
Expand selection (Shift+arrow key): Add to/remove from existing
selection
ill-Expand selection (Ctrl+Shift+arrow key): Add to/remove from existing
selection and fill everything in-between
From which file do we start navigating?
From each available selection method (Mouse-, Walk-, All-, Border
Select), we use the last selected file. If there's no selection at all
we use the first (down/right arrow) or last (up/left arrow) file.
(Ideally, the view would automatically be set to the new selection, but
this behaviour overlaps with an other patch I've been working on, so
prefer to do that separately)
(Also tweaks color for highlighted file for better feedback)
D1297, Review done by @campbellbarton, thx a lot :)
2015-06-11 17:20:29 +02:00
Campbell Barton
867cd2048e
Replace linked-list insert-sort with merge-sort
...
Original code from eglib, modified for reuse with multiple linked-list implementations.
Adds sort functions: BLI_linklist_sort, BLI_linklist_sort_r
2015-06-11 21:54:06 +10:00
Campbell Barton
b8b57d2da9
BLI_listbase: match arg order with BLI_qsort_r
2015-06-11 21:54:06 +10:00
Campbell Barton
50a1ad5bb3
Cleanup
2015-06-06 21:02:16 +10:00
Campbell Barton
aca40295e8
Check ftell return values
2015-06-05 11:46:01 +10:00
Antony Riakiotakis
2cbe60b476
New "use placeholders" feature of the sequencer did not detect correct
...
filenames.
Added BLI_path utility functions to decompose a path name and
extract the frame number. It should be useful in autocollapse
feature as well
2015-06-04 20:40:44 +02:00
Campbell Barton
cf7a5e93f8
Fix buffer overrun searching program path on win32
2015-06-04 16:48:56 +10:00
Campbell Barton
1dbcccf5f9
BLI_stack, add clear function.
2015-06-03 18:07:30 +10:00
Campbell Barton
fd8b6021c4
Fix race condition
...
Exposed when checking on T44871
2015-06-03 11:01:44 +10:00
Campbell Barton
aa2bdcccfc
Simplify Win32 extension check
2015-06-02 15:38:14 +10:00
Campbell Barton
f01c6e185f
Cleanup: typos
2015-05-23 22:38:47 +10:00
Campbell Barton
f340595dba
Quadric: add common why doubles are used.
2015-05-23 22:37:46 +10:00
Campbell Barton
bc83076355
Math Lib: update API usage info
2015-05-23 22:37:37 +10:00
Campbell Barton
e37c4e5819
Fix T44780: Decimate planar creates concave edges
...
Float precision was causing problems for decimate,
small faces that create a nearly flat surface were detected as having no 'cost' to collapse.
2015-05-21 21:06:30 +10:00
Campbell Barton
6ee653352b
Math Lib: double versions of vector funcs
...
- add_vn_vn_d
- add_vn_vnvn_d
- mul_vn_db
2015-05-21 21:06:29 +10:00
Campbell Barton
24e1d7f4f4
BMesh: decimate wasn't using face/edge centers
...
When calculating quadrics, using the first-vertex isn't correct.
2015-05-21 00:00:13 +10:00
Campbell Barton
5d30c23c35
doxygen: corrections/updates
...
Also add depsgraph & physics
2015-05-20 14:12:22 +10:00
Sergey Sharybin
40091ff83a
Correction to early output in the parallel range implementation
...
The used heuristic of checking the value prior to lock is not totally safe
because assignment is not atomic and check might not give proper result.
2015-05-18 16:40:51 +05:00
Sergey Sharybin
b88597c218
Make switching to threaded malloc safe to be called from threads
...
For a long time this function was only intended to be used from the main thread,
but since out implementation of parallel range (which is currently only used by
mesh deform modifier) we might want to switch to threaded alloc from object
update thread.
Now we're using spinlock around the check, which makes the code safe to be used
from all over the place.
We might consider using a bit of atomics operations magic there, but it's not so
much important for now, this code is not used in the performance critical code
path.
2015-05-18 16:40:51 +05:00
Campbell Barton
6ba128129d
CMake: correct file listing
2015-05-17 16:09:15 +10:00
Campbell Barton
a050d6063c
Project Paint: resolve ugly bleed artifacts
...
Use the bilinear reverse to find the pixel to bleed from.
Was using pixel space which didn't work well.
2015-05-13 18:04:46 +10:00
Campbell Barton
18cf235893
GHash: use const keys when only used for lookups
2015-05-11 12:39:08 +10:00
Campbell Barton
9e2e85a367
GHash: Add BLI_ghash_ensure_p_ex to copy the key
...
Needed in cases where the memory from each key is owned by the GHash.
2015-05-11 09:27:05 +10:00
Campbell Barton
c246e0c3b6
Prefer name 'program' over 'binary'
...
binary-search is confusing!
2015-05-06 06:34:19 +10:00
Campbell Barton
e00142bfa7
BLI_path: add PATH search utility functions
2015-05-06 06:21:16 +10:00
Campbell Barton
e5e73ccc90
Math Lib: rename fill_*, to copy_*
...
matching convention for fixed length api, eg: copy_v3_fl
2015-05-05 17:08:29 +10:00
Campbell Barton
52b9d83417
Fix T44592: Zero scale on an axis, zeros all
2015-05-04 22:39:33 +10:00
Lukas Tönne
c19f3ea1b2
Fixed comment.
2015-05-04 14:31:44 +02:00
Brecht Van Lommel
b6caefdaa9
Fix T43711: dual quaternion deform bug with shearing in deform matrix.
...
This also increases the tolerances in is_orthogonal / is_orthonormal functions,
which were much too low for practical purposes.
2015-05-01 19:21:41 +02:00
Campbell Barton
3acc1ba49c
Add macro BLI_SMALLSTACK_AS_TABLE
...
Use for edge-split (a little less overhead compare to popping each item).
2015-04-29 23:59:48 +10:00
Campbell Barton
7851534541
disable ARRAY_SIZE fixed length check for Clang
2015-04-29 01:37:45 +10:00
Campbell Barton
1f9fe0626f
BLI_utildefines: add MEMSET_STRUCT_OFS macro
2015-04-28 23:15:47 +10:00
Campbell Barton
a4965249ec
Math Lib: add range_vn_u
2015-04-28 06:54:50 +10:00
Campbell Barton
84836e8952
Cleanup: use strict flags
2015-04-28 06:24:06 +10:00
Campbell Barton
278ff15c7f
BLI_array: add permute utility function
2015-04-28 04:12:48 +10:00
Campbell Barton
9dadc8f599
Math Lib: add mul_v3_mat3_m4v3
2015-04-27 21:52:42 +10:00