blender.git
4 years agoCycles: Fix for watertight intersection
Sergey Sharybin [Thu, 22 Oct 2015 17:06:25 +0000 (22:06 +0500)]
Cycles: Fix for watertight intersection

It was possible to miss some intersection caused by wrong barycentric
coordinates sign.

Cases when one of the coordinate is zero and other are negative was not
handled correct.

4 years agoView3D: make ndof turntable & orbit speed match
Campbell Barton [Thu, 22 Oct 2015 16:16:21 +0000 (03:16 +1100)]
View3D: make ndof turntable & orbit speed match

4 years agoBLI_math: axis_angle_to_quat_single
Campbell Barton [Thu, 22 Oct 2015 16:08:17 +0000 (03:08 +1100)]
BLI_math: axis_angle_to_quat_single

Useful to avoid defining a vector for an axis-aligned rotation.
Matches axis_angle_to_mat3_single behavior.

4 years agoFix T46521: Python: bvh.ray_cast doesn't find a plane facing in the other direction...
Sergey Sharybin [Thu, 22 Oct 2015 15:29:52 +0000 (20:29 +0500)]
Fix T46521: Python: bvh.ray_cast doesn't find a plane facing in the other direction under certain circumstances

The issue was caused by wrong sign check. It originally came from more optimized
Cycles code where because of other reasons it wasn't visible yet. But in fact it
should be solved there as well.

4 years agoFix T46569: Crash w/ mask & locked-track enabled
Campbell Barton [Thu, 22 Oct 2015 14:40:36 +0000 (01:40 +1100)]
Fix T46569: Crash w/ mask & locked-track enabled

4 years agoCleanup: remove script ID-types
Campbell Barton [Thu, 22 Oct 2015 14:20:01 +0000 (01:20 +1100)]
Cleanup: remove script ID-types

Unused since 2.4x and unlikely to be reintroduced as ID-types.

4 years agoFix T46561: Crash in outliner delete hierarchy
Campbell Barton [Thu, 22 Oct 2015 07:42:44 +0000 (18:42 +1100)]
Fix T46561: Crash in outliner delete hierarchy

When children & parents were selected in the outliner,
it attempted to free the the object twice.

4 years agoFix T46565: Movie render crash w/o permissions
Campbell Barton [Thu, 22 Oct 2015 05:48:38 +0000 (16:48 +1100)]
Fix T46565: Movie render crash w/o permissions

Rendering to a path that didn't have write permissions would crash.

Also fix error where `G.is_rendering` was left set when rendering failed.

4 years agoBGE: Cleanup ConvertMaterial function.
Porteries Tristan [Wed, 21 Oct 2015 20:28:33 +0000 (22:28 +0200)]
BGE: Cleanup ConvertMaterial function.

- cleanup spaces;
- add braces;
- remove indendation around operator.

4 years agoFix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76, part II.
Bastien Montagne [Wed, 21 Oct 2015 18:06:49 +0000 (20:06 +0200)]
Fix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76, part II.

Different issue actually, here RAWTGA was simply forgotten in the alpha-capable formats...

4 years agoBGE: Fix physics meshes conversion with modifiers.
Porteries Tristan [Wed, 21 Oct 2015 10:15:35 +0000 (12:15 +0200)]
BGE: Fix physics meshes conversion with modifiers.

Previously meshes with modifiers were considerate as empty (no polys).

4 years agoUsual i18n tweaks & fixes...
Bastien Montagne [Tue, 20 Oct 2015 18:08:37 +0000 (20:08 +0200)]
Usual i18n tweaks & fixes...

4 years agoFix T46544: Can't unpack generated image
Campbell Barton [Tue, 20 Oct 2015 16:07:40 +0000 (03:07 +1100)]
Fix T46544: Can't unpack generated image

4 years agoRNA: Change behavior of Image.save()
Campbell Barton [Tue, 20 Oct 2015 15:26:23 +0000 (02:26 +1100)]
RNA: Change behavior of Image.save()

Previously it would save packed file(s),
which would ignore the image.filepath,
making it impossible to set the destination.

Add image.packed_files[...].save() so you can save packed files if its needed.

4 years agoFix T46496: GL Render fails w/ Anti-Aliasing
Campbell Barton [Tue, 20 Oct 2015 13:16:07 +0000 (00:16 +1100)]
Fix T46496: GL Render fails w/ Anti-Aliasing

Needed to check if scaled-multisample-blit is supported.

4 years agoFirst step to handle missing libs/datablocks when reading a file.
Bastien Montagne [Tue, 20 Oct 2015 12:44:57 +0000 (14:44 +0200)]
First step to handle missing libs/datablocks when reading a file.

Idea is, instead of ignoring completely missing linked datablocks, to
create void placeholders for them.

That way, you can work on your file, save it, and find again your missing data once
lib becomes available again. Or you can edit missing lib's path (in Outliner),
save and reload the file, and you are done.

Also, Outliner now shows broken libraries (and placeholders) with a 'broken lib' icon.

Future plans are also to be able to relocate missing libs and reload them at runtime.

Code notes:
    - Placeholder ID is just a regular datablock of same type as expected linked one,
      with 'default' data, and a LIB_MISSING bitflag set.
    - To allow creation of such datablocks, creation of datablocks in BKE was split in two step:
        + Allocation of memory itself.
        + Setting of all internal data to default values.

See also the design task (T43351).

Reviewed by @campbellbarton, thanks a bunch!

Differential Revision: https://developer.blender.org/D1394

4 years agoBLI: add new 'memory_utils' module with func checking a whole memory chunk is filled...
Bastien Montagne [Tue, 20 Oct 2015 12:39:08 +0000 (14:39 +0200)]
BLI: add new 'memory_utils' module with func checking a whole memory chunk is filled of zero,
and an helper to ensure all memory of a given structure passed a given member is filled of zero.

4 years agoMinor edits to sytem-info script
Campbell Barton [Tue, 20 Oct 2015 06:38:15 +0000 (17:38 +1100)]
Minor edits to sytem-info script

- list script paths on their own line.
- use title util function.

4 years agoAdd operator to close a window
Campbell Barton [Tue, 20 Oct 2015 04:41:13 +0000 (15:41 +1100)]
Add operator to close a window

Useful for Python scripts, which could duplicate but not close windows.

4 years agoNew function to draw offscreen, and related API changes
Dalai Felinto [Tue, 20 Oct 2015 03:03:00 +0000 (01:03 -0200)]
New function to draw offscreen, and related API changes

This expose the capability of handling offscreen drawing. The initial
support lays the barebones for addons to work with framebuffer objects
and implement 3d viewport offscreen drawing. This can be used by script
writers to make fisheye lens preview, head mounted display support, ...

The complete documentation is here: http://www.blender.org/api/blender_python_api_2_76_1/gpu.offscreen.html

Review and many changes by Campbell Barton (thank you :)

https://developer.blender.org/D1533

4 years agoCleanup: remove _POSIX_C_SOURCE undefine
Campbell Barton [Tue, 20 Oct 2015 03:06:29 +0000 (14:06 +1100)]
Cleanup: remove _POSIX_C_SOURCE undefine

4 years agoBGE: Cleanup BL_Action
Porteries Tristan [Mon, 19 Oct 2015 18:28:05 +0000 (20:28 +0200)]
BGE: Cleanup BL_Action

Remove initialization of m_endtime : fix compile about previous BL_Action cleanup.

4 years agoBGE: Cleanup BL_Action.
Porteries Tristan [Mon, 19 Oct 2015 17:32:54 +0000 (19:32 +0200)]
BGE: Cleanup BL_Action.

- Rename m_localtime to m_localframe to avoid ambiguity : it's a count for the actual action frame, not time.
- Delete m_end : it's unused.

4 years agoPy API docs: fix extracting bmesh.ops from C code.
Campbell Barton [Mon, 19 Oct 2015 16:55:31 +0000 (03:55 +1100)]
Py API docs: fix extracting bmesh.ops from C code.

4 years agoFix T46534: Crash loading corrupt HDR's
Campbell Barton [Mon, 19 Oct 2015 15:05:52 +0000 (02:05 +1100)]
Fix T46534: Crash loading corrupt HDR's

4 years agoCleanup: use UNLIKELY for checking corrupt HDR's
Campbell Barton [Mon, 19 Oct 2015 15:12:41 +0000 (02:12 +1100)]
Cleanup: use UNLIKELY for checking corrupt HDR's

4 years agoBGE: Fix T46381 : last action frame not updated.
Porteries Tristan [Mon, 19 Oct 2015 14:03:40 +0000 (16:03 +0200)]
BGE: Fix T46381 : last action frame not updated.

It fix T46381. Normally BL_Action::Update (manage action time, end, loop…) should be called the same number of times as BL_Action::UpdateIPO (update action position, scale ect… in the game object).
But the bug report shows that UpdateIPO is called one less time than Update. To fix it i revert the commit 362b25b38287cb75e4d22b30bdbc7f47e8eb3fdf and implement a mutex in BL_Action::Update.
Example file : {F245823}

Reviewers: lordloki, kupoman, campbellbarton, youle, moguri, sybren

Reviewed By: youle, moguri, sybren

Maniphest Tasks: T39928, T46381

Differential Revision: https://developer.blender.org/D1562

4 years agoFix T46529: Unwrap UV w/ use-subsurf fails
Campbell Barton [Mon, 19 Oct 2015 11:15:03 +0000 (22:15 +1100)]
Fix T46529: Unwrap UV w/ use-subsurf fails

Regression since moving to looptri.

4 years agoGPU: check for blit support, using MSAA FBO's
Campbell Barton [Mon, 19 Oct 2015 01:31:20 +0000 (12:31 +1100)]
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.

4 years agoFix T46531: Cannot use % in filenames.
Bastien Montagne [Sun, 18 Oct 2015 16:51:08 +0000 (18:51 +0200)]
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.

4 years agoBLI_task: fix bad freeing of current task_thread in case POSIX thread creation fails.
Bastien Montagne [Sun, 18 Oct 2015 12:39:37 +0000 (14:39 +0200)]
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

4 years agoFix T46520: mathutils.bvhtree crashes with distance input.
Bastien Montagne [Sun, 18 Oct 2015 10:09:42 +0000 (12:09 +0200)]
Fix T46520: mathutils.bvhtree crashes with distance input.

Should be backported to 'a' release.

4 years agoFix T46524: Use Alpha (Straight/Premultiply) option missing in 2.76 for DDS files.
Bastien Montagne [Sun, 18 Oct 2015 09:13:33 +0000 (11:13 +0200)]
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.

4 years agoBGE: Use references in CcdPhysicsEnvironment::RemoveConstraint.
Porteries Tristan [Sat, 17 Oct 2015 19:44:40 +0000 (21:44 +0200)]
BGE: Use references in CcdPhysicsEnvironment::RemoveConstraint.

It avoids assert calls on rigid body destructor.

4 years agoFix T46429: Movie clip is deformed by resolution multiplier when offset is added...
Bastien Montagne [Sat, 17 Oct 2015 09:32:04 +0000 (11:32 +0200)]
Fix T46429: Movie clip is deformed by resolution multiplier when offset is added in sequence editor.

4 years agocorrect own error in rectangle clamping
Campbell Barton [Sat, 17 Oct 2015 07:52:05 +0000 (18:52 +1100)]
correct own error in rectangle clamping

4 years agoIMB_thumbs: add missing error check
Campbell Barton [Sat, 17 Oct 2015 05:14:36 +0000 (16:14 +1100)]
IMB_thumbs: add missing error check

4 years agoCleanup: warnings
Campbell Barton [Sat, 17 Oct 2015 05:06:45 +0000 (16:06 +1100)]
Cleanup: warnings

- remove NULL checks for args already set as ATTR_NONNULL.
- double promotion.

4 years agoCleanup: BLI_path comments
Campbell Barton [Sat, 17 Oct 2015 05:04:54 +0000 (16:04 +1100)]
Cleanup: BLI_path comments

4 years agoCleanup: remove unused BLI_string_to_utf8
Campbell Barton [Sat, 17 Oct 2015 05:00:59 +0000 (16:00 +1100)]
Cleanup: remove unused BLI_string_to_utf8

4 years agoFix broken CD_NORMAL interpolation callback (would generate non-unit vectors).
Bastien Montagne [Fri, 16 Oct 2015 19:52:50 +0000 (21:52 +0200)]
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!

4 years agoFix T46508: data_transfer of normals fails in case objects are transformed.
Bastien Montagne [Fri, 16 Oct 2015 19:28:22 +0000 (21:28 +0200)]
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... :/

4 years agoMesh remapping: fix loop 'best matching normals' not using transform space.
Bastien Montagne [Fri, 16 Oct 2015 17:23:46 +0000 (19:23 +0200)]
Mesh remapping: fix loop 'best matching normals' not using transform space.

Also, cleanup, reduce declarations of tmp_co/_no...

4 years agoCleanup: style
Campbell Barton [Fri, 16 Oct 2015 15:46:38 +0000 (02:46 +1100)]
Cleanup: style

Also use gcc style file:line: syntax for errors.

4 years agoFix T46510: VSE View-all crops out image
Campbell Barton [Fri, 16 Oct 2015 15:01:41 +0000 (02:01 +1100)]
Fix T46510: VSE View-all crops out image

4 years agoCleanup: use bools for v2d, minor ws edits
Campbell Barton [Fri, 16 Oct 2015 14:01:57 +0000 (01:01 +1100)]
Cleanup: use bools for v2d, minor ws edits

4 years agoFix popup menu glitch, scrolling at high dpi
Campbell Barton [Fri, 16 Oct 2015 13:23:57 +0000 (00:23 +1100)]
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.

4 years agoUI: expose UI_POPUP_MENU_TOP for use elsewhere.
Campbell Barton [Fri, 16 Oct 2015 13:21:35 +0000 (00:21 +1100)]
UI: expose UI_POPUP_MENU_TOP for use elsewhere.

4 years agoBLI_rect: add BLI_rctf_clamp
Campbell Barton [Fri, 16 Oct 2015 13:03:29 +0000 (00:03 +1100)]
BLI_rect: add BLI_rctf_clamp

Clamp one rect within another.

This is done inline in the UI code, which gets verbose.

4 years agoCleanup: redundant struct qualifiers
Campbell Barton [Fri, 16 Oct 2015 13:02:07 +0000 (00:02 +1100)]
Cleanup: redundant struct qualifiers

4 years agoerror in last commit
Campbell Barton [Fri, 16 Oct 2015 10:57:59 +0000 (21:57 +1100)]
error in last commit

4 years agoFix for missing id_lib_extern, assigning ID's
Campbell Barton [Fri, 16 Oct 2015 10:50:23 +0000 (21:50 +1100)]
Fix for missing id_lib_extern, assigning ID's

4 years agoFix T46502: Linked dupli-group lost on reload
Campbell Barton [Fri, 16 Oct 2015 09:55:23 +0000 (20:55 +1100)]
Fix T46502: Linked dupli-group lost on reload

4 years agoRevert part of rB4d9345479aa86f61, and cleanup a bit.
Bastien Montagne [Fri, 16 Oct 2015 09:21:12 +0000 (11:21 +0200)]
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...

4 years agoUI: only show thumbnail size when its enabled
Campbell Barton [Fri, 16 Oct 2015 07:51:33 +0000 (18:51 +1100)]
UI: only show thumbnail size when its enabled

Also make enum identifiers less cryptic.

4 years agoCleanup: simplify BLI_stringdec use
Campbell Barton [Fri, 16 Oct 2015 04:17:54 +0000 (15:17 +1100)]
Cleanup: simplify BLI_stringdec use

4 years agoFix T46503: Snap scale fails using corner pivot
Campbell Barton [Fri, 16 Oct 2015 03:45:05 +0000 (14:45 +1100)]
Fix T46503: Snap scale fails using corner pivot

4 years agoVBO implementation for GLSL subsurfed meshes (non-mapped case)
Antony Riakiotakis [Thu, 15 Oct 2015 19:24:40 +0000 (22:24 +0300)]
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.

4 years agoFix crash pressing +/- in file-selector
Campbell Barton [Thu, 15 Oct 2015 17:57:52 +0000 (04:57 +1100)]
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.

4 years agoFix crash w/ PlayAnim & long filenames
Campbell Barton [Thu, 15 Oct 2015 17:31:17 +0000 (04:31 +1100)]
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.

4 years agoKnife tool: generalize angle snapping code
Campbell Barton [Thu, 15 Oct 2015 16:57:31 +0000 (03:57 +1100)]
Knife tool: generalize angle snapping code

Replace hard-coded snap angles with function that allows arbitrary snapping increments.

Currently no user visible change.

4 years agoBLI_math: isect_ray_plane_v3 now takes 4d plane
Campbell Barton [Thu, 15 Oct 2015 15:59:30 +0000 (02:59 +1100)]
BLI_math: isect_ray_plane_v3 now takes 4d plane

Was taking a triangle and doing ray-tri intersect.

4 years agoFix T46493: Wrong camera zoom blur with non-unit pixel aspect
Sergey Sharybin [Thu, 15 Oct 2015 14:32:18 +0000 (19:32 +0500)]
Fix T46493: Wrong camera zoom blur with non-unit pixel aspect

4 years agoCleanup: BLO_read: linking API arg order and name.
Bastien Montagne [Thu, 15 Oct 2015 14:04:04 +0000 (16:04 +0200)]
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!

4 years agoCleanup: BKE_idcode: idcode (types) are short, not int...
Bastien Montagne [Thu, 15 Oct 2015 14:02:36 +0000 (16:02 +0200)]
Cleanup: BKE_idcode: idcode (types) are short, not int...
Also, use 'idcode' var name, as in many other places in Blender.

4 years agoFix error w/ printing knife header angle-snapping
Campbell Barton [Thu, 15 Oct 2015 13:41:14 +0000 (00:41 +1100)]
Fix error w/ printing knife header angle-snapping

4 years ago3D View: support non-uniform scaled lamps
Campbell Barton [Thu, 15 Oct 2015 11:36:31 +0000 (22:36 +1100)]
3D View: support non-uniform scaled lamps

D1378 by @youle

Non-uniform scaled lamps now cast oval/rectangular shadows, viewport & BGE.

4 years agoError in last commit
Campbell Barton [Thu, 15 Oct 2015 10:28:07 +0000 (21:28 +1100)]
Error in last commit

4 years agoError in last commit
Campbell Barton [Thu, 15 Oct 2015 10:28:07 +0000 (21:28 +1100)]
Error in last commit

4 years agoBLI_math: add normalize_m#_ex functions
Campbell Barton [Thu, 15 Oct 2015 10:03:27 +0000 (21:03 +1100)]
BLI_math: add normalize_m#_ex functions

Useful when we need to use the axis lengths too.

4 years agoFix T46494: Can't de-select a face w/ mixed modes
Campbell Barton [Thu, 15 Oct 2015 08:56:18 +0000 (19:56 +1100)]
Fix T46494: Can't de-select a face w/ mixed modes

4 years agoFix memory leaks in PlayAnim
Campbell Barton [Thu, 15 Oct 2015 06:45:53 +0000 (17:45 +1100)]
Fix memory leaks in PlayAnim

Was never freeing filenames or pictures.

4 years agoFix T46465: Lag scrubbing w/ PlayAnim
Campbell Barton [Thu, 15 Oct 2015 06:25:43 +0000 (17:25 +1100)]
Fix T46465: Lag scrubbing w/ PlayAnim

4 years agoPlayAnim: avoid list count setting frame from mouse
Campbell Barton [Thu, 15 Oct 2015 05:45:49 +0000 (16:45 +1100)]
PlayAnim: avoid list count setting frame from mouse

4 years agoChange version cycle to 'alpha'
Campbell Barton [Thu, 15 Oct 2015 04:34:26 +0000 (15:34 +1100)]
Change version cycle to 'alpha'

4 years agoFix T45900: Allow again white spaces in file names.
Bastien Montagne [Thu, 15 Oct 2015 05:44:25 +0000 (07:44 +0200)]
Fix T45900: Allow again white spaces in file names.

Should probably be added to 'a' release, should we do one...

4 years agoFix T46483: vertex/edge slide with correct UVs sometimes pinning UVs.
Brecht Van Lommel [Thu, 15 Oct 2015 01:13:02 +0000 (03:13 +0200)]
Fix T46483: vertex/edge slide with correct UVs sometimes pinning UVs.

4 years agoFix related to T46223: memory leak when loading multilayer multiview images.
Brecht Van Lommel [Sun, 11 Oct 2015 01:29:28 +0000 (03:29 +0200)]
Fix related to T46223: memory leak when loading multilayer multiview images.

Differential Revision: https://developer.blender.org/D1549

4 years agoFix T46223: multiview image sequences crashing.
Brecht Van Lommel [Sat, 10 Oct 2015 23:14:02 +0000 (01:14 +0200)]
Fix T46223: multiview image sequences crashing.

Differential Revision: https://developer.blender.org/D1549

4 years agoFix T46451: vertex/edge slide clamp not available in redo popup.
Brecht Van Lommel [Wed, 14 Oct 2015 23:46:28 +0000 (01:46 +0200)]
Fix T46451: vertex/edge slide clamp not available in redo popup.

4 years agoBGE: Fix animations update when scene is suspended.
Porteries Tristan [Wed, 14 Oct 2015 20:53:25 +0000 (22:53 +0200)]
BGE: Fix animations update when scene is suspended.

4 years agoFix T46487: OpenSubdiv objects are invisible in Blender Internal "Rendered" viewport...
Sergey Sharybin [Wed, 14 Oct 2015 19:17:54 +0000 (00:17 +0500)]
Fix T46487: OpenSubdiv objects are invisible in Blender Internal "Rendered" viewport mode

4 years agoFix T46453: JPEG quality not stored in file
Campbell Barton [Wed, 14 Oct 2015 09:57:58 +0000 (20:57 +1100)]
Fix T46453: JPEG quality not stored in file

This is a feature unique to jpeg that would store the quality it was saved.

- Use struct instead of bit-shifting.
- No longer store the 'flag'.

4 years agoCleanup: remove historic, blender-only jpeg io
Campbell Barton [Wed, 14 Oct 2015 09:13:57 +0000 (20:13 +1100)]
Cleanup: remove historic, blender-only jpeg io

4 years agoComment cleanup, use better lower bound for waveform
Antony Riakiotakis [Wed, 14 Oct 2015 09:23:17 +0000 (12:23 +0300)]
Comment cleanup, use better lower bound for waveform

4 years agoFix T46189, draw style for waveforms occludes sequence strip text.
Antony Riakiotakis [Wed, 14 Oct 2015 09:15:03 +0000 (12:15 +0300)]
Fix T46189, draw style for waveforms occludes sequence strip text.

Used old (2.49 era) filled style for drawing here, with white color and
alpha blending.
Also changed drawing to do linear interpolation between samples instead
of ugly square wave in high zoom.
This could be improved upon, with real waveform drawing in higher zoom
levels, but I'll leave this for later since it may need some hacking on
audaspace level.

4 years agoFix T46284: Texture paint, wrong shading mode
Campbell Barton [Wed, 14 Oct 2015 05:21:01 +0000 (16:21 +1100)]
Fix T46284: Texture paint, wrong shading mode

Project-paint now supports painting to cycles materials.

4 years agoSupport for multi-sample sequencer GL render
Campbell Barton [Wed, 14 Oct 2015 01:39:52 +0000 (12:39 +1100)]
Support for multi-sample sequencer GL render

OpenGL sequencer render now uses a single fbo for all rendering.

4 years agoSupport for multi-sample off-screen buffers
Campbell Barton [Tue, 13 Oct 2015 23:33:30 +0000 (10:33 +1100)]
Support for multi-sample off-screen buffers

Replaces much slower manual accumulation buffer which simply did multiple renders.

Needs OpenGL3.2, otherwise multi-sample is disabled.

4 years agoCycles: Add support for motion blur position
Sergey Sharybin [Mon, 29 Jun 2015 15:40:13 +0000 (17:40 +0200)]
Cycles: Add support for motion blur position

This adds an option to control at what time relative to the current frame
the shutter is fully opened. Supported options are:

- Shutter is starting to open at the current frame
- Shutter is fully opened at the current frame
- Shutter is fully closed  at the current frame

Custom shutter time offset is possible, same as custom curve for shutter
openness but those are considered nice things to have rather than something
crucial.

Reviewers: juicyfruit, dingto

Subscribers: venomgfx, hjalti

Differential Revision: https://developer.blender.org/D1380

4 years agoMake sure submodules are pointing to master branches
Sergey Sharybin [Tue, 13 Oct 2015 13:02:51 +0000 (18:02 +0500)]
Make sure submodules are pointing to master branches

4 years agoMissed this in previous commit...
Bastien Montagne [Tue, 13 Oct 2015 11:58:43 +0000 (13:58 +0200)]
Missed this in previous commit...

4 years agoFix T46467: Clean Keyframes removes the channels.
Bastien Montagne [Tue, 13 Oct 2015 10:58:04 +0000 (12:58 +0200)]
Fix T46467: Clean Keyframes removes the channels.

4 years agoFix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on lines, but...
Bastien Montagne [Tue, 13 Oct 2015 07:59:42 +0000 (09:59 +0200)]
Fix T46002: mathutils.geometry.intersect_line_line_2d doesn't operate on lines, but on line segments.

Ugly issue really, but at least doc now matches behavior of the function. :|

4 years agomissed last commit (use utility function)
Campbell Barton [Tue, 13 Oct 2015 05:31:43 +0000 (16:31 +1100)]
missed last commit (use utility function)

4 years agoCleanup: simplify view3d trackball logic
Campbell Barton [Tue, 13 Oct 2015 05:26:00 +0000 (16:26 +1100)]
Cleanup: simplify view3d trackball logic

4 years agoFix T46450: Seams from islands, wont show 'Sharp'
Campbell Barton [Mon, 12 Oct 2015 22:00:03 +0000 (09:00 +1100)]
Fix T46450: Seams from islands, wont show 'Sharp'

4 years agoFix T46458: BGE Crash on load
Campbell Barton [Mon, 12 Oct 2015 21:43:41 +0000 (08:43 +1100)]
Fix T46458: BGE Crash on load

regression from 96dd213e7

4 years agoUsual UI message fixes...
Bastien Montagne [Mon, 12 Oct 2015 19:34:14 +0000 (21:34 +0200)]
Usual UI message fixes...

4 years agoAdd functions to compute normals (verts, polys and loops ones) for a given shapekey.
Bastien Montagne [Mon, 12 Oct 2015 18:12:55 +0000 (20:12 +0200)]
Add functions to compute normals (verts, polys and loops ones) for a given shapekey.

Title says pretty much everything, we now have BKE and RNA funcs to get vertex, poly and
loop normals of a given shapekey.

This will be used e.g. in FBX exporter (shapekeys need normal data too).

Reviewed By: campbellbarton

Differential Revision: https://developer.blender.org/D1510