blender.git
8 years agoFix #36641: maya key configuration shift + LMB drag border select did not work
Brecht Van Lommel [Mon, 9 Sep 2013 20:23:38 +0000 (20:23 +0000)]
Fix #36641: maya key configuration shift + LMB drag border select did not work
anymore. This broke after the change to make holding shift deselect with B key
border select in the regular Blender keymap.

8 years agoUsual UI messages fixes...
Bastien Montagne [Mon, 9 Sep 2013 20:22:01 +0000 (20:22 +0000)]
Usual UI messages fixes...

8 years agoAttempt fix for #36688.
Antony Riakiotakis [Mon, 9 Sep 2013 18:39:51 +0000 (18:39 +0000)]
Attempt fix for #36688.

Curves may not be not initialized when called from python. C code
explicilty says that curvemapping_initialize should be called prior to
evaluating the curve, however the curve clip rectangle is not available
when calling evaluation on the curvemap. This is not possible unless we
force the evaluation on CurveMapping level, not on CurveMap level.

For now just pass a rectangle with the x boundary values of the curvemap
for evaluation to avoid the crash.

8 years agoFix #36692: crash with split viewer compositing node and rendering. Only one viewer
Brecht Van Lommel [Mon, 9 Sep 2013 18:00:25 +0000 (18:00 +0000)]
Fix #36692: crash with split viewer compositing node and rendering. Only one viewer
node should write to the viewer image, the logic to check this was wrong, now made
it the same as the viewer node.

8 years agoOSX/Scons/clang: compilefix for libmv, as discussed with brech just globally
Jens Verwiebe [Mon, 9 Sep 2013 17:26:09 +0000 (17:26 +0000)]
OSX/Scons/clang: compilefix for libmv, as discussed with brech just globally

8 years agoFix #36593: crash duplicating window on OS X in some situations. User data
Brecht Van Lommel [Mon, 9 Sep 2013 16:55:35 +0000 (16:55 +0000)]
Fix #36593: crash duplicating window on OS X in some situations. User data
should be set before GHOST_SetWindowState, since this may generate an event.

8 years agoOSX/clang5: revert 59960, todo: make it global
Jens Verwiebe [Mon, 9 Sep 2013 16:24:23 +0000 (16:24 +0000)]
OSX/clang5: revert 59960, todo: make it global

8 years agoOSX/clang5: fix broken compiling
Jens Verwiebe [Mon, 9 Sep 2013 15:45:09 +0000 (15:45 +0000)]
OSX/clang5: fix broken compiling

8 years agoSome more fixes to missing look initialization
Sergey Sharybin [Mon, 9 Sep 2013 15:34:13 +0000 (15:34 +0000)]
Some more fixes to missing look initialization

8 years ago3D View / UI:
Thomas Dinges [Mon, 9 Sep 2013 14:26:39 +0000 (14:26 +0000)]
3D View / UI:
* Save some space in the "Curve Display" panel.

Patch by Sebastian K├Ânig, thanks!

8 years agoFilm response looks:
Brecht Van Lommel [Mon, 9 Sep 2013 14:23:58 +0000 (14:23 +0000)]
Film response looks:

* Reorder list a bit to put brands together
* Move looks menu below views
* Rename camera_response to film_response folder, to make clear that these
  are photographic film types, not camera models

8 years agoFix #36682: disable shift+backspace shortcut to delete all text in text fields,
Brecht Van Lommel [Mon, 9 Sep 2013 14:23:47 +0000 (14:23 +0000)]
Fix #36682: disable shift+backspace shortcut to delete all text in text fields,
it's too easy to hit accidentally and isn't a standard shortcut. Deleting all
text is quite easy by just pressing backspace right after clicking the text
field anyway.

8 years agoFix OpenCL build error.
Brecht Van Lommel [Mon, 9 Sep 2013 12:15:16 +0000 (12:15 +0000)]
Fix OpenCL build error.

8 years agoFix libmv build error on OS X with Xcode 5.
Brecht Van Lommel [Mon, 9 Sep 2013 12:15:14 +0000 (12:15 +0000)]
Fix libmv build error on OS X with Xcode 5.

8 years agoCreate/delete keyframe for motion tracks in clip editor
Sergey Sharybin [Mon, 9 Sep 2013 11:55:52 +0000 (11:55 +0000)]
Create/delete keyframe for motion tracks in clip editor

Use I to create a new keyframe, Alt-I to remove the ketframe.

8 years agoAvoid using "bundle" in condole message print
Sergey Sharybin [Mon, 9 Sep 2013 11:40:41 +0000 (11:40 +0000)]
Avoid using "bundle" in condole message print

According to bf-vfx the word "bundle" was confusing
for artists.

8 years agoEnable vertex snapping to bundle positions
Sergey Sharybin [Mon, 9 Sep 2013 11:37:37 +0000 (11:37 +0000)]
Enable vertex snapping to bundle positions

This means it's possible now to snap stuff to
reconstructed tracks positions.

8 years agoFilm response curves implemented as a looks
Sergey Sharybin [Mon, 9 Sep 2013 09:48:26 +0000 (09:48 +0000)]
Film response curves implemented as a looks

This commit implement's OCIO's Looks idea which
is about applying some color correction on the
buffer before it get's affected by a display
transform.

This is mainly used to modify images in an
artistics way.

Currently we've got looks generated from film
response curves for all sorts of cameras.

Patch by both of me and Brecht.

8 years agofix [#36685] crash calculating tangent space data on degenerate geometry
Campbell Barton [Mon, 9 Sep 2013 09:33:34 +0000 (09:33 +0000)]
fix [#36685] crash calculating tangent space data on degenerate geometry

the error was that the range check was done on the float before converting to an int.
now convert to and int first and ensure a valid range on that.

8 years agoFix own mistake in one of previous commits
Sergey Sharybin [Mon, 9 Sep 2013 08:50:12 +0000 (08:50 +0000)]
Fix own mistake in one of previous commits

Was overriding list's link next/prev after it was
added to the list.

Also, no need to set next/prev to NULL when adding
a link to the list.

8 years agoFix #36663, Bone properties sometimes vanish when mousing into properties window.
Lukas Toenne [Mon, 9 Sep 2013 06:31:30 +0000 (06:31 +0000)]
Fix #36663, Bone properties sometimes vanish when mousing into properties window.
Active edit bone was cleared from armature after each file save, even though the edit data is not actually freed then. Without the active edit bone the poll functions for bone panels fail.

8 years agocorrect error in recent changes for building with openmp.
Campbell Barton [Mon, 9 Sep 2013 05:42:26 +0000 (05:42 +0000)]
correct error in recent changes for building with openmp.
rename DM_OMP_LIMIT to BKE_MESH_OMP_LIMIT and set to 0 when in debug mode, same for BM_OMP_LIMIT.

8 years agoenable strict flags for mesh_evaluate.c
Campbell Barton [Mon, 9 Sep 2013 03:12:23 +0000 (03:12 +0000)]
enable strict flags for mesh_evaluate.c

8 years agoremove use of BLI_array in BKE_mesh_mpoly_to_mface(). was over-allocating anyway...
Campbell Barton [Mon, 9 Sep 2013 02:16:22 +0000 (02:16 +0000)]
remove use of BLI_array in BKE_mesh_mpoly_to_mface(). was over-allocating anyway so just allocate the array once.

8 years agomove mesh evaluation functions (normal, mapping, smooth group... etc, calculations...
Campbell Barton [Mon, 9 Sep 2013 02:11:44 +0000 (02:11 +0000)]
move mesh evaluation functions (normal, mapping, smooth group... etc, calculations) into mesh_evaluate.c.
mesh.c was over 4k lines and complex functions mixed in with general library management.

8 years agoCode cleanup: Minor function capitalization fix
Joseph Mansfield [Mon, 9 Sep 2013 00:06:23 +0000 (00:06 +0000)]
Code cleanup: Minor function capitalization fix

8 years agoscrew tool used uninitialized normal to detect flipping direction.
Campbell Barton [Sun, 8 Sep 2013 22:52:48 +0000 (22:52 +0000)]
screw tool used uninitialized normal to detect flipping direction.

lookes like bug from bmesh merge, restored from 2.4x.

8 years agocode cleanup: warnings and redundant checks.
Campbell Barton [Sun, 8 Sep 2013 20:25:31 +0000 (20:25 +0000)]
code cleanup: warnings and redundant checks.

8 years agoCycles:
Thomas Dinges [Sun, 8 Sep 2013 18:59:39 +0000 (18:59 +0000)]
Cycles:
* Refactor PathState struct and functions into its own file.

8 years agoChanges to Freestyle default parameters:
Tamito Kajiyama [Sun, 8 Sep 2013 17:56:04 +0000 (17:56 +0000)]
Changes to Freestyle default parameters:
- The "Same Object" chaining option enabled (see follow-up discussions in Bug #36629).
- Sphere radius set to 0.1 (was 1.0 resulting in a longer computation time).

8 years agoCycles:
Thomas Dinges [Sun, 8 Sep 2013 17:20:47 +0000 (17:20 +0000)]
Cycles:
* Fix some compile errors, when building without Branched Path.

8 years agoSome fixes to tips...
Bastien Montagne [Sun, 8 Sep 2013 14:01:14 +0000 (14:01 +0000)]
Some fixes to tips...

8 years agoupdate bmesh doxy docs, remove double-promotion warnings in remove-strict-flags cmake...
Campbell Barton [Sun, 8 Sep 2013 06:55:58 +0000 (06:55 +0000)]
update bmesh doxy docs, remove double-promotion warnings in remove-strict-flags cmake macro.

8 years agocode cleanup: quiet warnings
Campbell Barton [Sun, 8 Sep 2013 06:05:42 +0000 (06:05 +0000)]
code cleanup: quiet warnings

8 years agopatch [#36633] Correct headers for renders saved as bitmap (.bmp) format.
Campbell Barton [Sun, 8 Sep 2013 03:39:45 +0000 (03:39 +0000)]
patch [#36633] Correct headers for renders saved as bitmap (.bmp) format.
by Brandon Northcutt (occamsdream)

Blender was writing invalid bitmaps that imagemagick and ffmpeg couldn't read.

8 years agoRemove unused constant.
Sergey Sharybin [Sat, 7 Sep 2013 19:44:01 +0000 (19:44 +0000)]
Remove unused constant.

8 years agoCode cleanup: us commented out arg names rather than leaving them if unused
Sergey Sharybin [Sat, 7 Sep 2013 19:41:46 +0000 (19:41 +0000)]
Code cleanup: us commented out arg names rather than leaving them if unused

8 years agoshrink-wrap constraint, improve and remove some limitations.
Campbell Barton [Sat, 7 Sep 2013 12:59:16 +0000 (12:59 +0000)]
shrink-wrap constraint, improve and remove some limitations.
- ability to change the space the axis is projected in (so you can choose worldspace or -space, was always local-space before).
- support projecting on a negative axis, without this some very simple clamping is not possible if the direction happened not to be positive.
- add distance limit (same as modifier), without this single meshes surrounding an object would make the constraint impossible to use in some cases (it would snap to the wrong side).

note: this removes the ability to project on multiple axes at once but this option only added up directions and didnt project on multiple axes as you might expect.

8 years agoUsual blenderplayer stub fix... ;)
Bastien Montagne [Sat, 7 Sep 2013 12:46:48 +0000 (12:46 +0000)]
Usual blenderplayer stub fix... ;)

8 years agouse strict flags for gridfill, use unsigned ints.
Campbell Barton [Sat, 7 Sep 2013 08:41:29 +0000 (08:41 +0000)]
use strict flags for gridfill, use unsigned ints.

8 years agochanges to grid fill
Campbell Barton [Sat, 7 Sep 2013 08:13:39 +0000 (08:13 +0000)]
changes to grid fill
- use 4 weights for vertex customdata blending (was previously only using 2)
- option for simple blending, which blends locations using weights too and doesn't attempt to maintain the shape,
  useful for flat surfaces or times when keeping the shape gives odd results.

8 years agomissing NULL check in recent commit, also skip some calculations in mean_value_half_t...
Campbell Barton [Sat, 7 Sep 2013 06:56:27 +0000 (06:56 +0000)]
missing NULL check in recent commit, also skip some calculations in mean_value_half_tan functions for degenerate cases.

8 years agoavoid divide by zeto in node preview drawing.
Campbell Barton [Sat, 7 Sep 2013 04:35:26 +0000 (04:35 +0000)]
avoid divide by zeto in node preview drawing.

8 years agorna wrap WM_cursor_warp
Campbell Barton [Fri, 6 Sep 2013 23:17:29 +0000 (23:17 +0000)]
rna wrap WM_cursor_warp

8 years agowrap cursor setting so python can make use of it, eg:
Campbell Barton [Fri, 6 Sep 2013 22:54:22 +0000 (22:54 +0000)]
wrap cursor setting so python can make use of it, eg:
- win.cursor_set('WAIT')
- win.cursor_modal_set('TEXT')
- win.cursor_modal_restore()

8 years agorename cursor setting functions to make modal set/restore more clearly related functions.
Campbell Barton [Fri, 6 Sep 2013 22:34:29 +0000 (22:34 +0000)]
rename cursor setting functions to make modal set/restore more clearly related functions.

8 years agoCode cleanup / Cycles:
Thomas Dinges [Fri, 6 Sep 2013 16:07:49 +0000 (16:07 +0000)]
Code cleanup / Cycles:
* Some cleanup for disabled Volume code.

8 years ago3D View: add shift+Z shortcut key to switch to Rendered draw mode.
Brecht Van Lommel [Fri, 6 Sep 2013 13:25:54 +0000 (13:25 +0000)]
3D View: add shift+Z shortcut key to switch to Rendered draw mode.

8 years agoCMake and scons update to detect OS X 10.9, cmake patch by Jake Kauth.
Brecht Van Lommel [Fri, 6 Sep 2013 12:43:27 +0000 (12:43 +0000)]
CMake and scons update to detect OS X 10.9, cmake patch by Jake Kauth.

8 years agoFix #36672: outliner allowed to toggle linked group visibility, which should not
Brecht Van Lommel [Fri, 6 Sep 2013 12:11:15 +0000 (12:11 +0000)]
Fix #36672: outliner allowed to toggle linked group visibility, which should not
be allowed because this is linked data, so any changes would not be saved.

8 years agoWoops, minr style changes are needed.
Sergey Sharybin [Fri, 6 Sep 2013 10:23:21 +0000 (10:23 +0000)]
Woops, minr style changes are needed.

8 years agoAvoid tracks reallocation and planes traversal in tracks_map_merge
Sergey Sharybin [Fri, 6 Sep 2013 10:21:56 +0000 (10:21 +0000)]
Avoid tracks reallocation and planes traversal in tracks_map_merge

Would save us a bit of time when doing 2D tracking.

8 years agoOn the second thought, no need to go between straight and premul when doing AA for...
Sergey Sharybin [Fri, 6 Sep 2013 09:56:04 +0000 (09:56 +0000)]
On the second thought, no need to go between straight and premul when doing AA for plane warp node

8 years agogrid-fill support for customdata, so filled areas have UV's, vertex colors etc interp...
Campbell Barton [Fri, 6 Sep 2013 06:48:17 +0000 (06:48 +0000)]
grid-fill support for customdata, so filled areas have UV's, vertex colors etc interpolated from the boundary.
also support cases where only some of the boundary edges have faces to interpolate from.

8 years agobmesh utility functions BM_face_as_array_loop_tri, BM_face_as_array_loop_quad
Campbell Barton [Fri, 6 Sep 2013 06:27:22 +0000 (06:27 +0000)]
bmesh utility functions BM_face_as_array_loop_tri, BM_face_as_array_loop_quad
also set attributes for the header and remove debug print in mask.c

8 years agofix for barycentric_weights_v2_quad() divide by zero when the location we're checking...
Campbell Barton [Fri, 6 Sep 2013 05:44:18 +0000 (05:44 +0000)]
fix for barycentric_weights_v2_quad() divide by zero when the location we're checking the weight of touches one of the weighting coords exactly.

8 years agoerror in recent gridfill commit, calculating span last failed.
Campbell Barton [Fri, 6 Sep 2013 02:59:25 +0000 (02:59 +0000)]
error in recent gridfill commit, calculating span last failed.

8 years agostarting blenderplater wasnt flipping use_deprecation_warnings when it should, also...
Campbell Barton [Fri, 6 Sep 2013 02:50:28 +0000 (02:50 +0000)]
starting blenderplater wasnt flipping use_deprecation_warnings when it should, also use values directly without converting to ints.

8 years agofix for bug in GHOST/SDL, events dont always have a window (which ghost needs).
Campbell Barton [Fri, 6 Sep 2013 01:40:20 +0000 (01:40 +0000)]
fix for bug in GHOST/SDL, events dont always have a window (which ghost needs).
fallback to the window with the active opengl context.

8 years agoBGE Fix: [#32360] Standalone Player switches not working
Daniel Stokes [Thu, 5 Sep 2013 23:09:14 +0000 (23:09 +0000)]
BGE Fix: [#32360] Standalone Player switches not working

Launching the player from the Blender UI now makes use of the "Debug Properties", "Framerate and Profile", and "Deprecation Warnings" options by setting the appropriate command line flags.

8 years agogrid-fill now detects non-square grids (this is what users would expect)
Campbell Barton [Thu, 5 Sep 2013 22:58:35 +0000 (22:58 +0000)]
grid-fill now detects non-square grids (this is what users would expect)

http://www.graphicall.org/ftp/ideasman42/gridfill_detect_nonsquare.png

8 years agosorting utility functions for simple cases - sorting pointers by float for example.
Campbell Barton [Thu, 5 Sep 2013 22:24:12 +0000 (22:24 +0000)]
sorting utility functions for simple cases - sorting pointers by float for example.

8 years agoFixing a problem with variance shadow maps blurring out on transparent receivers...
Daniel Stokes [Thu, 5 Sep 2013 22:05:52 +0000 (22:05 +0000)]
Fixing a problem with variance shadow maps blurring out on transparent receivers in the Game Engine reported by Sam Cameron on the IRC.

Also correcting some slight blurring over time by making sure the color buffer is cleared for shadows.

8 years agoalign BevelSort strict to save some bytes. use camel case.
Campbell Barton [Thu, 5 Sep 2013 21:45:05 +0000 (21:45 +0000)]
align BevelSort strict to save some bytes. use camel case.

8 years agofix [#36656] text editor undo error when undoing paste command
Justin Dailey [Thu, 5 Sep 2013 21:36:19 +0000 (21:36 +0000)]
fix [#36656] text editor undo error when undoing paste command

When tabs to spaces is enabled and a paste command is undone, the improper number of characters could get removed. Also fixed issue with shift + left/right only selecting a max of 1 character.

8 years agorename positive_mod to mod_i, make it work with nagative numbers (matching pythons...
Campbell Barton [Thu, 5 Sep 2013 20:54:32 +0000 (20:54 +0000)]
rename positive_mod to mod_i, make it work with nagative numbers (matching pythons modulo), and use in a few more places.

allow mesh-checker-deselect to have a negative offset.

8 years agocode cleanup:
Campbell Barton [Thu, 5 Sep 2013 19:56:49 +0000 (19:56 +0000)]
code cleanup:
- add missing headers from cmake (own omission)
- quiet rna_test.c unused define warnings.
- minor style edits
- spelling corrections and ignore all uppercase words with spell checking script.

8 years agoCleanup (mostly #defines -> enums, and bitflags using bitshift operator!).
Bastien Montagne [Thu, 5 Sep 2013 18:12:37 +0000 (18:12 +0000)]
Cleanup (mostly #defines -> enums, and bitflags using bitshift operator!).

8 years agoCode cleanup: use boolean instead of int for colormanagement
Sergey Sharybin [Thu, 5 Sep 2013 17:13:43 +0000 (17:13 +0000)]
Code cleanup: use boolean instead of int for colormanagement

8 years agoAdded a brie instruction how to build simple memtest
Sergey Sharybin [Thu, 5 Sep 2013 16:32:44 +0000 (16:32 +0000)]
Added a brie instruction how to build simple memtest

8 years agoGhost test application could be compiled again
Sergey Sharybin [Thu, 5 Sep 2013 16:22:07 +0000 (16:22 +0000)]
Ghost test application could be compiled again

Was an IRC request to have Ghost application up
and running for investigation purposes.

8 years agoFix metaball f-curves not showing up in graph editor.
Brecht Van Lommel [Thu, 5 Sep 2013 16:15:01 +0000 (16:15 +0000)]
Fix metaball f-curves not showing up in graph editor.

8 years agoFix #36649 and #36650: animation of freestyle line thickness and linestyle did
Brecht Van Lommel [Thu, 5 Sep 2013 15:47:52 +0000 (15:47 +0000)]
Fix #36649 and #36650: animation of freestyle line thickness and linestyle did
not render correct in animations, due to missing updates.

8 years agoExpose theme color of shadow UVs (These include UVs that are drawn in
Antony Riakiotakis [Thu, 5 Sep 2013 15:09:10 +0000 (15:09 +0000)]
Expose theme color of shadow UVs (These include UVs that are drawn in
texture paint modes and as modified mesh uvs overlay) and UVs of other
objects.

8 years agoCtr-Alt-F radial control operator for texture painting, controls the
Antony Riakiotakis [Thu, 5 Sep 2013 14:02:59 +0000 (14:02 +0000)]
Ctr-Alt-F radial control operator for texture painting, controls the
rotation of the brush mask texture.

Unfortunately secondary path does not work here because we do not have a
permanent switch to choose between primary-secondary brush texture. Use
operator property instead.

8 years agoCode cleanup: use boolean instead of int for space_clip
Sergey Sharybin [Thu, 5 Sep 2013 13:37:53 +0000 (13:37 +0000)]
Code cleanup: use boolean instead of int for space_clip

8 years agoCode cleanup: get rid of crappy height cast to double
Sergey Sharybin [Thu, 5 Sep 2013 13:37:46 +0000 (13:37 +0000)]
Code cleanup: get rid of crappy height cast to double

8 years agoCode cleanup: use boolean instead of int for tracking API
Sergey Sharybin [Thu, 5 Sep 2013 13:37:36 +0000 (13:37 +0000)]
Code cleanup: use boolean instead of int for tracking API

8 years agoCompositor cleanup: Merge conversion operations into a single file (see also r59820).
Lukas Toenne [Thu, 5 Sep 2013 13:32:14 +0000 (13:32 +0000)]
Compositor cleanup: Merge conversion operations into a single file (see also r59820).

Most convert operations can share a common base class with a single socket reader (except channel separate/combine nodes).

8 years agoTidy up paint options, patch by Sebastian Koenig, with minor changes
Antony Riakiotakis [Thu, 5 Sep 2013 13:15:29 +0000 (13:15 +0000)]
Tidy up paint options, patch by Sebastian Koenig, with minor changes
(ommit texture paint changes, they made the interface more difficult to
discern).

Also, move stroke input samples to stroke panel

8 years agoBugfix #35920
Ton Roosendaal [Thu, 5 Sep 2013 13:03:03 +0000 (13:03 +0000)]
Bugfix #35920

Adding a new node in Node Editor failed for "High DPI" (Only Mac retina now).

- Py script for adding nodes was doing dpi magic, which it shouldn't. It has
  been replaced with a (temporary) API call to set the correct cursor location.
  (Thanks to Lukas T for helping here)

- The SpaceNode->cursor[2] property now is *only* storing the coordinate
  in "adding new node space". Use of this has been removed from the code where
  possible, with as only exception the code to draw noodles while adding them.

Special coder note: Nodes should respect the DPI value, and draw larger with
larger buttons if you increase this size. The hack here is that this can only
work nice if also the node positions are scaled accordingly.

A better fix could be to check on scaling the node view itself for it. That
then would also remove this Python API call that was added in this commit.
However, that again might fight with how buttons layout code works now...
needs some careful checking.

8 years agoRemoved unused variables used only in BLI_assert, this triggers compiler warning...
Lukas Toenne [Thu, 5 Sep 2013 12:10:49 +0000 (12:10 +0000)]
Removed unused variables used only in BLI_assert, this triggers compiler warning in release builds.

8 years agoadd function for rotating linked list so at item is last.
Campbell Barton [Thu, 5 Sep 2013 11:40:38 +0000 (11:40 +0000)]
add function for rotating linked list so at item is last.

8 years agogrid-fill can now fill a single, closed edge loop.
Campbell Barton [Thu, 5 Sep 2013 11:07:49 +0000 (11:07 +0000)]
grid-fill can now fill a single, closed edge loop.
the active vertex is used when possible, else the corner vertex is detected.

this should replace the grid-fill-manager addon by Alexander Nedovizin.

8 years agoUpdate Ceres to 1.7.0 release
Sergey Sharybin [Thu, 5 Sep 2013 10:48:44 +0000 (10:48 +0000)]
Update Ceres to 1.7.0 release

For Blender this release is interesting because of:

- Covariance estimation (not used in Blender yet, but now we
  might use it for keyframe selection instead of havingown
  implementation).

- Significant performance improvements to loss function and
  dense linear solvers and automatic differentiation.

  Unfortunately, didn't notice speedup of tracking itself,
  but camera reconstruction now happens around 2 times faster
  on my laptop,

- Better inner iteration step acceptance and stopping.

8 years agoFix #36113, Translate's wrapping has 1 pixel gap in X and Y after scale node.
Lukas Toenne [Thu, 5 Sep 2013 10:45:21 +0000 (10:45 +0000)]
Fix #36113, Translate's wrapping has 1 pixel gap in X and Y after scale node.
The issue with wrapping is that it requires correct interpolation of the border pixels. Since interpolation is done at the far left end of the node tree in buffer/image/etc read operations, the wrapping
setting can not be used directly in those operations (otherwise in-line translate operations would cause conflicts). To make wrapping work correctly we need to add a buffer in front of the translate
operation, which can then be interpolated correctly based on wrapping. The WrapOperation becomes a variant of ReadBufferOperation, which uses its wrapping setting to determine the correct "extend" mode
for interpolation of the buffer.

8 years agoExtend mode option for MemoryBuffer reading in compositor. This will allow proper...
Lukas Toenne [Thu, 5 Sep 2013 10:45:19 +0000 (10:45 +0000)]
Extend mode option for MemoryBuffer reading in compositor. This will allow proper interpolation of pixel values when using wrapping in the Translate node. Implemented in inline functions, so won't cause
overhead if constant values are passed (as happens with most calls using the default argument).

8 years agoadd positive_mod() utility function.
Campbell Barton [Thu, 5 Sep 2013 10:12:00 +0000 (10:12 +0000)]
add positive_mod() utility function.

8 years agoMerge some operations into a single file
Sergey Sharybin [Thu, 5 Sep 2013 09:39:38 +0000 (09:39 +0000)]
Merge some operations into a single file

This merges all mix operations into a COM_MixBaseOperation
(naming could be better, but this way it corresponds to what's
going on with math operations.

Same was done with RenderLayers operations.

Overall this gives 20% of bf_compositor library compilation
time decrease. And it was rather annoying to have tens of
files with just a single-line constructors anyway.

TODO:
- All Convert operations could also be merged into a single file,
  but that would require adding some ConvertBaseOperation to
  reduce code duplication (ideally). Leaving it unchanged for now.

- Some operations' headers seems to be wrongly including MixOperation
  header, they need to include NodeOperation instead it seems.

  This is rather harmless, but would be nice to doublecheck on this
  eventually.

8 years agofix for error in bmesh api, selection setting needs to go via BM_elem_select_set...
Campbell Barton [Thu, 5 Sep 2013 08:38:06 +0000 (08:38 +0000)]
fix for error in bmesh api, selection setting needs to go via BM_elem_select_set else the total selected elements count isn't mantained.

8 years agoApply patch [#36601].
Nathan Letwory [Thu, 5 Sep 2013 06:58:27 +0000 (06:58 +0000)]
Apply patch [#36601].
Submitted by Saurabh Wankhade (sauraedron).

This patch adds camera shift and dof export and import in a Blender profile.

8 years agosimplify idprop reallocation with MEM_recallocN
Campbell Barton [Thu, 5 Sep 2013 04:26:08 +0000 (04:26 +0000)]
simplify idprop reallocation with MEM_recallocN

8 years agoBGE: Removing an unused rendertools argument from BL_ConvertActuators().
Mitchell Stokes [Thu, 5 Sep 2013 04:19:05 +0000 (04:19 +0000)]
BGE: Removing an unused rendertools argument from BL_ConvertActuators().

8 years agoFix broken GLSL shader after recent changes.
Brecht Van Lommel [Thu, 5 Sep 2013 00:37:10 +0000 (00:37 +0000)]
Fix broken GLSL shader after recent changes.

8 years agoFind missing files now keeps relative paths relative instead of turning them
Brecht Van Lommel [Thu, 5 Sep 2013 00:37:06 +0000 (00:37 +0000)]
Find missing files now keeps relative paths relative instead of turning them
into absolute paths.

8 years agoremove freebsd7 config. its fairly old and not maintained.
Campbell Barton [Wed, 4 Sep 2013 23:44:41 +0000 (23:44 +0000)]
remove freebsd7 config. its fairly old and not maintained.

8 years agofix [#36459] Official blenderplayer can not go fullscreen on Linux
Campbell Barton [Wed, 4 Sep 2013 23:43:25 +0000 (23:43 +0000)]
fix [#36459] Official blenderplayer can not go fullscreen on Linux
use modified patch from Alex Fraser (z0r)

8 years agoBGE: Removing the touch sensor and converting all touch sensors to collision sensors.
Mitchell Stokes [Wed, 4 Sep 2013 22:14:14 +0000 (22:14 +0000)]
BGE: Removing the touch sensor and converting all touch sensors to collision sensors.

8 years agoGhost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.
Mitchell Stokes [Wed, 4 Sep 2013 21:57:14 +0000 (21:57 +0000)]
Ghost_SDL: Fixing the DEF_CURSOR macro so it works in release builds.

8 years agoremove error return value from BLI_bvhtree_insert, no callers were using.
Campbell Barton [Wed, 4 Sep 2013 20:33:50 +0000 (20:33 +0000)]
remove error return value from BLI_bvhtree_insert, no callers were using.
in the case of an error - assert, rather then fail silently since it wont be working as expected anyway.