Campbell Barton
43c0f60523
Fix T46534: Crash loading corrupt HDR's
2015-10-20 02:13:14 +11:00
Campbell Barton
69c163b367
Cleanup: use UNLIKELY for checking corrupt HDR's
2015-10-20 02:13:14 +11:00
Campbell Barton
2b12cf40a1
Fix T46529: Unwrap UV w/ use-subsurf fails
...
Regression since moving to looptri.
2015-10-19 22:15:03 +11:00
Campbell Barton
67e1c97350
GPU: check for blit support, using MSAA FBO's
...
Used for reading off-screen buffers,
possible cause of failure for drivers that don't support it.
2015-10-19 12:36:15 +11:00
Bastien Montagne
a25892543a
Fix T46531: Cannot use % in filenames.
...
Same case as with space char really, one should not use those special chars in
filenames, but they are globally supported by all current FS/OS, so no real reason
to enforce that behvior on users here.
To be backported to 'a' release.
2015-10-18 18:51:08 +02:00
Bastien Montagne
f56392f224
BLI_task: fix bad freeing of current task_thread in case POSIX thread creation fails.
...
Trying to MEM_free a single item of a whole MEM_calloc'ated array, tsst...
Luckily looks like POSIX thread creation does not fail often! :P
2015-10-18 14:39:37 +02:00
Bastien Montagne
5551948b31
Fix T46520: mathutils.bvhtree crashes with distance input.
...
Should be backported to 'a' release.
2015-10-18 12:09:42 +02:00
Bastien Montagne
94791bd5da
Fix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76 for DDS files.
...
All optional image format are not #define'd in submodules like DDS read/write code.
This means values of `eImbTypes` would not always be the same in all contexts, yuck!
This is a regression and should be backported to 'a' release.
2015-10-18 11:13:33 +02:00
Bastien Montagne
0a2b48e3c6
Fix T46429: Movie clip is deformed by resolution multiplier when offset is added in sequence editor.
2015-10-17 11:32:04 +02:00
Campbell Barton
2927fa4450
correct own error in rectangle clamping
2015-10-17 18:52:05 +11:00
Campbell Barton
88767a1939
IMB_thumbs: add missing error check
2015-10-17 16:16:08 +11:00
Campbell Barton
eb49a76dca
Cleanup: warnings
...
- remove NULL checks for args already set as ATTR_NONNULL.
- double promotion.
2015-10-17 16:06:45 +11:00
Campbell Barton
3d69ef240e
Cleanup: BLI_path comments
2015-10-17 16:04:54 +11:00
Campbell Barton
0b23799b6f
Cleanup: remove unused BLI_string_to_utf8
2015-10-17 16:00:59 +11:00
Bastien Montagne
bfdb42047a
Fix broken CD_NORMAL interpolation callback (would generate non-unit vectors).
...
Even if the weights are normalized, the weighted sum of normalized vectors
usually does **not** give a normalized vector (unless all source vectors
are aligned).
This probably was not a big issue in most cases, since we usually interpolate
similar vectors here - but still!
2015-10-16 21:56:42 +02:00
Bastien Montagne
8172712841
Fix T46508: data_transfer of normals fails in case objects are transformed.
...
The final stage of the process (copying/interpolating new dst cddata from src cddata)
was simply broken in normal case, where we need to convert from source to destination
object space.
This patch is a bit verbose, but I cannot see how to avoid it really.
To think this code is in master since over 6 months and it only gets reported now... :/
2015-10-16 21:56:42 +02:00
Bastien Montagne
a88ae6fa70
Mesh remapping: fix loop 'best matching normals' not using transform space.
...
Also, cleanup, reduce declarations of tmp_co/_no...
2015-10-16 21:56:42 +02:00
Campbell Barton
d307c24a8b
Cleanup: style
...
Also use gcc style file:line: syntax for errors.
2015-10-17 02:46:38 +11:00
Campbell Barton
a1b34c0d28
Fix T46510: VSE View-all crops out image
2015-10-17 02:03:17 +11:00
Campbell Barton
1ec549886b
Cleanup: use bools for v2d, minor ws edits
2015-10-17 01:01:57 +11:00
Campbell Barton
34e749beef
Fix popup menu glitch, scrolling at high dpi
...
Popups were clamped be screen-margin,
then clipped by UI_POPUP_MENU_TOP, causing regular popups
not to have enough room & add scroll buttons.
2015-10-17 00:31:11 +11:00
Campbell Barton
b6b15f07a1
UI: expose UI_POPUP_MENU_TOP for use elsewhere.
2015-10-17 00:22:51 +11:00
Campbell Barton
e6aa464757
BLI_rect: add BLI_rctf_clamp
...
Clamp one rect within another.
This is done inline in the UI code, which gets verbose.
2015-10-17 00:03:29 +11:00
Campbell Barton
99cf636e84
Cleanup: redundant struct qualifiers
2015-10-17 00:02:07 +11:00
Campbell Barton
85f3b21cc8
error in last commit
2015-10-16 21:57:59 +11:00
Campbell Barton
7dc80097a4
Fix for missing id_lib_extern, assigning ID's
2015-10-16 21:53:01 +11:00
Campbell Barton
b5a4a00998
Fix T46502: Linked dupli-group lost on reload
2015-10-16 20:56:39 +11:00
Bastien Montagne
7bf7f67a46
Revert part of rB4d9345479aa86f61, and cleanup a bit.
...
'thumbnail_size' is now used in all cases, it controlls column width in other viewmodes
of filebrowser. We cannot (easily) rename that DNA member, but I also renamed RNA
property, and fixed its tooltip...
2015-10-16 11:21:12 +02:00
Campbell Barton
4d9345479a
UI: only show thumbnail size when its enabled
...
Also make enum identifiers less cryptic.
2015-10-16 18:51:33 +11:00
Campbell Barton
c9d3243f2b
Cleanup: simplify BLI_stringdec use
2015-10-16 15:17:54 +11:00
Campbell Barton
2f35217849
Fix T46503: Snap scale fails using corner pivot
2015-10-16 15:00:18 +11:00
Antony Riakiotakis
c62468aabb
VBO implementation for GLSL subsurfed meshes (non-mapped case)
...
As with cdderivedmesh, performance here is still CPU-limited if material
needs tangents/UVs/vcolors. Draw calls have much less overhead though.
Also, as with derivedmesh, kept an exception for old drawing for NVIDIA
+OSX+VBO off or setDrawOptions callback not being NULL.
setDrawOptions should be ommitable and fully VBOfialbe (?) in the
future, usually those just check for hidden flag of poly or similar.
2015-10-15 23:20:30 +03:00
Campbell Barton
2f0db80155
Fix crash pressing +/- in file-selector
...
Filenames over 128 chars would crash.
Move BLI_newname into file_ops,
this was only used in one place and isn't all that re-usable.
Also remove special behavior for 4 digits.
2015-10-16 04:57:52 +11:00
Campbell Barton
cebaedd709
Fix crash w/ PlayAnim & long filenames
...
Paths >128 chars could crash.
Replace BLI_newname with direct BLI_stringenc/dec use which makes more sense in this case.
2015-10-16 04:31:17 +11:00
Campbell Barton
14de9a5982
Knife tool: generalize angle snapping code
...
Replace hard-coded snap angles with function that allows arbitrary snapping increments.
Currently no user visible change.
2015-10-16 04:04:45 +11:00
Campbell Barton
99142ec7e0
BLI_math: isect_ray_plane_v3 now takes 4d plane
...
Was taking a triangle and doing ray-tri intersect.
2015-10-16 03:06:12 +11:00
Bastien Montagne
fa3dd5d9f4
Cleanup: BLO_read: linking API arg order and name.
...
linking API funcs would use 'name, idcode', when all other code here uses
(more sensible) 'idcode, name'.
Also, use 'name' arg name when we expect a bare name, without the prepended ID code, and
'idname' arg name when we expect a complete ID name.
And here too, idcode shall be short, not int!
2015-10-15 16:12:00 +02:00
Bastien Montagne
25f79d97de
Cleanup: BKE_idcode: idcode (types) are short, not int...
...
Also, use 'idcode' var name, as in many other places in Blender.
2015-10-15 16:12:00 +02:00
Campbell Barton
df1e9fac06
Fix error w/ printing knife header angle-snapping
2015-10-16 00:41:14 +11:00
Campbell Barton
e60d535443
3D View: support non-uniform scaled lamps
...
D1378 by @youle
Non-uniform scaled lamps now cast oval/rectangular shadows, viewport & BGE.
2015-10-15 22:36:31 +11:00
Campbell Barton
3de81314fa
Error in last commit
2015-10-15 21:30:24 +11:00
Campbell Barton
83d6b73e96
Error in last commit
2015-10-15 21:28:07 +11:00
Campbell Barton
0a82a20fe4
BLI_math: add normalize_m#_ex functions
...
Useful when we need to use the axis lengths too.
2015-10-15 21:03:27 +11:00
Campbell Barton
f53a21747c
Fix T46494: Can't de-select a face w/ mixed modes
2015-10-15 19:57:51 +11:00
Campbell Barton
a595cda2cd
Fix memory leaks in PlayAnim
...
Was never freeing filenames or pictures.
2015-10-15 17:45:53 +11:00
Campbell Barton
0be6ca0b83
Fix T46465: Lag scrubbing w/ PlayAnim
2015-10-15 17:25:43 +11:00
Campbell Barton
b4b2caffd8
PlayAnim: avoid list count setting frame from mouse
2015-10-15 16:56:30 +11:00
Campbell Barton
0296642794
Change version cycle to 'alpha'
2015-10-15 16:56:30 +11:00
Bastien Montagne
767d3f23b7
Fix T45900: Allow again white spaces in file names.
...
Should probably be added to 'a' release, should we do one...
2015-10-15 07:44:25 +02:00
Brecht Van Lommel
f823b9ece8
Fix T46483: vertex/edge slide with correct UVs sometimes pinning UVs.
2015-10-15 03:14:38 +02:00