7 years agosvn merge ^/trunk/blender -r42655:42660
Campbell Barton [Fri, 16 Dec 2011 04:16:52 +0000 (04:16 +0000)]
svn merge ^/trunk/blender -r42655:42660

7 years agofix [#29620] Topology Mirror: not refreshing vertex UUIDs
Campbell Barton [Fri, 16 Dec 2011 04:01:08 +0000 (04:01 +0000)]
fix [#29620] Topology Mirror: not refreshing vertex UUIDs

7 years agofix [#29626] Warp tool: stuck Angle value
Campbell Barton [Fri, 16 Dec 2011 03:45:44 +0000 (03:45 +0000)]
fix [#29626] Warp tool: stuck Angle value

7 years agofix own error [#29631] frame is lost from driver namespace after reload
Campbell Barton [Fri, 16 Dec 2011 03:06:56 +0000 (03:06 +0000)]
fix own error [#29631] frame is lost from driver namespace after reload

7 years agofix [#29635] Attempts to import the site module are met with a TypeError exception.
Campbell Barton [Fri, 16 Dec 2011 00:06:01 +0000 (00:06 +0000)]
fix [#29635] Attempts to import the site module are met with a TypeError exception.

7 years agosvn merge ^/trunk/blender -r42617:42655
Campbell Barton [Thu, 15 Dec 2011 23:59:02 +0000 (23:59 +0000)]
svn merge ^/trunk/blender -r42617:42655

7 years agoCURVE_OT_extrude doesn't have type property, not sure where it came from here.
Sergey Sharybin [Thu, 15 Dec 2011 19:32:57 +0000 (19:32 +0000)]
CURVE_OT_extrude doesn't have type property, not sure where it came from here.

7 years agoreenabled auto scale for derivative maps
Morten Mikkelsen [Thu, 15 Dec 2011 15:48:44 +0000 (15:48 +0000)]
reenabled auto scale for derivative maps

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

7 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! :)

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

7 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

7 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

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

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

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

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

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

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

7 years agoPartial fix for #29601 - fixes infinite loop in edgesplit; but edgesplit (angles...
Howard Trickey [Wed, 14 Dec 2011 14:53:22 +0000 (14:53 +0000)]
Partial fix for #29601 - fixes infinite loop in edgesplit; but edgesplit (angles) messes the geometry still

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

7 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

7 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

7 years agowhen calculating the size to bevel when the factor is measured against the face,...
Campbell Barton [Wed, 14 Dec 2011 00:43:42 +0000 (00:43 +0000)]
when calculating the size to bevel when the factor is measured against the face, use the shorter edge rather then the middle.

this reduces overlapping geometry.

7 years agosvn merge ^/trunk/blender -r42586:42617
Campbell Barton [Wed, 14 Dec 2011 00:30:31 +0000 (00:30 +0000)]
svn merge ^/trunk/blender -r42586:42617

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

7 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

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

7 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

7 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

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

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

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

7 years ago2 new bevel options for the operator and the modifier.
Campbell Barton [Tue, 13 Dec 2011 09:57:19 +0000 (09:57 +0000)]
2 new bevel options for the operator and the modifier.

* even offset, uses same shell distance method as solidify to give even with beveled faces.
* distance offset, this is mostly for compatibility with the modifier in trunk which uses the bevel width as a distance rather then a percentage. at the moment this is awkward for the operator since it makes percent act differently where the 0-1 range doesnt make sense.

still need to bring back more options from trunks bevel modifier.

7 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

7 years agoformatting and minor refactor of some bmesh functions.
Campbell Barton [Tue, 13 Dec 2011 06:56:10 +0000 (06:56 +0000)]
formatting and minor refactor of some bmesh functions.
* BM_Make_Quadtriangle --> BM_Make_Face_QuadTri_v
* BM_Make_QuadTri      --> BM_Make_Face_QuadTri

7 years agosave 4 bytes per BMLoop, added some comments on index use.
Campbell Barton [Tue, 13 Dec 2011 05:20:02 +0000 (05:20 +0000)]
save 4 bytes per BMLoop, added some comments on index use.

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

7 years agonon functional changes & de-duplicate yet another face center function
Campbell Barton [Mon, 12 Dec 2011 23:58:05 +0000 (23:58 +0000)]
non functional changes & de-duplicate yet another face center function

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

7 years agoremove BLI_blenlib since its not needed in quite a few bmesh files
Campbell Barton [Mon, 12 Dec 2011 22:34:05 +0000 (22:34 +0000)]
remove BLI_blenlib since its not needed in quite a few bmesh files

7 years agoformatting and variable rename edits only.
Campbell Barton [Mon, 12 Dec 2011 22:25:28 +0000 (22:25 +0000)]
formatting and variable rename edits only.

7 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

7 years agosvn merge ^/trunk/blender -r42564:42586
Campbell Barton [Mon, 12 Dec 2011 21:01:39 +0000 (21:01 +0000)]
svn merge ^/trunk/blender -r42564:42586

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

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

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

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

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

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

7 years agoslight improvement to bevel, when using the edges to take the new vertex location...
Campbell Barton [Mon, 12 Dec 2011 09:28:46 +0000 (09:28 +0000)]
slight improvement to bevel, when using the edges to take the new vertex location into account, dont let the longer edge skew the new position.

also include an new & improved vertex placement method but left commented for now.

7 years agominor bevel improvement
Campbell Barton [Mon, 12 Dec 2011 09:09:01 +0000 (09:09 +0000)]
minor bevel improvement
- concave vertices in a polygon were not correctly checked for.
- remove commented method of calculating bevel vertex positions, have a similar/better method coming.

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

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

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

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

7 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

7 years agoAdd vertex connect tool to Ctrl-V submenu and Mesh->Vertices submenu.
Antony Riakiotakis [Sun, 11 Dec 2011 16:56:09 +0000 (16:56 +0000)]
Add vertex connect tool to Ctrl-V submenu and Mesh->Vertices submenu.

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

7 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

7 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

7 years agoworkaround for tessface not being recalculated when undo is disabled
Campbell Barton [Sun, 11 Dec 2011 05:05:37 +0000 (05:05 +0000)]
workaround for tessface not being recalculated when undo is disabled

7 years agosvn merge ^/trunk/blender -r42550:42564
Campbell Barton [Sun, 11 Dec 2011 01:06:43 +0000 (01:06 +0000)]
svn merge ^/trunk/blender -r42550:42564

7 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

7 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

7 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

7 years agominor cleanup and sync with trunk
Campbell Barton [Sat, 10 Dec 2011 18:41:53 +0000 (18:41 +0000)]
minor cleanup and sync with trunk

7 years agofix [#29541] Scale of faces incorrect when using individual origins
Campbell Barton [Sat, 10 Dec 2011 18:25:56 +0000 (18:25 +0000)]
fix [#29541] Scale of faces incorrect when using individual origins

7 years agoknife_project_v3 can call ED_view3d_project_float directly without having its own...
Campbell Barton [Sat, 10 Dec 2011 18:24:44 +0000 (18:24 +0000)]
knife_project_v3 can call ED_view3d_project_float directly without having its own check for ortho

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

7 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

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

7 years agosvn merge ^/trunk/blender -r42521:42550
Campbell Barton [Sat, 10 Dec 2011 05:38:00 +0000 (05:38 +0000)]
svn merge ^/trunk/blender -r42521:42550

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

7 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

7 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

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

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

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

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

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

7 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

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

7 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

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

7 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

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

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

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

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

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

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

7 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

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

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

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

7 years agosvn merge ^/trunk/blender -r42516:42521
Campbell Barton [Fri, 9 Dec 2011 00:23:57 +0000 (00:23 +0000)]
svn merge ^/trunk/blender -r42516:42521

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

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

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