blender.git
6 years agocode cleanup: remove unused and unsupported functions from libmv-capi
Sergey Sharybin [Mon, 25 Feb 2013 09:38:59 +0000 (09:38 +0000)]
code cleanup: remove unused and unsupported functions from libmv-capi

---
svn merge -r52855:52856 ^/branches/soc-2011-tomato

6 years agoCamera tracking: libmv distortion API now also uses camera intrinsics
Sergey Sharybin [Mon, 25 Feb 2013 09:36:52 +0000 (09:36 +0000)]
Camera tracking: libmv distortion API now also uses camera intrinsics
structure instead of passing all the parameters to every function.

Makes it much easier to tweak distortion model.

---
svn merge -r52854:52855 ^/branches/soc-2011-tomato

6 years agoSynchronize libmv with own branch
Sergey Sharybin [Mon, 25 Feb 2013 09:27:57 +0000 (09:27 +0000)]
Synchronize libmv with own branch

Should be no functional changes, just would help a lot
checking on which stuff was/shall be merged from tomato
and which is not.

6 years agocode cleanup: camera tracking
Sergey Sharybin [Mon, 25 Feb 2013 09:24:31 +0000 (09:24 +0000)]
code cleanup: camera tracking

- Moved keyframes and refirement flags into reconstruction options structure
- Moved distortion coefficients and other camera intrinsics into own structure
- Cleaned up reconstruction functions in libmv c-api

---
svn merge -r52853:52854 ^/branches/soc-2011-tomato

6 years agoUpgrade Ceres library to current master which is current 1.5RC
Sergey Sharybin [Mon, 25 Feb 2013 08:59:26 +0000 (08:59 +0000)]
Upgrade Ceres library to current master which is current 1.5RC

This is helpful because it brings CHOLMOB-free ITERATIVE_SCHUR and
SCHUR_JACOBI which is really nice for new upcoming bundle adjustment.

If also includes all the local fixes we made locally.

There're lots of other improvements/fixed which are not currently
would be so much visible in Blender, but which opens doors for some
great improvements in future.

6 years agoUpdate bundled version of minilzo
Sergey Sharybin [Mon, 25 Feb 2013 08:16:28 +0000 (08:16 +0000)]
Update bundled version of minilzo

This updates minilzo from version 2.03 to version 2.06 which
is like 3 years newer.

The main reason of this update is that older minilzo had some
strange valgrind warnings. Likely they're harmless, but it was
still annoying to troubleshot bakes with valgrind.

6 years agoBGE: Fixing a crash reported by Ace Dragon on BA. It looks like Object->totcol can...
Mitchell Stokes [Mon, 25 Feb 2013 05:55:37 +0000 (05:55 +0000)]
BGE: Fixing a crash reported by Ace Dragon on BA. It looks like Object->totcol can give a number higher than the number of materials, so I've added some NULL checks.

6 years agofix for python exception getting the ID from an operator button:
Campbell Barton [Mon, 25 Feb 2013 04:19:28 +0000 (04:19 +0000)]
fix for python exception getting the ID from an operator button:
  attempting to select 'Online Manual' or 'Python Reference' from the UI of a running operator would give an error popup.

6 years agofix for regression in 'object.shape_key_transfer' operator since BMesh merge, using...
Campbell Barton [Mon, 25 Feb 2013 03:54:16 +0000 (03:54 +0000)]
fix for regression in 'object.shape_key_transfer' operator since BMesh merge, using the RELATIVE_FACE method failed.

6 years agofix for weight paint using values over 1.0 when blending,
Campbell Barton [Mon, 25 Feb 2013 03:45:56 +0000 (03:45 +0000)]
fix for weight paint using values over 1.0 when blending,
since its possible to have a brush strength over 1.0, it was possible to paint weights which would over-shoot the intended weight.

6 years agofix for own error r54703, the event->mval was relative to a different region.
Campbell Barton [Mon, 25 Feb 2013 00:45:20 +0000 (00:45 +0000)]
fix for own error r54703, the event->mval was relative to a different region.
also make recent image dnd patch add the new object at the mouse cursor.

6 years agoHidding the append: already linked message if G.debug is false. This gets rid of...
Mitchell Stokes [Mon, 25 Feb 2013 00:03:58 +0000 (00:03 +0000)]
Hidding the append: already linked message if G.debug is false. This gets rid of some noise in the console for BGE games that run into this case a lot.

6 years agoFix for collapse-edges crash in dyntopo
Nicholas Bishop [Mon, 25 Feb 2013 00:02:25 +0000 (00:02 +0000)]
Fix for collapse-edges crash in dyntopo

Was incorrectly testing for a vertex in a set with BLI_ghash_lookup
rather than BLI_ghash_haskey; the key in this case is always null so
the test failed.

This could leave the PBVH in an inconsistent state, since the
top-level map of BMesh vertices to PBVH nodes would indicate the
vertex was in a node, but that node wouldn't actually have any faces
using the vertex. That inconsistent state would eventually lead to a
crash in pbvh_bmesh_vert_remove().

Fixes
http://projects.blender.org/tracker/?func=detail&atid=498&aid=34370&group_id=9

6 years agopatch [#34411] Patch for image drag and drop to create Empty rather than BG image
Campbell Barton [Sun, 24 Feb 2013 23:18:21 +0000 (23:18 +0000)]
patch [#34411] Patch for image drag and drop to create Empty rather than BG image
from Kevin Mackay (yakca)

6 years agopatch [#34380] Fix Python console bug: "autocomplete" doesn't advance cursor properly...
Campbell Barton [Sun, 24 Feb 2013 21:51:48 +0000 (21:51 +0000)]
patch [#34380] Fix Python console bug: "autocomplete" doesn't advance cursor properly when completion includes UTF8 characters
from Shinsuke Irie (irie)

6 years agostyle cleanup
Campbell Barton [Sun, 24 Feb 2013 20:33:21 +0000 (20:33 +0000)]
style cleanup

6 years agopointcache: Fix freeing all bakes in particle mode
Sergej Reich [Sun, 24 Feb 2013 19:33:10 +0000 (19:33 +0000)]
pointcache: Fix freeing all bakes in particle mode

Freeing all bakes didn't free edited cache in particle mode, this lead
to unresponsive ui and crashes.

Now use same logic as for freeing single bake.

6 years agoBGE: Adding back the virtual destructor to PHY_IPhysicsController, which was accident...
Mitchell Stokes [Sun, 24 Feb 2013 18:48:57 +0000 (18:48 +0000)]
BGE: Adding back the virtual destructor to PHY_IPhysicsController, which was accidentally removed in r54807.

6 years agoSome UI messages fixes...
Bastien Montagne [Sun, 24 Feb 2013 18:04:10 +0000 (18:04 +0000)]
Some UI messages fixes...

6 years agoFix scons building...
Bastien Montagne [Sun, 24 Feb 2013 16:01:30 +0000 (16:01 +0000)]
Fix scons building...

6 years agorigidbody: Allow collision groups to be animated
Sergej Reich [Sun, 24 Feb 2013 15:53:30 +0000 (15:53 +0000)]
rigidbody: Allow collision groups to be animated

6 years agoAnother bunch of UI translation fixes, thanks to Leon Cheung, Gabriel Gazzán and...
Bastien Montagne [Sun, 24 Feb 2013 15:40:28 +0000 (15:40 +0000)]
Another bunch of UI translation fixes, thanks to Leon Cheung, Gabriel Gazzán and S. Lockal for spotting them!

6 years agoBug fix #34384
Ton Roosendaal [Sun, 24 Feb 2013 14:42:21 +0000 (14:42 +0000)]
Bug fix #34384

Border select in UV Image window crashed, if used when Image Window shows a render.
Made operators for UV vertex manipulations having a more strict check for this mode.
(Similar to other UV tools there).

6 years agoHopefully last round of fixes for all OSes
Antony Riakiotakis [Sun, 24 Feb 2013 14:27:59 +0000 (14:27 +0000)]
Hopefully last round of fixes for all OSes

6 years agoCompile fix round 2. Still trying to do this from linux :p
Antony Riakiotakis [Sun, 24 Feb 2013 14:02:45 +0000 (14:02 +0000)]
Compile fix round 2. Still trying to do this from linux :p

6 years agoAdd bogus stabs for fullscreen window mode for BGE in GHOST. Platform maintainers...
Antony Riakiotakis [Sun, 24 Feb 2013 13:51:12 +0000 (13:51 +0000)]
Add bogus stabs for fullscreen window mode for BGE in GHOST. Platform maintainers should change these to replicate X11 behaviour. Also moved X11 implementation to public methods, just like the IWindow interface. Should fix compilation

6 years agoinstall_deps.sh:
Thomas Dinges [Sun, 24 Feb 2013 11:54:28 +0000 (11:54 +0000)]
install_deps.sh:
* Disable OIIO test and cmd tools per default, they are not needed for Blender.

6 years agofix for own commit r54806 with argument order and multisampling.
Campbell Barton [Sun, 24 Feb 2013 10:50:33 +0000 (10:50 +0000)]
fix for own commit r54806 with argument order and multisampling.

6 years agoBig i18n tools update, I/II.
Bastien Montagne [Sun, 24 Feb 2013 08:50:55 +0000 (08:50 +0000)]
Big i18n tools update, I/II.

Notes:
* Everything is still a bit raw and sometimes hackish.
* Not every feature implemented yet.
* A bunch of cleanup is still needed.
* Doc needs to be updated too!

6 years agoFix for uiButGetStrInfo: We need a string value here, return BPY_I18NCONTEXT_DEFAULT_...
Bastien Montagne [Sun, 24 Feb 2013 08:46:01 +0000 (08:46 +0000)]
Fix for uiButGetStrInfo: We need a string value here, return BPY_I18NCONTEXT_DEFAULT_BPY when using default NULL label's context.

6 years agoBGE: Removing the source files for the PHY interfaces since they just contained virtu...
Mitchell Stokes [Sun, 24 Feb 2013 07:09:39 +0000 (07:09 +0000)]
BGE: Removing the source files for the PHY interfaces since they just contained virtual destructors. This means we had license and doc blocks for 3 lines of code, which seemed silly. This also means that ge_phys_common no longer needs to be built as a library. I tested this with CMake and SCons using GCC; hopefully this doesn't break other systems.

6 years agofix for fullscreen on X11 (used by the BGE, not blender application),
Campbell Barton [Sun, 24 Feb 2013 05:05:29 +0000 (05:05 +0000)]
fix for fullscreen on X11 (used by the BGE, not blender application),
changing the screen resolution wasn't still allowed for larger virtual desktops.

added an exclusive option to ghost so the fullscreen window is ignored by the window manager and we get all events. (common practice for games on X11).

6 years agorigidbody: Don't abort connect operator if last selected object is active
Sergej Reich [Sat, 23 Feb 2013 23:40:51 +0000 (23:40 +0000)]
rigidbody: Don't abort connect operator if last selected object is active

Was silly logic error.

6 years agoGHOST/X11 - free memory allocated by XF86VidModeGetAllModeLines(),
Campbell Barton [Sat, 23 Feb 2013 23:15:38 +0000 (23:15 +0000)]
GHOST/X11 - free memory allocated by XF86VidModeGetAllModeLines(),
Comment from Zr says this crashes but looks like this was because there was no check if the function failed to allocate to begin with.

6 years agorigidbody: Fix motion paths calculation being incorrect for rigid bodies
Sergej Reich [Sat, 23 Feb 2013 23:04:10 +0000 (23:04 +0000)]
rigidbody: Fix motion paths calculation being incorrect for rigid bodies

For the simulation to work properly the limited update the motion paths
calculation did wasn't enough so you got different results for for
motion paths than for the actual simulation.
Now do full frame update if rigid body sim is active.

TODO investigate if we can still limit this.

6 years agorigidbody: Add motor constraint
Sergej Reich [Sat, 23 Feb 2013 23:04:07 +0000 (23:04 +0000)]
rigidbody: Add motor constraint

It's implemented as a separate constraint instead of adding properties
to the existing constraints.
Motors only apply linear and angular impulses and don't limit the
movement of rigid bodies, so it's best to use them in conjunction with
other constraints to limit the degrees of freedom.

Thanks to Markus Kasten (markus111) for the initial patch.

6 years agorigidbody: Code cleanup
Sergej Reich [Sat, 23 Feb 2013 23:04:03 +0000 (23:04 +0000)]
rigidbody: Code cleanup

Clean up DNA comments.

6 years agoGHOST/X11 support for frequency, from SDL's mode switching.
Campbell Barton [Sat, 23 Feb 2013 22:48:16 +0000 (22:48 +0000)]
GHOST/X11 support for frequency, from SDL's mode switching.
also free the modes when done.

6 years agoRename CMake's Boost_USE_ICU to WITH_BOOST_ICU (update your CMake conf if you make...
Bastien Montagne [Sat, 23 Feb 2013 20:42:15 +0000 (20:42 +0000)]
Rename CMake's Boost_USE_ICU to WITH_BOOST_ICU (update your CMake conf if you make static builds!), and add it as CMake option.

Patch by gdh (Gavin Howard), many thanks!

6 years agoFix for image alpha version patch with library linked files where the image
Brecht Van Lommel [Sat, 23 Feb 2013 20:24:02 +0000 (20:24 +0000)]
Fix for image alpha version patch with library linked files where the image
datablock is in a different library than the texture datablock. Adjusted the
fix in 54790 to check for this case specifically so it keeps working on other
files that have packed images.

The problem is that blo_do_versions_newlibadr will not return a valid datablock
in some cases with linked libraries. This function is used in various places in
the version patching code and would likely cause problems there as well, needs
to be investigated further.

6 years agoFix #34358: shrinkwrap modifier project along normal did not work correctly
Brecht Van Lommel [Sat, 23 Feb 2013 20:23:59 +0000 (20:23 +0000)]
Fix #34358: shrinkwrap modifier project along normal did not work correctly
after other modifiers. It needs normals and those were not calculated.

6 years agoBug fix in 2.66 release, irc submitted.
Ton Roosendaal [Sat, 23 Feb 2013 14:52:40 +0000 (14:52 +0000)]
Bug fix in 2.66 release, irc submitted.

File with packed images crashes on load.

Do-versions now is copying Images, because texture "use alpha" has been removed...
However, it then also copied packaged images, which crashes for some reason.

For now I skip packed image copy, which keeps blender work. This versioning
code needs more checking though.

6 years agoBug fix #34347
Ton Roosendaal [Sat, 23 Feb 2013 14:31:46 +0000 (14:31 +0000)]
Bug fix #34347

If you move (with F5) the properties and tools region in 3d viewport to the same side,
the mini-axis and text overlays were drawing in wrong place.

6 years agoMissed instance of ThemeGeneric.back -> ThemeGradient.gradients.high_gradient
Antony Riakiotakis [Sat, 23 Feb 2013 12:55:19 +0000 (12:55 +0000)]
Missed instance of ThemeGeneric.back -> ThemeGradient.gradients.high_gradient

6 years agoBugfix #34374
Ton Roosendaal [Sat, 23 Feb 2013 11:51:10 +0000 (11:51 +0000)]
Bugfix #34374

Fixed tooltip for checker-select, it works on the active item, not selected ones.

6 years agocode cleanup: confusingly written and named function for BGE materuial conversion...
Campbell Barton [Sat, 23 Feb 2013 07:36:40 +0000 (07:36 +0000)]
code cleanup: confusingly written and named function for BGE materuial conversion: getImageFromMaterial() --> getMTexFromMaterial()

6 years agocode cleanup: bge material conversion was creating STR_String just to check for empty...
Campbell Barton [Sat, 23 Feb 2013 07:15:37 +0000 (07:15 +0000)]
code cleanup: bge material conversion was creating STR_String just to check for empty string for no reason (empty string was assigned irrespective).

6 years agofix [#34378] GLSL materials using multiple UV layers fail in editmode
Campbell Barton [Sat, 23 Feb 2013 06:56:10 +0000 (06:56 +0000)]
fix [#34378] GLSL materials using multiple UV layers fail in editmode
regression since BMesh merge.

6 years agocode cleanup: make editmode PASSATTRIB into static functions.
Campbell Barton [Sat, 23 Feb 2013 05:36:15 +0000 (05:36 +0000)]
code cleanup: make editmode PASSATTRIB into static functions.

6 years agoBGE: fix for uninitialized tangents
Campbell Barton [Sat, 23 Feb 2013 04:49:46 +0000 (04:49 +0000)]
BGE: fix for uninitialized tangents

6 years agoBGE: Fix for bug #34377 "Multi UV mesh's materials not backwards compatible and Odd...
Mitchell Stokes [Sat, 23 Feb 2013 04:15:47 +0000 (04:15 +0000)]
BGE: Fix for bug #34377 "Multi UV mesh's materials not backwards compatible and Odd UV Coord behavior" reported by Alex Mairs (ctbm). The problem was the unused texture slot was still trying to be used. Now unused texture slots' mappings are set to DISABLE so they don't mess up the rest of the conversion process.

6 years agoBGE: Finally moving material IPOs to the 2.60 BGE animation system (BL_Action). It...
Mitchell Stokes [Sat, 23 Feb 2013 02:47:22 +0000 (02:47 +0000)]
BGE: Finally moving material IPOs to the 2.60 BGE animation system (BL_Action). It was kind of a fluke that they worked before.

6 years agofix for error using uninitialized draw mode with 'm_failsafe_storage' in the BGE.
Campbell Barton [Sat, 23 Feb 2013 02:45:12 +0000 (02:45 +0000)]
fix for error using uninitialized draw mode with 'm_failsafe_storage' in the BGE.

6 years agoadd include for scons.
Campbell Barton [Sat, 23 Feb 2013 02:03:53 +0000 (02:03 +0000)]
add include for scons.

6 years agocode cleanup: bge - was converting float[] to MT_Vector's just to compare. use BLI_ma...
Campbell Barton [Sat, 23 Feb 2013 01:57:56 +0000 (01:57 +0000)]
code cleanup: bge - was converting float[] to MT_Vector's just to compare. use BLI_math instead.

6 years agofix for error in the blenderplayer caused by r54727 (can't assume G.main is valid...
Campbell Barton [Sat, 23 Feb 2013 01:33:47 +0000 (01:33 +0000)]
fix for error in the blenderplayer caused by r54727 (can't assume G.main is valid on load).

6 years agoBGE: Object color channels can now be animated separately without zeroing out the...
Mitchell Stokes [Sat, 23 Feb 2013 01:17:01 +0000 (01:17 +0000)]
BGE: Object color channels can now be animated separately without zeroing out the other channels. Problem reported by Dalai via IRC.

6 years agoInstall_deps script:
Thomas Dinges [Sat, 23 Feb 2013 00:52:59 +0000 (00:52 +0000)]
Install_deps script:
* Use OIIO 1.1.7, this removes the need for the ugly patch.
* Use official OSL 1.3.0 repo
* Print OSL path for scons

Tested on Ubuntu 12.10 x64.

6 years agoBGE: Second fix for #34330 "Action Actuator "caching" the previous ran actions" repor...
Mitchell Stokes [Sat, 23 Feb 2013 00:46:58 +0000 (00:46 +0000)]
BGE: Second fix for #34330 "Action Actuator "caching" the previous ran actions" reported by Dalai. Now the multiple layers should also be working. When doing fcurve/IPO animations, the controllers are cleared as soon as the action is done and must be setup again every time the action is played.

6 years agoBGE: For BL_Action, use the object's scene rather than the "active" scene, which...
Mitchell Stokes [Sat, 23 Feb 2013 00:28:25 +0000 (00:28 +0000)]
BGE: For BL_Action, use the object's scene rather than the "active" scene, which can potentially cause problems with multiple scenes.

6 years agoBGE: (partial?) fix for #34330 "Action Actuator "caching" the previous ran actions...
Mitchell Stokes [Fri, 22 Feb 2013 23:55:06 +0000 (23:55 +0000)]
BGE: (partial?) fix for #34330 "Action Actuator "caching" the previous ran actions" reported by Dalai. The test file now works if all of the actions are using the same layer, but multiple layers can still cause problems. However, I am unsure as to what the "correct" behavior should be with multiple layers. They should probably blend somehow...

6 years agoWITH_PYTHON_FRAMEWORK cmake option for OSX
Dalai Felinto [Fri, 22 Feb 2013 22:24:38 +0000 (22:24 +0000)]
WITH_PYTHON_FRAMEWORK cmake option for OSX
This option allow Blender to be linked against the Framework python
It's useful if you want to have blenderplayer and bpy in the same application and need to avoid PyThread problems.

patch reviewed by Jens Verwiebe before 2.66. He may want to change something though.
(also small: I changed:
/Library/Frameworks/Python.framework/Versions//python
by
/Library/Frameworks/Python.framework/Versions//Python
as the latter seems to be the norm)

6 years agoBGE: Fix for bug #34219 "Webcam support under Linux in Standalone broken" reported...
Mitchell Stokes [Fri, 22 Feb 2013 20:37:14 +0000 (20:37 +0000)]
BGE: Fix for bug #34219 "Webcam support under Linux in Standalone broken" reported by Thomas Achtner (offtools).

No one bothered to update the player for ffmpeg changes made in August 2012. This meant the player was no longer calling avdevice_register_all(), and  ffmpeg would fail to open web cam streams.

6 years agofixing typo in include (report and patch by Jochen Schmitt)
Dalai Felinto [Fri, 22 Feb 2013 17:45:04 +0000 (17:45 +0000)]
fixing typo in include (report and patch by Jochen Schmitt)

6 years agoWorkaround for compilation error introduced in r54755
Sergey Sharybin [Fri, 22 Feb 2013 17:35:53 +0000 (17:35 +0000)]
Workaround for compilation error introduced in r54755

Scons used to fail because of couple of reasons:

- CMake does have WITH_DNA_GHASH enabled, Scons not
  Which is a good question why?!
- This makes Cmake including BLI_utildefines in dna_genfile.c,
  but scons missed this include
- This damn "bool" thing requires BLI_utildefines

And last question here is why would we want to use bool here =\
It's just always ends up in headache without any visible benefit
of using it.

Well, at least now svn shall be compilable again..

6 years agoApplying patch #33709 for dead keys on windows.
Alexander Kuznetsov [Fri, 22 Feb 2013 16:42:19 +0000 (16:42 +0000)]
Applying patch #33709 for dead keys on windows.
Thanks Harley Acheson!

6 years agoFix #34357: image editor scope and clip editor track preview did not resize
Brecht Van Lommel [Fri, 22 Feb 2013 16:11:27 +0000 (16:11 +0000)]
Fix #34357: image editor scope and clip editor track preview did not resize
properly with different DPI settings.

6 years agoFix for windows size on win32
Alexander Kuznetsov [Fri, 22 Feb 2013 15:57:50 +0000 (15:57 +0000)]
Fix for windows size on win32

6 years agoFix for building without python.
Alexander Kuznetsov [Fri, 22 Feb 2013 15:54:10 +0000 (15:54 +0000)]
Fix for building without python.

6 years agogame engine: Revert to using regular gimpact for mesh shapes
Sergej Reich [Fri, 22 Feb 2013 14:47:11 +0000 (14:47 +0000)]
game engine: Revert to using regular gimpact for mesh shapes

This reverts part of r53019.
While the compound shape trick works well in some cases, overall it's
much slower and even causes crashes under certain conditions.

We could make this and option and fix the crashes, but it's better to
implement convex decomposition anyway so just reverting for now.

Fixes [#34353] Ray cast on Triangle mesh bounded Rigid Body Object causes blender crash to desktop without error.

6 years agopatch [#34103] - listbase.patch, insertlinkbefore.patch
Campbell Barton [Fri, 22 Feb 2013 14:12:55 +0000 (14:12 +0000)]
patch [#34103] - listbase.patch, insertlinkbefore.patch
from Lawrence D'Oliveiro (ldo)

notes from tracker:
use bool for return type from BLI_remlink_safe, necessitating including BLI_utildefines.h in BLI_listbase.h
get rid of duplicate BLI_insertlink, use BLI_insertlinkafter instead.

A few places which were using BLI_insertlinkafter (actually BLI_insertlink), when it would be simpler to use BLI_insertlinkbefore instead.

6 years agopatch [#34103] Add explanatory comments to dna_genfile.[ch]
Campbell Barton [Fri, 22 Feb 2013 13:35:32 +0000 (13:35 +0000)]
patch [#34103] Add explanatory comments to dna_genfile.[ch]
from Lawrence D'Oliveiro (ldo)

6 years agoFix for [#34356] Inputs list in file output doesn't appear properly.
Thomas Dinges [Fri, 22 Feb 2013 12:24:08 +0000 (12:24 +0000)]
Fix for [#34356] Inputs list in file output doesn't appear properly.

* This made File Output Node more or less useless in the 2.66 release, as the list did not appear.
Issue caused in r53355.

Should be back ported to "a" release.

6 years agoremove 'register' from drag-toggle operator (so it doesn't show in the redo panel).
Campbell Barton [Fri, 22 Feb 2013 11:06:25 +0000 (11:06 +0000)]
remove 'register' from drag-toggle operator (so it doesn't show in the redo panel).
update credits script.

6 years agoSimple preset function for setting common node sizes based on enum instead of explici...
Lukas Toenne [Fri, 22 Feb 2013 10:46:27 +0000 (10:46 +0000)]
Simple preset function for setting common node sizes based on enum instead of explicit numbers.
Most nodes use the default size now and don't need explicit function calls. Most remaining nodes can also use the preset variant instead of explicit size values, these are only needed for a few special nodes.
Thanks to Sebastian König for suggesting this and doing the monkey work of changing node definitions.

6 years agoMotion tracking dopesheet
Sergey Sharybin [Fri, 22 Feb 2013 10:13:15 +0000 (10:13 +0000)]
Motion tracking dopesheet

Highlight background depending on number of tracks existing on frame.

This is not so much mathematically accurate displaying where things
shall be improved, but it's nice feedback about which frames better
be reviewed.

Bad frames are tracks < 8, highlighted with red.
OK-ish frame  are 8 <= tracks < 16, highlighted with yellow.

Could be some artifacts with color region start/end, this is a bit
unclear what exactly expected to be highlighted -- frames are
displayed as dots, but in fact they're quite noticeable segments.

---
svn merge -r54572:54573 ^/branches/soc-2011-tomato

6 years agoRemove extern_ssba workaround
Sergey Sharybin [Fri, 22 Feb 2013 10:06:54 +0000 (10:06 +0000)]
Remove extern_ssba workaround

SSBA seemed to be working OK last time i've checked it
with MSVC and optimization enabled.

Also, we'll likely replace it with own BA soon, which
works fine with MSVC anyway.

6 years agoFix #34351: Displacement map Bake margin does not work
Sergey Sharybin [Fri, 22 Feb 2013 09:57:10 +0000 (09:57 +0000)]
Fix #34351: Displacement map Bake margin does not work

6 years agoFixing typos
Gaia Clary [Fri, 22 Feb 2013 09:31:42 +0000 (09:31 +0000)]
Fixing typos

6 years agoFix #34359: 2.66 crashes when using output node
Sergey Sharybin [Fri, 22 Feb 2013 09:20:22 +0000 (09:20 +0000)]
Fix #34359: 2.66 crashes when using output node

16bit PNG and Jpeg2K exporters were not aware of the simple
fact that float buffer could have only 3 or 1 channels.

6 years agobge bugfix: [#18967] alpha value is never available in the color buffer by Campbell...
Dalai Felinto [Fri, 22 Feb 2013 07:37:17 +0000 (07:37 +0000)]
bge bugfix: [#18967] alpha value is never available in the color buffer by Campbell Barton (X11) and me (Win32)
This is and old patch (June, 2009). The reason it never made into trunk it's that we (me at least) thought that
it should be optional, as a ui or command-line option.

However, it seems that OSX always have the OpenGL context with alpha enabled. So I think it's consistent to
have the other OSs to follow.

The main usage of this is the BGE (or more specifically people using BGE for TV broadcasting) but I think
pydevs can have their share of fun with it in Blender as well.

6 years agochange to drag-toggle don't exit when the mouse is outside the region - its annoying...
Campbell Barton [Fri, 22 Feb 2013 07:28:45 +0000 (07:28 +0000)]
change to drag-toggle don't exit when the mouse is outside the region - its annoying for setting layers in the 3d header.

6 years agocode cleanup: switch argument order for button_activate_exit() but/data args were...
Campbell Barton [Fri, 22 Feb 2013 06:02:52 +0000 (06:02 +0000)]
code cleanup: switch argument order for button_activate_exit() but/data args were flipped compared to other functions.

6 years agoToggle-Drag UI Feature
Campbell Barton [Fri, 22 Feb 2013 05:56:20 +0000 (05:56 +0000)]
Toggle-Drag UI Feature

Dragging on toggle buttons can now be used to press multiple buttons at once, especially useful for layer and outliner buttons.

notes:
- automatically enabled for all toggle buttons
  (may change this if it becomes a problem).
- only buttons of the same type are pressed
  (helps avoid annoyances eg; dragging past layer buttons onto other 3d header buttons and pressing by accident).
- automatic axis locking - dragging will lock to X/Y depending on the initial drag direction,
  makes swipe motions work better, especially with the outliner.

implementation details:
- may re-implement as a region handler (currently its a modal operator).
- checking buttons in-between cursor motion events could be more efficient (but currently works ok).
- button execution needs to be improved
  (currently executing a button thats not under the mouse needed a workaround for passing uiHandleButtonData),
  requires further changes to UI code, will do next.

6 years agonew weight paint draw option to display unweighted vertices with the option to check...
Campbell Barton [Fri, 22 Feb 2013 04:09:04 +0000 (04:09 +0000)]
new weight paint draw option to display unweighted vertices with the option to check on the active group or all groups.

notes:
- vertices with zero weights are considered the same as vertices outside of a group.
- currently these show black but this can be made a theme color.
- multi-paint overrides this option (noted in description)

6 years agoBGE: Fix for bug #34349 "Character walkDirection ADD mode -#INF error" reported by...
Mitchell Stokes [Fri, 22 Feb 2013 02:31:46 +0000 (02:31 +0000)]
BGE: Fix for bug #34349 "Character walkDirection ADD mode -#INF error" reported by Angus Hollands (agoose77). If the walk directions canceled each other out, the actuator would try to normalize a zero vector, which caused the error.

6 years agoExpose a few more operators for curves on the toolbar. Some of these were
Joshua Leung [Fri, 22 Feb 2013 02:10:41 +0000 (02:10 +0000)]
Expose a few more operators for curves on the toolbar. Some of these were
previously not available anywhere.

6 years agoWhitespace fixes
Joshua Leung [Fri, 22 Feb 2013 02:09:54 +0000 (02:09 +0000)]
Whitespace fixes

6 years agoAnimation Editors: Operators to Group/Ungroup Selected F-Curves
Joshua Leung [Fri, 22 Feb 2013 01:49:51 +0000 (01:49 +0000)]
Animation Editors: Operators to Group/Ungroup Selected F-Curves

This commit introduces operators to customise the grouping of F-Curves. As
groups are only available in Actions, these grouping operators only work in the
Dopesheet, Action Editor, and Graph Editor (Animation) modes.

To Use:
* Ctrl-G = Group selected F-Curves
* Alt-G  = Ungroup selected F-Curves
* or find these tools from the Channels menu

Notes:
* When invoking the grouping operator from the Channels menu, the name popup
won't show up. Instead, the group(s) created will be created with the default
name. To fix, you can either use the F6 operator properties edit OR manually
edit the names (Ctrl-LMB on the relevant channel)

6 years agoBGE projection code fix: old patch #28893 (to fix #28753) committed in rev.41131...
Dalai Felinto [Fri, 22 Feb 2013 01:48:53 +0000 (01:48 +0000)]
BGE projection code fix: old patch #28893 (to fix #28753) committed in rev.41131 changed the clipping for ortho camera from -far +far to +near +far. But also introduced this -far +far when using 3dviewport camera (which shouldn't).

6 years agocode cleanup: remove unused arg
Campbell Barton [Fri, 22 Feb 2013 00:51:58 +0000 (00:51 +0000)]
code cleanup: remove unused arg

6 years agoCode cleanup:
Thomas Dinges [Thu, 21 Feb 2013 21:05:31 +0000 (21:05 +0000)]
Code cleanup:
* Cycles: Removed leftover include of "kernel_qbvh.h", which was removed in r51352.

6 years agoDependency Graph: some refactoring which should have no user visible impact
Brecht Van Lommel [Thu, 21 Feb 2013 19:33:04 +0000 (19:33 +0000)]
Dependency Graph: some refactoring which should have no user visible impact
besides performance in some cases.

* DAG_scene_sort is now removed and replaced by DAG_relations_tag_update in
  most cases. This will clear the dependency graph, and only rebuild it right
  before it's needed again when the scene is re-evaluated.

  This is done because DAG_scene_sort is slow when called many times from
  python operators. Further the scene argument is not needed because most
  operations can potentially affect more than the current scene.

* DAG_scene_relations_update will now rebuild the dependency graph if it's not
  there yet, and DAG_scene_relations_rebuild will force a rebuild for the rare
  cases that need it.

* Remove various places where ob->recalc was set manually. This should go
  through DAG_id_tag_update() in nearly all cases instead since this is now
  a fast operation. Also removed DAG_ids_flush_update that goes along with
  such manual tagging of ob->recalc.

6 years agoFix scons compile
Jens Verwiebe [Thu, 21 Feb 2013 19:23:41 +0000 (19:23 +0000)]
Fix scons compile

6 years agorigidbody: Add option to create chanis for the connect operator
Sergej Reich [Thu, 21 Feb 2013 19:04:39 +0000 (19:04 +0000)]
rigidbody: Add option to create chanis for the connect operator

Connects objects based on distance.

Based on a patch by Brandon Hechinger (jaggz), thanks!

6 years agorigidbody: code cleanup
Sergej Reich [Thu, 21 Feb 2013 19:04:36 +0000 (19:04 +0000)]
rigidbody: code cleanup

Use bpy.data.objects.new() instead of the object.add() operator.

6 years agorigidbody: Move "Enabled" checkbox out of rigid body panel header
Sergej Reich [Thu, 21 Feb 2013 19:04:34 +0000 (19:04 +0000)]
rigidbody: Move "Enabled" checkbox out of rigid body panel header

Rename it to "Dynamic" to make it more obvious that it switches between
static and dynamic state.
Also don't show it for passive rigid bodies since it's redundant in that
case.

6 years agoBGE cleanup: Removing the PHY__Vector classes and replacing them with MT_Vectors...
Mitchell Stokes [Thu, 21 Feb 2013 18:30:11 +0000 (18:30 +0000)]
BGE cleanup: Removing the PHY__Vector classes and replacing them with MT_Vectors. The PHY__Vectors didn't offer anything (not even any real abstraction) and they required annoying MT_Vector <-> PHY_Vector conversions all over the place. No functional changes.

6 years agoBlender Internal: optimization to remove sleep() calls from the render threading
Brecht Van Lommel [Thu, 21 Feb 2013 18:08:07 +0000 (18:08 +0000)]
Blender Internal: optimization to remove sleep() calls from the render threading
code. This gives a speedup up to a couple of seconds based only on the image
resolution and tile size. For complex renders a second or two is not so noticeable
but for quick ones it's nice to save some time. On the default cube this gives me
about half a second speedup.

Patch by Johan Walles, based on the render branch implementation by me.

6 years agoObject Select Similar tool now has a Pass Index option.
Brecht Van Lommel [Thu, 21 Feb 2013 18:08:04 +0000 (18:08 +0000)]
Object Select Similar tool now has a Pass Index option.
Patch by Jesse Werner.