Howard Trickey
96ce50449c
Fix T52733 Percent mode for Bevel sometimes had nans.
...
Forgot some initialization.
2017-09-19 09:39:11 -04:00
Bastien Montagne
9591b5f618
Fix T52816: regression can't open file in 2.79 (crash).
...
Tentative fix, since I cannot reproduce thenissue for some reason here
on linux.
Core of the problem is pretty clear though, thanks to Germano Cavalcante
(@mano-wii): another thread could try to use looptris data after worker
one had allocated it, but before it had actually computed looptris.
So now, we use a temp 'wip' pointer to store looptris being computed
(since this is protected by a mutex, other threads will have to wait on
it, no possibility for them to double-compute the looptris here).
This should probably be backported to 2.79a if done.
2017-09-19 14:00:49 +02:00
Sergey Sharybin
1a4442b3db
Fix T52823: New Depsgraph - Shrinkwrap crashes blender
...
The issue was caused by threading conflict around looptris: it was possible
that DM will return non-NULL but non-initialized array of looptris.
Thanks Campbell for second pair of eyes!
2017-09-19 16:12:05 +05:00
Campbell Barton
495d3c8dd7
CMake: update for renamed headers
2017-09-19 20:26:07 +10:00
Campbell Barton
7b95243240
BLI_utildefines_iter: Use for iteration helpers
2017-09-19 20:22:24 +10:00
Campbell Barton
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
Campbell Barton
215651af1b
Boolean Modifier: add debug options
...
Only show & use when running in debug mode.
2017-09-19 18:29:52 +10:00
Sergey Sharybin
7177e0ac3e
Fix T52811: At any framerate selected, video exported with 1000fps
2017-09-19 11:31:03 +05:00
Campbell Barton
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
Campbell Barton
9a2f7dd77b
Correct recent error in boolean quad split check
2017-09-19 14:25:37 +10:00
Joshua Leung
2cdc2f2a25
Fix compiler warning
2017-09-19 16:20:51 +12:00
Bastien Montagne
bb4a12914f
Add some security checks against future bad float UIprecision values.
...
This commit and previous one should be backported to 2.79a should we
release it.
2017-09-18 20:04:27 +02:00
Bastien Montagne
785e96a11d
Fix (irc-reported by @sergey) invalid precision value in a float RNA property.
...
Maximum allowed UI float precision value is 6 (which means 7 digits).
Will change code checking on that in next commit.
2017-09-18 20:04:27 +02:00
Dalai Felinto
f84448d4a0
Fix T52813: Audaspace: Leak when loading factory settings
...
Patch by Joerg Mueller (neXyon) with some touchups by me.
2017-09-18 16:16:03 +02:00
Campbell Barton
533ec46efb
Merge branch 'master' into blender2.8
2017-09-18 23:56:19 +10:00
Campbell Barton
d0344d7b7d
Cleanup: use clamped rounding functions
2017-09-18 23:55:41 +10:00
Campbell Barton
c4fc9c4a8e
Math Lib: clamped rounding utility functions
2017-09-18 23:55:41 +10:00
Sergey Sharybin
ad80bfdab9
Merge branch 'master' into blender2.8
2017-09-18 18:10:39 +05:00
Sergey Sharybin
a6b156bf57
Color management: When look is applied, we can not consider spaces to match
...
This should fix T52812 after merge to blender2.8.
2017-09-18 18:09:53 +05:00
Campbell Barton
e6d5b94e83
Correct error in cage2d draw style enum
2017-09-18 23:02:27 +10:00
Dalai Felinto
d370e6c3ea
Merge remote-tracking branch 'origin/master' into blender2.8
2017-09-18 14:44:44 +02:00
Brecht Van Lommel
d0d9360a66
Fix T52800: fix UI flickering with Mesa on Linux.
...
Use triple buffer by default now on all platforms, remaing ones where:
* Mesa: seems to have been working well for a long time now, and not using
it gives issues with the latest Mesa 17.2.0.
* Windows software OpenGL: no longer supported since OpenGL 2.1 requirement
was introduced.
* OS X with thousands of colors: this option was removed in OS X 10.6, and
that's our minimum requirement.
2017-09-18 13:19:48 +02:00
Sergey Sharybin
4c1ee47707
Merge branch 'master' into blender2.8
2017-09-18 15:54:56 +05:00
Brecht Van Lommel
6bf3dfbcdb
Fix T52801: reload scripts causes Cycles viewport render crash.
2017-09-18 12:52:32 +02:00
Sergey Sharybin
c622533fa0
Fix T52432: Blender crashes while using Ghost (new depsgraph)
2017-09-18 15:50:27 +05:00
Campbell Barton
a0e7dbc66d
BMesh: move bridge tools stepping logic into macro
...
Also use floor division since regular division was giving a bias
on negative error values.
2017-09-18 13:18:54 +10:00
Campbell Barton
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
Campbell Barton
9134529b9e
UI: avoid int cast before clamping number input
...
Values outside int range would overflow.
2017-09-17 18:00:13 +10:00
Campbell Barton
d7204aed95
Cleanup: SGI format, remove unused struct members
2017-09-17 18:00:08 +10:00
Campbell Barton
829916f4e5
Fix SGI foramt reader CVE-2017-2901
...
Integer Overflow Code Execution Vulnerability.
Reader no longer crashes on corrupt images (from own fuzz testing).
2017-09-17 16:30:34 +10:00
Campbell Barton
b884188f8a
Cleanup: SGI format, avoid overflow
...
Harmless but causes warnings
2017-09-17 16:30:34 +10:00
Campbell Barton
a72e609204
Cleanup: SGI format, use uint/short/char types
2017-09-17 16:30:34 +10:00
Campbell Barton
a850d74312
Fix T51074: Boolean modifier inverts operation
...
Support for negative scaled objects.
2017-09-16 18:12:24 +10:00
Campbell Barton
d09c429e30
Fix writing Iris images w/ invalid header
...
Regression in e142ae77ca
2017-09-16 16:09:02 +10:00
Clément Foucault
9068c0743e
DRW: Fix Ubo binding logic and improve Texture binding logic
...
Ubo needs to be rebound every times the shader changes.
This simplify the logic a bit.
Also modify texture binding logic to potentially reuse more already bound textures.
2017-09-16 02:16:55 +02:00
Campbell Barton
7c8e87fc52
Fix T52384: Bridge pair result depends on other loops
...
When 2x loops have different number of vertices,
the distribution for vertices fan-fill depended on the loop order
and was often lop-sided.
This caused noticeable inconstancies depending on the input
since edge-loops are flipped to match each others winding order.
2017-09-16 05:15:09 +10:00
Clément Foucault
f565d8c4ae
Eevee: Fix T52738: Probes are black.
...
This fix the crappy binding logic.
Note the current method is doing a lot of useless binding. We should somewhat order the texture so that reused textures are already bound most of the time.
2017-09-15 20:09:09 +02:00
mano-wii
208d6f28c8
Merge branch 'master' into blender2.8
2017-09-15 14:19:22 -03:00
mano-wii
14eadf55fd
RNA: expose RegionView3D clip planes
2017-09-15 13:55:52 -03:00
Campbell Barton
4fae536f60
Merge branch 'master' into blender2.8
2017-09-15 22:44:07 +10:00
Clément Foucault
0c5ff0e558
GPUCodegen: Fix for loop overflow.
...
Fix asan error.
2017-09-15 11:42:53 +02:00
Campbell Barton
d120780fed
BMesh: use less involved check for edge rotation
...
Was using function for edge rotation which was doing unnecessary checks
Use the face normal and BLI_polyfill_beautify_quad_rotate_calc directly.
2017-09-15 18:19:04 +10:00
Campbell Barton
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
Campbell Barton
fdb8e17936
Fix error in recent boolean changes w/ quad split
2017-09-15 18:08:24 +10:00
Sergey Sharybin
028c5592cd
Merge branch 'master' into blender2.8
2017-09-15 12:35:20 +05:00
Sergey Sharybin
8b3ad25862
Transform: Enable recursion dependency check for new depsgraph
2017-09-15 12:25:57 +05:00
Sergey Sharybin
95a8e73d40
Fix copy-paste error in recent particles fix
...
Was intersecting same triangle twice.
2017-09-15 11:35:24 +05:00
Campbell Barton
2aa2bec43a
Fix T52442: bl_app_templates_system not working
...
Portable builds LOCAL files need to be
treated as system instead of using as a fallback to USER templates.
2017-09-15 05:57:37 +10:00
Campbell Barton
909da553e3
Fix bpy.utils.resource_path('SYSTEM') output
...
Would return the test path for developer builds:
{blender-dirname/release}
Now return an empty string when no path is found.
2017-09-15 05:47:23 +10:00
Sergey Sharybin
c75bd25cd8
Fix T52732: Particle system volume grid particles out of volume
...
Use more watertight and robust intersection test.
It uses now ray to triangle intersection, but it's all fine because segment was
covering the whole bounding box anyway.
2017-09-14 19:50:02 +05:00