8 years agorst doc update: adding a link to Joystick class from bge.logic.joysticks
Dalai Felinto [Thu, 28 Feb 2013 05:18:47 +0000 (05:18 +0000)]
rst doc update: adding a link to Joystick class from bge.logic.joysticks
(so one can find more about the joystick class without having to search joystick)
code untested by the way. Sorry but I can no longer build sphinx docs here. I will try to fix that later.

8 years agofix for bmesh regression similar to last revision r54920. only effected loading old...
Campbell Barton [Thu, 28 Feb 2013 04:18:01 +0000 (04:18 +0000)]
fix for bmesh regression similar to last revision r54920. only effected loading old blend files without edge data.

8 years agofix for regression since BMesh merge, selecting linked faces in face-mask mode was...
Campbell Barton [Thu, 28 Feb 2013 03:39:41 +0000 (03:39 +0000)]
fix for regression since BMesh merge, selecting linked faces in face-mask mode was using an incorrect lookup on loops which made select-linked fail

8 years agocode cleanup: includes
Campbell Barton [Thu, 28 Feb 2013 01:28:46 +0000 (01:28 +0000)]
code cleanup: includes

8 years agofix for linking with recent armature refactor, was also missing file from CMakeLists...
Campbell Barton [Thu, 28 Feb 2013 00:45:07 +0000 (00:45 +0000)]
fix for linking with recent armature refactor, was also missing file from CMakeLists.txt.

8 years agopatch [#34465] Fix text editor bug: Crash when overwriting ascii character with multi...
Campbell Barton [Thu, 28 Feb 2013 00:08:47 +0000 (00:08 +0000)]
patch [#34465] Fix text editor bug: Crash when overwriting ascii character with multibyte character
from Shinsuke Irie (irie)

8 years agoRenaming the remaining PoseMode files for consistency (camelCase to
Joshua Leung [Thu, 28 Feb 2013 00:01:20 +0000 (00:01 +0000)]
Renaming the remaining PoseMode files for consistency (camelCase to

8 years agoProperly prefixing name of exproted armature API
Joshua Leung [Wed, 27 Feb 2013 23:56:51 +0000 (23:56 +0000)]
Properly prefixing name of exproted armature API

8 years agoCode cleanups
Joshua Leung [Wed, 27 Feb 2013 23:50:44 +0000 (23:50 +0000)]
Code cleanups
* Replace magic numbers with enum-defines
* Remove superfluous return; statements (used as last statements in a few
"static void" methods)
* Remove some old unused/commented out stuff

8 years agoCode Maintenance - Splitting up Armature/Pose Editing Files
Joshua Leung [Wed, 27 Feb 2013 23:34:29 +0000 (23:34 +0000)]
Code Maintenance - Splitting up Armature/Pose Editing Files

This commit splits editarmature.c and poseobject.c into several files, such that
certain types of functionality are (mostly) self-contained within particular
files (instead of being mixed in with other functionality in a large file).

In particular, this was done so that:
1) Armature EditMode tools are now in the armature_*.c files only, and Pose Mode
tools in pose_*.c files only.
     - In one or two cases, this hasn't been possible as the two modes rely on
much of the same shared infrastructure.
2) The "clear loc/rot/scale" operators and pose show/hide are no longer housed
in editarmature.c
3) Selection operators, Transform operators, structural (add/delete) operators,
and supporting utilities for the modes (enter/exit/roll-calculations) are not
all interleaved in an ad-hoc manner

* I've tried to ensure that the history of the new files has been maintained by
   svn copy {editarmature.c/poseobject.c} {armature_*.c/pose_*.c}
   Unfortunately, this means that the diffs are a bit messy.
* There should be no functional/logic changes here. Just code moving around and
cosmetic comment tweaks where needed.
* #includes have largely been untouched for now, but could be cleaned up later
* CMake changes untested, but should work in theory.

8 years agofix for [#34440] motion blur (2d filter) not working in osx
Dalai Felinto [Wed, 27 Feb 2013 22:48:34 +0000 (22:48 +0000)]
fix for [#34440] motion blur (2d filter) not working in osx
thanks Jens Verwiebe for the tests and review.

8 years agoAdded preset values for Collada exporter.
Gaia Clary [Wed, 27 Feb 2013 17:48:07 +0000 (17:48 +0000)]
Added preset values for Collada exporter.

8 years agoReport #34450
Ton Roosendaal [Wed, 27 Feb 2013 17:12:57 +0000 (17:12 +0000)]
Report #34450

Fix for 2.66a

Some editors in Blender (Like Graph) have "maxzoom" set to 0, which caused the
MMB zoom sensitivity to be minimal. That used to be much more responsive, restored
it to how it worked before.

8 years agoVarious small enhancements/fixes.
Bastien Montagne [Wed, 27 Feb 2013 16:24:20 +0000 (16:24 +0000)]
Various small enhancements/fixes.

Most notable difference from now on will be that all py is handled from current blender's resource dirs, no more from source dir. Better for consistency, and avoid e.g. cycles' addon to be checked twice...

8 years agoBug fix #34436
Ton Roosendaal [Wed, 27 Feb 2013 14:25:39 +0000 (14:25 +0000)]
Bug fix #34436

Two example files that crashed texture nodes.
- On delete texture nodes, it should free the exec cache (because this cache
  stores the node pointer.
- On redo, nodes can exist can exist without typeinfo set. Exec (free) code
  was not checking for that. Don't ask me why this happens... tex nodes are weird.

8 years agofix [#34460] text editor freezes when turning on syntax highlight
Campbell Barton [Wed, 27 Feb 2013 14:19:44 +0000 (14:19 +0000)]
fix [#34460] text editor freezes when turning on syntax highlight

8 years agoCollada export: Add ngon support (initial)
Gaia Clary [Wed, 27 Feb 2013 13:53:43 +0000 (13:53 +0000)]
Collada export: Add ngon support (initial)

8 years agofix for error with drag toggle which showed up with overlapping regions.
Campbell Barton [Wed, 27 Feb 2013 11:26:51 +0000 (11:26 +0000)]
fix for error with drag toggle which showed up with overlapping regions.

8 years agoAdded RGBA|RGB channels toggle to sequencer preview
Sergey Sharybin [Wed, 27 Feb 2013 10:26:58 +0000 (10:26 +0000)]
Added RGBA|RGB channels toggle to sequencer preview

Main purpose of this is to be more compatible with older
versions of blender (before alpha cleanup) where sequencer
used to display premultiplied image on an straight opengl

Now sequencer preview would behave closer to image editor
However adding Alpha and R|G|B displays is not so simple
because sequencer is using 2D textures. Would be nice to
implement this options as well, but this is not so much
important IMO.

This hall fix
- #34453: VSE: Subtract function does not work properly

TODO: Make RGBA display default for our startup.blend

8 years agominor changes to outliner
Campbell Barton [Wed, 27 Feb 2013 10:19:31 +0000 (10:19 +0000)]
minor changes to outliner
- linking groups into a scene now uses the objects original layers (some users have the layers set to useful values, so overwriting isnt so nice).
- dropping objects into the 3d view would make them active but not selected, a valid but confusing state, since most tools activate and select now objects.

8 years agochanging image dropping into the viewport to add empty objects (from r54825) wasnt...
Campbell Barton [Wed, 27 Feb 2013 10:14:36 +0000 (10:14 +0000)]
changing image dropping into the viewport to add empty objects (from r54825) wasnt such a popular move,
reinstate old behavior, holding Ctrl now adds empty objects instead.

8 years agoFix #34439: Strip modifier - Mask multiply failure
Sergey Sharybin [Wed, 27 Feb 2013 09:58:40 +0000 (09:58 +0000)]
Fix #34439: Strip modifier - Mask multiply failure

8 years agofix for own regression, edge path tagging worked but toggline bevel didnt.
Campbell Barton [Wed, 27 Feb 2013 07:05:01 +0000 (07:05 +0000)]
fix for own regression, edge path tagging worked but toggline bevel didnt.
reported as bug [#34449]

8 years agofix for own regression - joining meshes didn't merge customdata flags (could loose...
Campbell Barton [Wed, 27 Feb 2013 05:38:48 +0000 (05:38 +0000)]
fix for own regression - joining meshes didn't merge customdata flags (could loose crease/bevel weights).

8 years agoenable grabbing for 2d view zooming, good for the graph editor.
Campbell Barton [Wed, 27 Feb 2013 04:59:39 +0000 (04:59 +0000)]
enable grabbing for 2d view zooming, good for the graph editor.

8 years agomake sure objects dragged into the viewport are not hidden.
Campbell Barton [Wed, 27 Feb 2013 04:57:53 +0000 (04:57 +0000)]
make sure objects dragged into the viewport are not hidden.

8 years agocode cleanup: unused arg
Campbell Barton [Wed, 27 Feb 2013 01:43:48 +0000 (01:43 +0000)]
code cleanup: unused arg

8 years agocode cleanup: quiet warnings
Campbell Barton [Wed, 27 Feb 2013 01:40:36 +0000 (01:40 +0000)]
code cleanup: quiet warnings

8 years ago== Sequencer ==
Peter Schlaile [Wed, 27 Feb 2013 00:04:07 +0000 (00:04 +0000)]
== Sequencer ==

This fixes the placement code of new files added to the sequencer timeline.

The old code tried to guess the strip position from the current mouse
pointer position.

Annoying effect: if you add a new strip using the menu, especially if the
file editor pops up, the strip ends up in nowheres land (most likely around
track 40, frame -200).

New behaviour: strips are always placed at cfra, which is the
sequencer equivalent to the 3D cursor (and that's where new objects in
3D editing end up).

Bonus feature: we try our best to guess the right track by finding the
nearest strip by type.

The patch was inspired by
[#32766] VSE: Add Strip on Current Frame

Thanks to venomgfx for the idea!

8 years agoGrmlll... *Always* check before commit, even on such simple things! (Fix for own...
Bastien Montagne [Tue, 26 Feb 2013 23:12:42 +0000 (23:12 +0000)]
Grmlll... *Always* check before commit, even on such simple things! (Fix for own mistake in previous commit).

8 years agoadd PHY headers to cmake's ketsji (else some IDE's won't show)
Campbell Barton [Tue, 26 Feb 2013 23:08:42 +0000 (23:08 +0000)]
add PHY headers to cmake's ketsji (else some IDE's won't show)

8 years agoFix [#34455] Origin to Center of Mass is missing in menu Object > Transform
Bastien Montagne [Tue, 26 Feb 2013 23:01:54 +0000 (23:01 +0000)]
Fix [#34455] Origin to Center of Mass is missing in menu Object > Transform

Just adding the needed py line.

8 years agoFix various warnings with clang build, and adjust cmake clang warnings flags
Brecht Van Lommel [Tue, 26 Feb 2013 21:58:06 +0000 (21:58 +0000)]
Fix various warnings with clang build, and adjust cmake clang warnings flags
to include a few more that gcc is using too.

8 years agoFix build error in depsgraph refactoring commit.
Brecht Van Lommel [Tue, 26 Feb 2013 20:34:37 +0000 (20:34 +0000)]
Fix build error in depsgraph refactoring commit.

8 years agoAdd: [#34443] Ability to set 'Pivot Center for rotation/scale' missing in weight...
Gaia Clary [Tue, 26 Feb 2013 18:35:16 +0000 (18:35 +0000)]
Add: [#34443] Ability to set 'Pivot Center for rotation/scale' missing in weight paint mode

8 years agoDependency Graph: refactoring to move private functions to the private header,
Brecht Van Lommel [Tue, 26 Feb 2013 18:15:51 +0000 (18:15 +0000)]
Dependency Graph: refactoring to move private functions to the private header,
and add more documentation about the public functions. Also removed unused graph
traversal code and other minor unused functions.

8 years agoUse threaded cost function and jacobian computation
Sergey Sharybin [Tue, 26 Feb 2013 17:52:10 +0000 (17:52 +0000)]
Use threaded cost function and jacobian computation
Also made it theraded linear solver, seems it makes
sense for iterative schur with inner iterations

Use OpenMO's max therads called from bundler code
to detect how many threads to use. Could be changed
in a way that number of threads is passing in options
from blender side in the future.

Also removed redundant V3D definition from compiler's

8 years agoFix #34421: cycles viewport render stuck with no objects in the scene.
Brecht Van Lommel [Tue, 26 Feb 2013 17:06:05 +0000 (17:06 +0000)]
Fix #34421: cycles viewport render stuck with no objects in the scene.

8 years agoFix [#34444] Curve: Select Nth Number of Points
Bastien Montagne [Tue, 26 Feb 2013 16:39:41 +0000 (16:39 +0000)]
Fix [#34444] Curve: Select Nth Number of Points

Just use default op name, as for meshes!

8 years agoAdd missing select menu for weight, vertex, texture paint modes.
Campbell Barton [Tue, 26 Feb 2013 15:42:33 +0000 (15:42 +0000)]
Add missing select menu for weight, vertex, texture paint modes.

8 years agofix own regression since 2.65 [#34438] Solidify crease bug
Campbell Barton [Tue, 26 Feb 2013 14:32:53 +0000 (14:32 +0000)]
fix own regression since 2.65 [#34438] Solidify crease bug

8 years agoCamera tracking: support refining radial K1, K2 only
Sergey Sharybin [Tue, 26 Feb 2013 11:46:38 +0000 (11:46 +0000)]
Camera tracking: support refining radial K1, K2 only

This commits adds extra refirenment entry in the menu which is
"K1, K2" and which will apparently refine only this distortion

This would be useful in cases when you know for sure focal length
(which could be obtained from lens, EXIF and so) but not sure
about how good you manual calibration is.

Be careful tho, there're no internal constraints on this
coefficients so distortion model could just screw up into insane

8 years agoCamera tracking: switch euclidean intersection code to use Ceres
Sergey Sharybin [Tue, 26 Feb 2013 11:46:27 +0000 (11:46 +0000)]
Camera tracking: switch euclidean intersection code to use Ceres

Would not expect any significant changes in solver behavior, but
it could be more accurate in some cases.

Switching projective intersection to ceres is marked as a TODO
for now.

8 years agofix for own regression in win32 from r54225, wrong args used in getAllDisplayDimensions()
Campbell Barton [Tue, 26 Feb 2013 09:33:54 +0000 (09:33 +0000)]
fix for own regression in win32 from r54225, wrong args used in getAllDisplayDimensions()
caused bug [#34391] Window position not saving correctly for next start-up

8 years agopatch [#34437] Fix text editor bug: ctrl+F is not configurable
Campbell Barton [Tue, 26 Feb 2013 05:22:04 +0000 (05:22 +0000)]
patch [#34437] Fix text editor bug: ctrl+F is not configurable
in fact the keymap editor was missing other keymaps so added these too,
also updated keymap checker to make sure there is no mismatch with region/space types.

8 years agoadd ctest for keyconfig_utils to check for missing items.
Campbell Barton [Tue, 26 Feb 2013 04:48:16 +0000 (04:48 +0000)]
add ctest for keyconfig_utils to check for missing items.

8 years agofix [#34415] Edge slide results in segmentation fault on certain mesh
Campbell Barton [Tue, 26 Feb 2013 03:20:10 +0000 (03:20 +0000)]
fix [#34415] Edge slide results in segmentation fault on certain mesh

8 years agoCMake: update cmake.txt documentation to remove some old information and link
Brecht Van Lommel [Tue, 26 Feb 2013 00:49:45 +0000 (00:49 +0000)]
CMake: update cmake.txt documentation to remove some old information and link
to the wiki for detailed cmake build setup instructions.

8 years agoOpenGL: implemenation of fixed function lighting as per pixel GLSL shaders. The
Brecht Van Lommel [Tue, 26 Feb 2013 00:49:42 +0000 (00:49 +0000)]
OpenGL: implemenation of fixed function lighting as per pixel GLSL shaders. The
code is still unused, but the intention is to use this to solve the double sided
lighting problem on NVidia, and to make the materials work on OpenGL ES 2.0

The code works and matches the fixed function lighting pretty much exactly, but
still needs optimizations. The actual integration in object draw will be
committed later when more fixing & testing, there's lots of different combinations
and unclear OpenGL state here.

8 years agoFix OS X build error with Quicktime, need <stdio.h> for FILE usage.
Brecht Van Lommel [Tue, 26 Feb 2013 00:49:38 +0000 (00:49 +0000)]
Fix OS X build error with Quicktime, need <stdio.h> for FILE usage.

8 years agofix [#34423] Foreach_get crash for any non existant attribute
Campbell Barton [Tue, 26 Feb 2013 00:31:36 +0000 (00:31 +0000)]
fix [#34423] Foreach_get crash for any non existant attribute
also improve exception messages.

8 years agosimplify drag toggle operator, use BLI_rctf_isect_segment between mouse events rather...
Campbell Barton [Tue, 26 Feb 2013 00:09:26 +0000 (00:09 +0000)]
simplify drag toggle operator, use BLI_rctf_isect_segment between mouse events rather then many calls to ui_but_find_mouse_over().

8 years agoadd define for drag toggle.
Campbell Barton [Mon, 25 Feb 2013 23:27:32 +0000 (23:27 +0000)]
add define for drag toggle.

8 years agorigidbody: Don't set object to rigid body on dummy transform
Sergej Reich [Mon, 25 Feb 2013 22:36:50 +0000 (22:36 +0000)]
rigidbody: Don't set object to rigid body on dummy transform

Fixes [#34420] rigid objects not resetting original properly after running a simulation.

8 years agorevert some changes from own commit r54850 which broke undo for toggle buttons, also...
Campbell Barton [Mon, 25 Feb 2013 21:13:40 +0000 (21:13 +0000)]
revert some changes from own commit r54850 which broke undo for toggle buttons, also make toggle buttons auto-key.

8 years agoBye-bye, SSBA!
Sergey Sharybin [Mon, 25 Feb 2013 20:15:42 +0000 (20:15 +0000)]
Bye-bye, SSBA!

With new bundle adjustment based on Ceres we don't need
SSBA library anymore. This also means we don't need ldl
library and libmv is no longer depends on colamd as well.

8 years agoSwitch motion tracker bundle adjustment to Ceres.
Keir Mierle [Mon, 25 Feb 2013 20:00:48 +0000 (20:00 +0000)]
Switch motion tracker bundle adjustment to Ceres.

Patch originally written by me, then finished by Sergey. Big
thanks to Sergey for troopering through and fixing the many issues
with my original (not compilable) patch.

The Ceres implementation uses 2 parameter blocks for each camera
(1 for rotation and 1 for translation), 1 parameter block for
common intrinsics (focal length etc) and 1 parameter block for
each track (e.g. bundle or 3D point).

We turn on some fancy optimizer options to get better performance,
in particular:

  options.preconditioner_type = ceres::SCHUR_JACOBI;
  options.linear_solver_type = ceres::ITERATIVE_SCHUR;
  options.use_inner_iterations = true;
  options.use_nonmonotonic_steps = true;
  options.max_num_iterations = 100;

Special thanks to Sameer Agarwal of Ceres fame for splitting out
the SCHUR_JACOBI preconditioner so that it didn't depend on
CHOLMOD.  Previously we could not use that preconditioner in
Blender because CHOLMOD is too large of a dependency for Blender.

- Moved bunch of if(foo) LG << "bar" into this function, to make
  EuclideanBundleCommonIntrinsics a little bit easier to follow.

- Fix RMSE logging.

8 years agoSome minor UI messages fixes.
Bastien Montagne [Mon, 25 Feb 2013 19:16:04 +0000 (19:16 +0000)]
Some minor UI messages fixes.

8 years agoTame that stupid py code not to eat existing fuzzies in po’s when updating from POT...
Bastien Montagne [Mon, 25 Feb 2013 16:06:59 +0000 (16:06 +0000)]
Tame that stupid py code not to eat existing fuzzies in po’s when updating from POT file!

8 years agofix: #34427: Collada export crash with armature
Gaia Clary [Mon, 25 Feb 2013 16:02:40 +0000 (16:02 +0000)]
fix: #34427: Collada export crash with armature

8 years agorigidbody: Don't embed collision margin if object has no volume
Sergej Reich [Mon, 25 Feb 2013 15:51:53 +0000 (15:51 +0000)]
rigidbody: Don't embed collision margin if object has no volume

While it's not a good idea to create convex hull shapes from objects
with no volume, this makes them behave a little nicer.

Fixes [#34410] Planes with Rigid Body always keep distance to colliding objects

8 years agoFix compilation error with libmv disabled
Sergey Sharybin [Mon, 25 Feb 2013 13:15:42 +0000 (13:15 +0000)]
Fix compilation error with libmv disabled

8 years agoonly apply workaround for [#33223] when using intel cards on windows.
Campbell Barton [Mon, 25 Feb 2013 12:19:38 +0000 (12:19 +0000)]
only apply workaround for [#33223] when using intel cards on windows.

8 years agoCheck if the variable is a string and split nicely, so compile command stays intact...
Nathan Letwory [Mon, 25 Feb 2013 12:03:55 +0000 (12:03 +0000)]
Check if the variable is a string and split nicely, so compile command stays intact with proper include options.

8 years agois_crappy_intel_card() was checking strstr(glGetString(GL_VENDOR), "Intel") every...
Campbell Barton [Mon, 25 Feb 2013 12:03:26 +0000 (12:03 +0000)]
is_crappy_intel_card() was checking strstr(glGetString(GL_VENDOR), "Intel") every call,
better store in static var.

8 years agofix for toggle buttons not taking effect on mousedown.
Campbell Barton [Mon, 25 Feb 2013 11:52:18 +0000 (11:52 +0000)]
fix for toggle buttons not taking effect on mousedown.

8 years agoUpdate Carve to newest upstream version with some assorted fixes
Sergey Sharybin [Mon, 25 Feb 2013 10:02:43 +0000 (10:02 +0000)]
Update Carve to newest upstream version with some assorted fixes

Perhaps some warnings could be silenced, but not in mood of writing
local patches at this moment. They're all harmless anyway.

8 years agoCamera tracking, minor changes:
Sergey Sharybin [Mon, 25 Feb 2013 09:46:47 +0000 (09:46 +0000)]
Camera tracking, minor changes:

- Fill in image dimension for camera intrinsics used for
  solution refirement.
- Retrieve K3 from camera intrinsics after refining.

Shall be no functional changes, just makes things clear
and robust for further improvements.

8 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

8 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

8 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.

8 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

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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.

8 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().


8 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)

8 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)

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

8 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.

8 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.

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

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

8 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

8 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!

8 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).

8 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

8 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

8 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

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

8 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.

8 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.

* 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!

8 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.

8 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.

8 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).