ba67d94258
Compile fixes for MSVC:
...
* missing include for uint typedef
* macro syntax error
Reviewers: campbellbarton, fclem
Reviewed By: fclem
Differential Revision: https://developer.blender.org/D2863
2017-10-01 15:34:12 +02:00
e3fe8128e4
Merge branch 'master' into blender2.8
2017-09-29 19:55:00 +10:00
5a1954a5cb
Drop platform support for Solaris & AIX
...
These platforms didn't see maintenance in years.
This commit just removes ifdef's & cmake check.
2017-09-29 19:16:34 +10:00
9bd40cbce1
Merge branch 'master' into blender2.8
2017-09-27 11:18:23 +10:00
43b4913051
Math Lib: Add non-clamped round_* functions
...
Replace iroundf with round_fl_to_int, add other types
2017-09-27 11:13:03 +10:00
47e6d53c8a
BLI_rand : Add new low-discrepency sequences generator
2017-09-26 20:54:27 +02:00
24b083c8f3
Merge branch 'master' into blender2.8
2017-09-26 14:52:21 +10:00
aba2f8ea67
Beauty fill was skipping small faces
2017-09-26 12:59:23 +10:00
e40e29cd38
Fix T52871: beauty fill error
...
Only lock tri's facing different directions.
Needed because scanfill creates zero area faces.
2017-09-26 12:14:46 +10:00
293dc4e084
Revert "Fix T52871: BLI_polyfill_beautify_quad_rotate_calc_ex was mistakenly considering the state as degenerated"
...
This reverts commit a8f11f5422 .
Result is no longer symmetrical, will investigate a different fix.
2017-09-26 12:14:04 +10:00
98ba302f70
Merge branch 'master' into blender2.8
2017-09-25 18:57:43 +05:00
a8f11f5422
Fix T52871: BLI_polyfill_beautify_quad_rotate_calc_ex was mistakenly considering the state as degenerated
2017-09-23 12:59:02 -03:00
851228766e
Merge branch 'master' into blender2.8
2017-09-20 16:10:40 +10:00
f680e42a4c
Correct test ifdef in polyfill
2017-09-20 04:57:48 +10:00
16355d545b
Fix T52834: Polyfill2D fails with co-linear edges
2017-09-20 04:29:04 +10:00
af170839af
Merge branch 'master' into blender2.8
2017-09-19 21:08:14 +05:00
495d3c8dd7
CMake: update for renamed headers
2017-09-19 20:26:07 +10:00
7b95243240
BLI_utildefines_iter: Use for iteration helpers
2017-09-19 20:22:24 +10:00
60956397ca
Cleanup: BLI_utildefines prefix for header-only libs
...
This allows to have different macro headers without them sharing
similar names to regular C modules.
2017-09-19 20:16:05 +10:00
36f5972ed0
Avoid bias when calculating quad split direction
...
Some error checks weren't being done in both directions
when calculating the best split direction for a quad.
2017-09-19 15:10:52 +10:00
533ec46efb
Merge branch 'master' into blender2.8
2017-09-18 23:56:19 +10:00
c4fc9c4a8e
Math Lib: clamped rounding utility functions
2017-09-18 23:55:41 +10:00
4c1ee47707
Merge branch 'master' into blender2.8
2017-09-18 15:54:56 +05:00
990515a5a7
Math Lib: add divide_floor_i
...
Integer division that floors on negative output (like Python's).
2017-09-18 13:18:50 +10:00
4fae536f60
Merge branch 'master' into blender2.8
2017-09-15 22:44:07 +10:00
c594087488
Polyfill Beautify: option to rotate out of degenerate state
...
Needed for 3D iterative edge-rotation to avoid flipping when projected
from different angles,
but could keep zero area faces in 2D polygons.
2017-09-15 18:14:17 +10:00
e2f42ff907
Merge branch 'master' into blender2.8
2017-09-06 17:23:47 +02:00
6e0fd239e3
Math Lib: normalized vector project functions
2017-09-07 00:12:43 +10:00
572b1a644f
Merge branch 'master' into blender2.8
2017-09-05 22:56:03 +10:00
4d85396fe4
Cleanup: use const
...
Also use assert w/ rotate_m4.
2017-09-05 22:45:44 +10:00
459d76ec51
BLI_kdtree: utility function to remove doubles
2017-09-03 23:43:14 +10:00
ca9801bd42
Merge branch 'master' into blender2.8
2017-08-27 16:35:51 +10:00
c90452e111
BLI_rect: Function to calculate a matrix from 2 rctf's
2017-08-27 16:19:34 +10:00
cb4884f50b
Merge branch 'master' into blender2.8
2017-08-23 20:16:47 +10:00
b9513706cb
Cleanup: mark VA_NARGS_COUNT as public
...
Was already used in two other headers, remove underscore prefix.
2017-08-23 20:16:17 +10:00
37cfa44222
Cleanup: move variadic defines to their own header
...
So we can use in headers without pulling in many other defines.
2017-08-23 20:16:17 +10:00
917d069cdb
Merge branch 'master' into blender2.8
2017-08-23 19:21:52 +10:00
81c0e643a0
BLI_string_utils: string joining utility functions
...
Includes a version that takes a separator and macros for convenience.
2017-08-23 19:17:27 +10:00
58a4c767a1
Merge branch 'master' into blender2.8
2017-08-23 16:10:45 +10:00
8899ac1550
GHash: BLI_ghash_reinsert_key utility function
...
Useful when ghash keys are reallocated.
2017-08-23 13:03:35 +10:00
673c9dce08
Merge branch 'master' into blender2.8
2017-08-12 19:08:49 +10:00
091ae0ea71
Math Lib: add isect_seg_seg_v2_point_ex
...
This exposes end-point bias argument, needed in rare cases.
2017-08-12 18:35:47 +10:00
9567529b8f
Merge branch 'master' into blender2.8
2017-08-12 00:23:49 +10:00
58ee738310
GHash: note that 'deprecated' is used for private
2017-08-11 19:10:19 +10:00
d1328feeb1
Merge branch 'master' into blender2.8
2017-08-11 10:33:39 +10:00
e5604a2fa4
Cleanup: whitespace
2017-08-11 08:32:05 +10:00
ed500ac8c7
Fix for previous commit
...
Accidentally got semicolon removed just before commit.
2017-08-09 15:00:47 +02:00
e00364c88e
Fix strict compiler flags on 32bit Linux
2017-08-09 14:58:49 +02:00
b5e6a21f1d
Cleanup: Quiet warning
2017-08-09 20:24:51 +10:00
41830cc432
Refactor ID copying (and to some extent, ID freeing).
...
This will allow much finer controll over how we copy data-blocks, from
full copy in Main database, to "lighter" ones (out of Main, inside an
already allocated datablock, etc.).
This commit also transfers a llot of what was previously handled by
per-ID-type custom code to generic ID handling code in BKE_library.
Hopefully will avoid in future inconsistencies and missing bits we had
all over the codebase in the past.
It also adds missing copying handling for a few types, most notably
Scene (which where using a fully customized handling previously).
Note that the type of allocation used during copying (regular in Main,
allocated but outside of Main, or not allocated by ID handling code at
all) is stored in ID's, which allows to handle them correctly when
freeing. This needs to be taken care of with caution when doing 'weird'
unusual things with ID copying and/or allocation!
As a final note, while rather noisy, this commit will hopefully not
break too much existing branches, old 'API' has been kept for the main
part, as a wrapper around new code. Cleaning it up will happen later.
Design task : T51804
Phab Diff: D2714
2017-08-07 20:34:36 +02:00