9 years agoBicubic bump map filtering.
Antony Riakiotakis [Thu, 15 Dec 2011 13:58:09 +0000 (13:58 +0000)]
Bicubic bump map filtering.

This commit introduces bicubic bump map capabilities for the viewport for OpenGL 3.0+ capable GPUs.

To use the functionality change the bump mapping method to "best quality"
Previous "best quality" setting becomes "medium quality" now.
For non OpenGL 3.0 GPUs this becomes the same as "medium quality"

* added tooltip descriptions to the bump method settings.
* modified the shader to ommit extraneous matrix multiplications for matrices already provided by OpenGL.

Bicubic shader by Morten Mikkelsen. Thanks a lot!

Oh...and FIRST!

9 years agoBCon 1: Alpha, new features, fun and fixes again! :)
Thomas Dinges [Thu, 15 Dec 2011 13:41:29 +0000 (13:41 +0000)]
BCon 1: Alpha, new features, fun and fixes again! :)

9 years agoFix #29233: Windows accessibility feature "sticky keys" for disabled people not working.
Brecht Van Lommel [Thu, 15 Dec 2011 13:01:01 +0000 (13:01 +0000)]
Fix #29233: Windows accessibility feature "sticky keys" for disabled people not working.

9 years agoAdded note that cmake/scons rules are automatically generated for extern/libmv
Sergey Sharybin [Thu, 15 Dec 2011 12:44:05 +0000 (12:44 +0000)]
Added note that cmake/scons rules are automatically generated for extern/libmv
Also updated generation scripts and templates

9 years agoFree run no gaps time code implementation
Sergey Sharybin [Thu, 15 Dec 2011 12:18:09 +0000 (12:18 +0000)]
Free run no gaps time code implementation

This commit adds new timecode type which counts frames in gapless mode (counting
actually decoded frames instead of using pts to find frame number) which might
resolve issues with files which have got broken or incorrect base time value stored
in the header.

This timecode allows to deal with movies from #29388: Abnormal frame length on MP4 files

9 years agoNew fix for [#29543] Hook modifier: falloff + vgroup influence broken
Bastien Montagne [Thu, 15 Dec 2011 08:57:48 +0000 (08:57 +0000)]
New fix for [#29543] Hook modifier: falloff + vgroup influence broken

Don't know why, but creating a dm when there was none broke multi hooks on curves (see #29567)... So as a valid dm is only mandatory for meshes when a vgroup is set, only create it in those cases!

9 years agoFix #29615: Crash during undo after toggling "Float buffer" in image paint mode
Sergey Sharybin [Thu, 15 Dec 2011 08:01:49 +0000 (08:01 +0000)]
Fix #29615: Crash during undo after toggling "Float buffer" in image paint mode

Crash was caused by different types of buffers stored in tile in undo stack and in
image itself. Store type of buffer in tile, so byte tile wouldn't be applying on
float image anymore.

9 years agoFix #29577: repeat curve duplication not working in 2.60(as well as 2.61rc1)
Sergey Sharybin [Thu, 15 Dec 2011 07:54:13 +0000 (07:54 +0000)]
Fix #29577: repeat curve duplication not working in 2.60(as well as 2.61rc1)

Issue was caused by direct call of transforn operator from extrude and duplicate,
made them macro of duplicate/exturde and transform, so now repeating works nicely.

9 years agominor vertex group edits
Campbell Barton [Wed, 14 Dec 2011 23:53:46 +0000 (23:53 +0000)]
minor vertex group edits
* when freeing a deform weight, use one less memcpy call.
* vgroup_delete_object_mode(), was looping on the deform verts twice when it didn't need to.

9 years agomore vertex weight edits,
Campbell Barton [Wed, 14 Dec 2011 22:54:38 +0000 (22:54 +0000)]
more vertex weight edits,
* replace inline loops with api calls.
* change constraints so verts with 0.0 weight are ignored like they are everywhere else.

9 years agovertex group changes,
Campbell Barton [Wed, 14 Dec 2011 21:08:08 +0000 (21:08 +0000)]
vertex group changes,

use more api functions more (some vertex group editing functions were copied about), also make some functions int oapi calls.

- remove defgroup_find_index(), use BLI_findlink instead since they both work the same way.
- move static function getNearestPointOnPlane() to BLI_math api function closest_to_plane_v3()
- ED_vgroup_give_parray() added option to return an array where unselected verts are NULL (simplifies code & works for lattice when it didn't before).
- more consistant error checking of ob->actdef.

9 years agoFix for Jens commit, otherwise OSX will crash without Jack as soon as audio access...
Joerg Mueller [Wed, 14 Dec 2011 08:38:21 +0000 (08:38 +0000)]
Fix for Jens commit, otherwise OSX will crash without Jack as soon as audio access is tried.

9 years agoCleanup for 42622 using struct stat instead boost
Jens Verwiebe [Wed, 14 Dec 2011 08:01:24 +0000 (08:01 +0000)]
Cleanup for 42622 using struct stat instead boost

9 years agoOSX: Add a framework-check for Jack to avoid crashes
Jens Verwiebe [Wed, 14 Dec 2011 06:15:52 +0000 (06:15 +0000)]
OSX: Add a framework-check for Jack to avoid crashes

9 years agofix for py noise doc string (not a show stopper :) )
Campbell Barton [Tue, 13 Dec 2011 22:30:23 +0000 (22:30 +0000)]
fix for py noise doc string (not a show stopper :) )

9 years agoDo not use a dot in the end of descriptions
Sergey Sharybin [Tue, 13 Dec 2011 19:40:49 +0000 (19:40 +0000)]
Do not use a dot in the end of descriptions

9 years agoFirst Blender 2.61 commit! (Sneaked in quick tooltop fix too).
Ton Roosendaal [Tue, 13 Dec 2011 16:44:31 +0000 (16:44 +0000)]
First Blender 2.61 commit! (Sneaked in quick tooltop fix too).
A tag will happen after this commit.

9 years agoDo not switch to safe malloc if tracking sequence
Sergey Sharybin [Tue, 13 Dec 2011 16:37:52 +0000 (16:37 +0000)]
Do not switch to safe malloc if tracking sequence

Malloc is getting to be safe on sequence tracking by the jobs system,
so no additional set up are necessary.

This hopefully fixes crash on OSX with OpenMP enabled when compiling by older gcc

9 years agoDisallow link/append when in edit mode
Sergey Sharybin [Tue, 13 Dec 2011 12:51:40 +0000 (12:51 +0000)]
Disallow link/append when in edit mode

Linking changes active object which is pretty useful in general,
but which totally confuses edit mode (i.e. it becoming not so obvious
to leave from edit mode and inwalid tools in toolbar might be displayed)
so disable link/append when in edit mode

9 years agoFix cycles compile for win32.
Miika Hamalainen [Tue, 13 Dec 2011 10:17:17 +0000 (10:17 +0000)]
Fix cycles compile for win32.

9 years agoSmall typo fix for tooltip of FModifier.blend_out
Joshua Leung [Tue, 13 Dec 2011 10:15:14 +0000 (10:15 +0000)]
Small typo fix for tooltip of FModifier.blend_out

Cheers to "Lockal" for finding this one!

9 years agoFixed crash when tracking several tracks manually
Sergey Sharybin [Tue, 13 Dec 2011 10:07:22 +0000 (10:07 +0000)]
Fixed crash when tracking several tracks manually

Crash was caused by non-threadsafe guarded allocatio which becomes
threadsafe only when thread was started using BLI_threads module.

9 years agoBuildbot tweaks:
Sergey Sharybin [Tue, 13 Dec 2011 09:54:48 +0000 (09:54 +0000)]
Buildbot tweaks:
- Enable SSE/SSe2 for 64bit builds
- Build CUDA binaries

9 years agoFix #29594: cycles NaN values with window coordinates mapping.
Brecht Van Lommel [Tue, 13 Dec 2011 00:00:26 +0000 (00:00 +0000)]
Fix #29594: cycles NaN values with window coordinates mapping.

9 years agoCycles: require Experimental to be set to enable CUDA on cards with shader model
Brecht Van Lommel [Mon, 12 Dec 2011 22:51:35 +0000 (22:51 +0000)]
Cycles: require Experimental to be set to enable CUDA on cards with shader model
lower than 1.3, since we're not officially supporting these. We're already not
providing CUDA binaries for these, so better make it clear when compiling from
source too.

9 years agoOSX: proper scons config and linking weak for jackOSX and errorhandling
Jens Verwiebe [Mon, 12 Dec 2011 22:17:02 +0000 (22:17 +0000)]
OSX: proper scons config and linking weak for jackOSX and errorhandling

9 years agocorrection to report message
Campbell Barton [Mon, 12 Dec 2011 20:57:10 +0000 (20:57 +0000)]
correction to report message

9 years agoadd WM_operator_call_notest() for operators that need to call themselves within invok...
Campbell Barton [Mon, 12 Dec 2011 18:52:18 +0000 (18:52 +0000)]
add WM_operator_call_notest() for operators that need to call themselves within invoke functions without being freed.

9 years agoFix #29603: Mode switch on linked objects
Sergey Sharybin [Mon, 12 Dec 2011 18:25:52 +0000 (18:25 +0000)]
Fix #29603: Mode switch on linked objects

Do not allow to enter to weight paint mode for proxied objects.

9 years agofix [#29537] file/save crashes when target path isnt found
Campbell Barton [Mon, 12 Dec 2011 18:06:36 +0000 (18:06 +0000)]
fix [#29537] file/save crashes when target path isnt found

bug was that uiPupMenuSaveOver(...) could run the WM API call function which freed the operator, within the low level invoke function which kept using the freed memory.

Changed uiPupMenuSaveOver(...) to only show a popup so the caller needs to check if the file exists and should be immediately written (which was done everywhere except for blend saving anyway).

* added note that operators invoke/exec funcs cant call WM_operator_call(...) on themselves, ends up using freed memory.
* added BLI_is_file(path), checks the file exists and isnt a directory.

9 years agoFix #29600: Hook actions wrong Tool Shelf adjust
Sergey Sharybin [Mon, 12 Dec 2011 14:54:28 +0000 (14:54 +0000)]
Fix #29600: Hook actions wrong Tool Shelf adjust

Do not register hook_assign and hook_remove operators in the redo panel.

9 years agoFix #29599: Side of Active tool not working in Faces/Edges
Sergey Sharybin [Mon, 12 Dec 2011 14:52:00 +0000 (14:52 +0000)]
Fix #29599: Side of Active tool not working in Faces/Edges

Added warning message if there's no last selected vertex in the selection stack.

9 years agofix for 2 crashes running operators in background mode.
Campbell Barton [Mon, 12 Dec 2011 03:25:10 +0000 (03:25 +0000)]
fix for 2 crashes running operators in background mode.

9 years agonot all filepaths had the FILE_PATH subtype, this means using non utf8 paths would...
Campbell Barton [Sun, 11 Dec 2011 21:23:29 +0000 (21:23 +0000)]
not all filepaths had the FILE_PATH subtype, this means using non utf8 paths would give errors.

9 years agofix for bpy.path.abspath() on windows when the library argument was set and its self...
Campbell Barton [Sun, 11 Dec 2011 19:48:56 +0000 (19:48 +0000)]
fix for bpy.path.abspath() on windows when the library argument was set and its self a relative path too.

9 years agofix [#29579] Redo brolken when jobs are running
Campbell Barton [Sun, 11 Dec 2011 19:23:02 +0000 (19:23 +0000)]
fix [#29579] Redo brolken when jobs are running

* undo now checks screen jobs only, was checking all jobs before so a material preview could make an undo fail.
  now this is only limiteds for render/fluid bake/bake.

* the redo UI is now disabled when screen operators run.

9 years agofix for accessing the keying set menu as an enum rather than in int
Campbell Barton [Sun, 11 Dec 2011 17:10:46 +0000 (17:10 +0000)]
fix for accessing the keying set menu as an enum rather than in int

9 years agoSet lens settings to blender's camera on "Setup Tracking Scene" operator
Sergey Sharybin [Sun, 11 Dec 2011 15:48:15 +0000 (15:48 +0000)]
Set lens settings to blender's camera on "Setup Tracking Scene" operator
Helps in cases camera was removed from scene after solve before setting scene up.

9 years agoFix #29574: Strange crash using translated Blender
Sergey Sharybin [Sun, 11 Dec 2011 15:42:39 +0000 (15:42 +0000)]
Fix #29574: Strange crash using translated Blender

Description can be NULL for properties like enum items. Just added NULL-check here

9 years agoSCA: Scene Actuator text error
Dalai Felinto [Sun, 11 Dec 2011 10:39:41 +0000 (10:39 +0000)]
SCA: Scene Actuator text error
copy+paste bug when creating the rnas

9 years agomissing config_freebsd.h from cmake file list
Campbell Barton [Sun, 11 Dec 2011 00:53:37 +0000 (00:53 +0000)]
missing config_freebsd.h from cmake file list

9 years agodelta scale default was still left at 0.0
Campbell Barton [Sun, 11 Dec 2011 00:01:04 +0000 (00:01 +0000)]
delta scale default was still left at 0.0

9 years agoremove unused function, found when syncing with bmesh, also remove/comment some unuse...
Campbell Barton [Sat, 10 Dec 2011 20:10:28 +0000 (20:10 +0000)]
remove unused function, found when syncing with bmesh, also remove/comment some unused defines

9 years agoIn the node space context update function: Properly clear the snode->edittree pointer...
Lukas Toenne [Sat, 10 Dec 2011 15:52:08 +0000 (15:52 +0000)]
In the node space context update function: Properly clear the snode->edittree pointer when no snode->nodetree is active. This would lead to crash in operators when switching from an existing node tree, since the usual poll function only tests for the edittree.

Fixes bug #29566.

9 years agoFix #29516: Twist brush giving crazy results
Sergey Sharybin [Sat, 10 Dec 2011 14:45:30 +0000 (14:45 +0000)]
Fix #29516: Twist brush giving crazy results

- Rotation now happens around initial stroke location rather than around scene origin
- Added slider for rotation strength which helps in cases only few rotation is needed
  to be to increase the precision of such strokes

9 years agoFixed for movieclips tag function which was tagging wrong list
Sergey Sharybin [Sat, 10 Dec 2011 13:54:51 +0000 (13:54 +0000)]
Fixed for movieclips tag function which was tagging wrong list

Pointed out by Lockal, thanks!

9 years agoBugfix [#29567] Second Hook Modifier fails on Curve Object
Joshua Leung [Sat, 10 Dec 2011 03:37:37 +0000 (03:37 +0000)]
Bugfix [#29567] Second Hook Modifier fails on Curve Object

This was broken in r.42515. In particular, rigs with Spline IK would break,
since they often use curves with hook modifiers controlling the control-points
of those curves.

9 years agoCompile fix for r.42546 typo
Joshua Leung [Sat, 10 Dec 2011 03:24:19 +0000 (03:24 +0000)]
Compile fix for r.42546 typo

9 years agodisabling DM_calc_auto_bump_scale() until after release
Morten Mikkelsen [Sat, 10 Dec 2011 01:14:36 +0000 (01:14 +0000)]
disabling DM_calc_auto_bump_scale() until after release

9 years agopicky edits & regen man page
Campbell Barton [Sat, 10 Dec 2011 01:07:22 +0000 (01:07 +0000)]
picky edits & regen man page

9 years agofix for error in bpy_extras.image_utils.load_image() when the image file exists but...
Campbell Barton [Sat, 10 Dec 2011 01:01:22 +0000 (01:01 +0000)]
fix for error in bpy_extras.image_utils.load_image() when the image file exists but cant be read (wrong permissions for eg).

9 years agoverify existence of dm
Morten Mikkelsen [Sat, 10 Dec 2011 01:00:12 +0000 (01:00 +0000)]
verify existence of dm

9 years agofixes scale on derivative maps
Morten Mikkelsen [Fri, 9 Dec 2011 23:26:06 +0000 (23:26 +0000)]
fixes scale on derivative maps

9 years agofix for bpy_extras.image_utils.load_image() making a placeholder image when passed...
Campbell Barton [Fri, 9 Dec 2011 21:07:37 +0000 (21:07 +0000)]
fix for bpy_extras.image_utils.load_image() making a placeholder image when passed a path in bytes.
made OBJ import fail when the image was missing.

9 years agocheck for weights outside of 0-1 range when validating weights
Campbell Barton [Fri, 9 Dec 2011 20:29:21 +0000 (20:29 +0000)]
check for weights outside of 0-1 range when validating weights

9 years agoFix #29558: Selecting similar edges doesn't work
Sergey Sharybin [Fri, 9 Dec 2011 16:10:15 +0000 (16:10 +0000)]
Fix #29558: Selecting similar edges doesn't work

Return OPERATOR_FINISHED from select grouped operator in any case so
even if nothing were selected operator would be registered in redo panel
and threshold can be adjusted there.

9 years agoFix for recent rna rename of global to use_global
Sergey Sharybin [Fri, 9 Dec 2011 15:56:04 +0000 (15:56 +0000)]
Fix for recent rna rename of global to use_global

9 years agoFix for select similar vertices operator: it's exec used to return selection count
Sergey Sharybin [Fri, 9 Dec 2011 14:30:44 +0000 (14:30 +0000)]
Fix for select similar vertices operator: it's exec used to return selection count
instead of OPERATOR_* return values which used to confuse operators system.

9 years agoMesh drawing optimization and fixes:
Sergey Sharybin [Fri, 9 Dec 2011 11:46:48 +0000 (11:46 +0000)]
Mesh drawing optimization and fixes:

- Pass MFace, MTface and OrigIndex arrays via userData to compareDrawParams callback
  rather than looking up for this layers for each face
- This allowed to avoid massing DM to compare callback which seems like a bad-level pass
- Fixed crashes on some video cards when assigning different materials to different
  faces in edit mode. Both of intel and nvidia cards in my laptop were affected by
  this error

9 years agoglobal is python keyword so cant use as operator argument,
Campbell Barton [Fri, 9 Dec 2011 10:19:11 +0000 (10:19 +0000)]
global is python keyword so cant use as operator argument,
also ran operator cheat sheet and made sure no syntax errors.

+ minor pep8 edits.

9 years agowent over all uses of MDeformWeight.def_nr and made sure the value is clamped when...
Campbell Barton [Fri, 9 Dec 2011 08:20:27 +0000 (08:20 +0000)]
went over all uses of MDeformWeight.def_nr and made sure the value is clamped when used as an array index.

9 years agofunction de-duplicate, particle.c had 'vert_weight' which serves the exact same purpo...
Campbell Barton [Fri, 9 Dec 2011 08:05:23 +0000 (08:05 +0000)]
function de-duplicate, particle.c had 'vert_weight' which serves the exact same purpose as 'defvert_find_weight'.

9 years agoanother possible fix for bug [#29521], all callers of flip_side_name(...), assumed...
Campbell Barton [Fri, 9 Dec 2011 07:35:56 +0000 (07:35 +0000)]
another possible fix for bug [#29521], all callers of flip_side_name(...), assumed it initialized the string however for 1-2 length names it returned without doing anything.

in most cases the caller would then check if the name was different to see if the name was flipped, incorrectly comparing the uninitialized string with the original name.

9 years agoBKE_mesh_validate_arrays was correcting non-finite verts and zero normals even when...
Campbell Barton [Fri, 9 Dec 2011 07:23:17 +0000 (07:23 +0000)]
BKE_mesh_validate_arrays was correcting non-finite verts and zero normals even when do_fixes was false, also return true if any bad vertex weights were found.`

9 years agopossible/partial fix for [#29521], in many places the deform group index was not...
Campbell Barton [Fri, 9 Dec 2011 07:18:04 +0000 (07:18 +0000)]
possible/partial fix for [#29521], in many places the deform group index was not checked which could crash blender.

9 years ago[#29509] Randomize rotations fails with Axis/Angle
Daniel Salazar [Fri, 9 Dec 2011 06:21:26 +0000 (06:21 +0000)]
[#29509] Randomize rotations fails with Axis/Angle

Fix based on Brecht's idea: use Blender's conversion from quat or axis angle to euler and back. Euler rotations are left alone so their rotation order is respected

9 years agominor changes, fix coming next (no functional edits).
Campbell Barton [Fri, 9 Dec 2011 06:05:58 +0000 (06:05 +0000)]
minor changes, fix coming next (no functional edits).

9 years agoremove redundant cases. no functional change.
Campbell Barton [Fri, 9 Dec 2011 01:27:59 +0000 (01:27 +0000)]
remove redundant cases. no functional change.

9 years agoFix #29555: cycles crash rendering with no material in material slot.
Brecht Van Lommel [Fri, 9 Dec 2011 00:24:48 +0000 (00:24 +0000)]
Fix #29555: cycles crash rendering with no material in material slot.

9 years agoFix #29528: crash adding subsurf modifier in a particular scene with viewport render.
Brecht Van Lommel [Thu, 8 Dec 2011 21:55:35 +0000 (21:55 +0000)]
Fix #29528: crash adding subsurf modifier in a particular scene with viewport render.

9 years agoFix for #29475 broke properly updating toggle buttons in popup menus. Tweak the
Brecht Van Lommel [Thu, 8 Dec 2011 20:24:01 +0000 (20:24 +0000)]
Fix for #29475 broke properly updating toggle buttons in popup menus. Tweak the
fix a bit, not a true solution to the problem, but too close to release for
bigger changes.

9 years agoScons/CUDA
Thomas Dinges [Thu, 8 Dec 2011 19:16:43 +0000 (19:16 +0000)]
* Added missing bitness info to the nvcc_flags.
This makes sure that the nvcc compiler builds the correct cubins.

9 years agorandomize transform operators 'rotation' property subtype changed
M.G. Kishalmi [Thu, 8 Dec 2011 15:55:49 +0000 (15:55 +0000)]
randomize transform operators 'rotation' property subtype changed
 from TRANSLATION to EULER and tweaks needed along with that.

9 years agoFix [#29543] Hook modifier: falloff + vgroup influence broken
Bastien Montagne [Thu, 8 Dec 2011 15:50:28 +0000 (15:50 +0000)]
Fix [#29543] Hook modifier: falloff + vgroup influence broken

A valid derivedmesh is needed for modifier_get_vgroup to work, and it wasn’t take care of when not in edit mode... Checked quickly the other deform modifiers, they all seem to handle this correctly.

9 years agoFix #29547: missing units for some curve properties, patch by M.G. Kishalmi.
Brecht Van Lommel [Thu, 8 Dec 2011 14:26:46 +0000 (14:26 +0000)]
Fix #29547: missing units for some curve properties, patch by M.G. Kishalmi.

9 years agoTweak related to #29545: show info message if no frames are written in animation
Brecht Van Lommel [Thu, 8 Dec 2011 14:21:55 +0000 (14:21 +0000)]
Tweak related to #29545: show info message if no frames are written in animation
render due to disabled Overwrite option.

9 years agoFix #29546: missing 3d view redraw after game exit with overlap draw mode,
Brecht Van Lommel [Thu, 8 Dec 2011 11:37:04 +0000 (11:37 +0000)]
Fix #29546: missing 3d view redraw after game exit with overlap draw mode,
when launching game from properties editor. Also fix popup/menu still
showing during game when starting from the top menu.

9 years agoDisable redo for some vertex group operators to prevent confusing
Sergey Sharybin [Thu, 8 Dec 2011 11:02:29 +0000 (11:02 +0000)]
Disable redo for some vertex group operators to prevent confusing
situation when changing properties in redo panel messes up things.

This should help in cases described in #29527: Vgroup assign, remove and undo

9 years agoregarding [#29521] Invalid Vertex Weights
Campbell Barton [Thu, 8 Dec 2011 04:51:03 +0000 (04:51 +0000)]
regarding [#29521] Invalid Vertex Weights

added checks to mesh.validate() so it checks for nan weights and negative groups which can crash blender.

the file in the report looks to be corrupt, but this at least can make it load.

also noticed validate was using isnan() and finite() were both used to check valid vertex locations, only finite is needed.

9 years agominor refactor of vertex group functions,
Campbell Barton [Thu, 8 Dec 2011 03:47:45 +0000 (03:47 +0000)]
minor refactor of vertex group functions,
- defvert_remove_index's index wasnt used anywhere, rename to defvert_remove_group
- defvert_add_to_group was local in MOD_weightvg_util.c, moved to deform.c and renamed to defvert_add_index_notest

real fix coming next...

9 years agoFix #29520: issue drawing with VBO + GLSL + alpha pass. Includes some refactoring
Brecht Van Lommel [Wed, 7 Dec 2011 22:03:49 +0000 (22:03 +0000)]
Fix #29520: issue drawing with VBO + GLSL + alpha pass. Includes some refactoring
to hopefully make alpha material drawing code more clear.

9 years agoReorder options in refine menu + fixed typo
Sergey Sharybin [Wed, 7 Dec 2011 18:51:43 +0000 (18:51 +0000)]
Reorder options in refine menu + fixed typo

Patch by Sebastian Koenig, thanks!

9 years agoremove initilaizing weight collor with dummy value (from recent commit), harmless...
Campbell Barton [Wed, 7 Dec 2011 18:22:16 +0000 (18:22 +0000)]
remove initilaizing weight collor with dummy value (from recent commit), harmless but not needed.

9 years agoUpdate presets for tracking
Sergey Sharybin [Wed, 7 Dec 2011 17:28:42 +0000 (17:28 +0000)]
Update presets for tracking

9 years agoFix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)
Sergey Sharybin [Wed, 7 Dec 2011 17:23:45 +0000 (17:23 +0000)]
Fix #28663: All "unit" properties show a value of 0 (on WinXP&MinGW&scons)

Use %g instead of %lg due to %g is supposed to be used for doubles and %lg confuses mingw at all

9 years agoMore fix for snapto in Pose mode:
Bastien Montagne [Wed, 7 Dec 2011 15:55:37 +0000 (15:55 +0000)]
More fix for snapto in Pose mode:
* The code for snap to grid was completely wrong (only x pos of chan was affected… by z computed value!), and the same problem as with snap to cursor was present (using armature_loc_pose_to_bone is wrong here). Also, computing nearest grid point in world space! Else, it generally ends up completely out of grid, due to object transforms...
* Small cleanup of code (uneeded vars and copying).

9 years agoFix [#29461] Selection-to-Cursor works strange with bones with TrackTo constraint.
Bastien Montagne [Wed, 7 Dec 2011 15:21:38 +0000 (15:21 +0000)]
Fix [#29461] Selection-to-Cursor works strange with bones with TrackTo constraint.

In fact, the problem was present with any kind of constraint…

We need the cursor coordinates in the rest bone space (aka armature space), i.e with all "manual" and "procedural" (constraints, ...) pose transforms cleared (as said in armature_mat_pose_to_bone:

/* Remove the pchan's transforms from it's pose_mat.
 * This should leave behind the effects of restpose +
 * parenting + constraints

, only "manual" transforms are "cleared" by armature_loc_pose_to_bone...).

9 years agoMerging remained part of hybrid tracker which adds correlation threshold
Sergey Sharybin [Wed, 7 Dec 2011 14:54:03 +0000 (14:54 +0000)]
Merging remained part of hybrid tracker which adds correlation threshold

Keir's comment:
  Add support for detecting tracking failure in the ESM tracker component of
  libmv. Since both KLT and Hybrid rely on ESM underneath, KLT and Hybrid now
  have a minimum correlation setting to match. With this fix, track failures
  should get detected quicker, with the issue that sometimes the tracker will
  give up too easily. That is fixable by reducing the required correlation (in
  the track properties).

Command used for merge: svn merge -r 42396:42397 -r 42399:42400 ^/branches/soc-2011-tomato

9 years agoFix #29523: RenderEngine.update_progress() doesn't redraw UI.
Brecht Van Lommel [Wed, 7 Dec 2011 11:29:24 +0000 (11:29 +0000)]
Fix #29523: RenderEngine.update_progress() doesn't redraw UI.

9 years agoFix #29518: uv cylinder/sphere unwrap from menu didn't work same as using U key menu.
Brecht Van Lommel [Wed, 7 Dec 2011 11:22:29 +0000 (11:22 +0000)]
Fix #29518: uv cylinder/sphere unwrap from menu didn't work same as using U key menu.

9 years agoTracks which were moved to close to boundary weren'haven't been disabled when doing
Sergey Sharybin [Wed, 7 Dec 2011 10:53:51 +0000 (10:53 +0000)]
Tracks which were moved to close to boundary weren'haven't been disabled when doing
frame-by-frame tracking.

9 years agoMake Hybrid tracker default for movie clips
Sergey Sharybin [Wed, 7 Dec 2011 10:01:39 +0000 (10:01 +0000)]
Make Hybrid tracker default for movie clips

9 years agoFix #29432: Marquee Select Bug
Sergey Sharybin [Wed, 7 Dec 2011 09:55:37 +0000 (09:55 +0000)]
Fix #29432: Marquee Select Bug

Moved tweak threshold value to user preferences

This threshold might be needed to be tweaked when working with tables, i.e.
to prevent tap+slight movement be treated as tweak event.

9 years agoCamera tracking: some bug fixes
Sergey Sharybin [Wed, 7 Dec 2011 09:21:50 +0000 (09:21 +0000)]
Camera tracking: some bug fixes

- Fixed bug with not putting disabled markers properly when doing backwards tracking
- Fixed margin size calculating from pattern size which used to be double-sized
  and prevented to track things on the image edges.

9 years agofix for NULL pointer free and add in some checks, while looking into bug [#29521],
Campbell Barton [Wed, 7 Dec 2011 09:13:15 +0000 (09:13 +0000)]
fix for NULL pointer free and add in some checks, while looking into bug [#29521],
add asserts so we know if an invalid active index is ever set.

9 years agocorrect missing argument error if CYCLES_OPTIMIZED_KERNEL_FLAGS isnt set
Campbell Barton [Wed, 7 Dec 2011 08:03:52 +0000 (08:03 +0000)]
correct missing argument error if CYCLES_OPTIMIZED_KERNEL_FLAGS isnt set

9 years agofix for uninitialized memory use drawing 'nan' vertex groups, noticed while looking...
Campbell Barton [Wed, 7 Dec 2011 07:13:33 +0000 (07:13 +0000)]
fix for uninitialized memory use drawing 'nan' vertex groups, noticed while looking into [#29521]

9 years agofix for noise module in driver namespace (was infact mathutils).
Campbell Barton [Wed, 7 Dec 2011 00:36:57 +0000 (00:36 +0000)]
fix for noise module in driver namespace (was infact mathutils).

9 years agoFix related to #29513: materials using nodes will output passes from the active
Brecht Van Lommel [Tue, 6 Dec 2011 16:04:45 +0000 (16:04 +0000)]
Fix related to #29513: materials using nodes will output passes from the active
material node. This is a confusing system, but two features were missing from
2.4x that made this at least a bit more clear:

* The top right icon in the node now shows brighter again for the active node.
* Setting a material datablock in a node makes that node active.

9 years agoCycles / CUDA Kernel compile:
Thomas Dinges [Tue, 6 Dec 2011 16:00:57 +0000 (16:00 +0000)]
Cycles / CUDA Kernel compile:
* Added option "WITH_BF_CYCLES_CUDA_THREADED_COMPILE" for the people who have much RAM (8 or more) and can compile several kernels at the same time. If enabled, it uses the general BF_NUMJOBS flag.
* The option is off per default.