8 years agoreport [#30814] Absolute Shape Keys not working in 2.6
Campbell Barton [Thu, 5 Apr 2012 05:05:18 +0000 (05:05 +0000)]
report [#30814] Absolute Shape Keys not working in 2.6

This report points out thet absolute shape keys are unusable.

The problem is there was no way to adjust the play time of a shape key (all absolte shape keys would start at frame zero with no way to change the speed).

Added an 'eval_time' property to the key block that works like the curve path evaluation time, so the time in the keyblock can be controlled.

8 years agoThis fixes BGE bugs #30484 (Frame rate increases very high after game engine start...
Mitchell Stokes [Thu, 5 Apr 2012 03:05:02 +0000 (03:05 +0000)]
This fixes BGE bugs #30484 (Frame rate increases very high after game engine start with record animation enabled) and #29449 (Record Animation runs 1000+ fps on Mac OSX 10.6.8 64bit). The problem was, recording animation was forcing "fixed time", which always advances the engine one frame instead of advancing based on time passed. This means that "fixed time" runs at full speed. Now fixed time is disabled when recording animation.

8 years agofix [#30788] Weight paint mode draws mask single sided only when selected.
Campbell Barton [Thu, 5 Apr 2012 02:23:00 +0000 (02:23 +0000)]
fix [#30788] Weight paint mode draws mask single sided only when selected.

error with recent refactoring.

8 years agofix [#30817] Toolshelf delete vs X menu don't match? Bug/Inconsistancy?
Campbell Barton [Thu, 5 Apr 2012 01:55:49 +0000 (01:55 +0000)]
fix [#30817] Toolshelf delete vs X menu don't match? Bug/Inconsistancy?

8 years agopartial fix [#30813] Small UI glitch with high DPI value in menus
Campbell Barton [Thu, 5 Apr 2012 01:49:28 +0000 (01:49 +0000)]
partial fix [#30813] Small UI glitch with high DPI value in menus

fix provided by Julien Enche (trap).

also corrected some 2.4x theme colors (selected file, outliner and image background)

8 years agoadjust limited dissolve to take face angle into account when dissolving vertices...
Campbell Barton [Thu, 5 Apr 2012 01:20:32 +0000 (01:20 +0000)]
adjust limited dissolve to take face angle into account when dissolving vertices between manifold edges.

stops artifact with zig-zag patterns between _almost_ planer faces.

8 years agoYet another windef.h compile fix for MinGW for game engine/video textures with ffmpeg...
Antony Riakiotakis [Wed, 4 Apr 2012 17:18:01 +0000 (17:18 +0000)]
Yet another windef.h compile fix for MinGW for game engine/video textures with ffmpeg. Looks like there is some redefinition of LONG , DWORD etc. Changing the order of inclusion resolves the issue.

8 years agoFix bug [#30810] Blender crashes with Array modifier
Nicholas Bishop [Wed, 4 Apr 2012 16:35:13 +0000 (16:35 +0000)]
Fix bug [#30810] Blender crashes with Array modifier

When merging bmesh customdata, memset the new blocks to
zero. Otherwise can contain junk values (some layer types with
pointers like MDeformVert can then crash.)

8 years agoFix #30710: cycles wrong render time after pause/unpause in viewport.
Brecht Van Lommel [Wed, 4 Apr 2012 16:11:44 +0000 (16:11 +0000)]
Fix #30710: cycles wrong render time after pause/unpause in viewport.

8 years agoFix #30803: shader node Mapping location property conflicted with based class
Brecht Van Lommel [Wed, 4 Apr 2012 16:11:39 +0000 (16:11 +0000)]
Fix #30803: shader node Mapping location property conflicted with based class
location property (for the node editor), now renamed to "translation".

8 years agoFix #30811: glsl error in material draw mode, due to recent commit.
Brecht Van Lommel [Wed, 4 Apr 2012 16:11:10 +0000 (16:11 +0000)]
Fix #30811: glsl error in material draw mode, due to recent commit.

8 years agoVector blur compo node: raising hard limit for Blur factor to 20 (soft, UI limit...
Bastien Montagne [Wed, 4 Apr 2012 15:43:39 +0000 (15:43 +0000)]
Vector blur compo node: raising hard limit for Blur factor to 20 (soft, UI limit remains at 2), usefull in some "special effects" case, though results can become strange in some cases...

8 years agoUpdate to i18n font: a few small cyrillic letters were missing...
Bastien Montagne [Wed, 4 Apr 2012 15:39:48 +0000 (15:39 +0000)]
Update to i18n font: a few small cyrillic letters were missing...

Found by Chingis Jumaliev, which did a first edit, I completed it from current Debian’s droidsans version, now cyrillic should be complete.

8 years agofix [#30809] Limited dissolve leaves edges behind
Campbell Barton [Wed, 4 Apr 2012 15:10:20 +0000 (15:10 +0000)]
fix [#30809] Limited dissolve leaves edges behind

8 years agoadd option not to delete edges/verts when joining faces, needed so we can loop over...
Campbell Barton [Wed, 4 Apr 2012 14:48:10 +0000 (14:48 +0000)]
add option not to delete edges/verts when joining faces, needed so we can loop over edges and join them without having to check if they have been removed.

8 years agoreplace relative imports with absolute imports so scritps can be executed directly...
Campbell Barton [Wed, 4 Apr 2012 14:39:52 +0000 (14:39 +0000)]
replace relative imports with absolute imports so scritps can be executed directly (live editing).

8 years agoFix blenderplayer compile.
Miika Hamalainen [Wed, 4 Apr 2012 10:55:55 +0000 (10:55 +0000)]
Fix blenderplayer compile.

8 years agofix for building on linux with gcc4.7, an error was caused by undefining __cplusplus...
Campbell Barton [Wed, 4 Apr 2012 10:54:56 +0000 (10:54 +0000)]
fix for building on linux with gcc4.7, an error was caused by undefining __cplusplus, so as to work with mingw4.4

this was added in r23608 so hopefully we can get buy now without it - or only undefine this in mingw if the problem still exists (cant test now).

8 years agouse 2.4x tooltip colors
Campbell Barton [Wed, 4 Apr 2012 06:02:10 +0000 (06:02 +0000)]
use 2.4x tooltip colors

8 years agoupdate themes for new settings + theme update script.
Campbell Barton [Wed, 4 Apr 2012 05:42:36 +0000 (05:42 +0000)]
update themes for new settings + theme update script.

8 years agoswitching shape keys in editmode needs to recalc normals.
Campbell Barton [Wed, 4 Apr 2012 03:32:41 +0000 (03:32 +0000)]
switching shape keys in editmode needs to recalc normals.

8 years agoChanged BM_mesh_bm_from_me to copy customdata layout for empty meshes.
Joseph Eagar [Wed, 4 Apr 2012 01:35:27 +0000 (01:35 +0000)]
Changed BM_mesh_bm_from_me to copy customdata layout for empty meshes.

8 years agouse 'const float' when passing readonly colors, and include array size.
Campbell Barton [Wed, 4 Apr 2012 01:02:15 +0000 (01:02 +0000)]
use 'const float' when passing readonly colors, and include array size.

8 years agofix [#30797] Shape keys on linked duplicate get corrupted
Campbell Barton [Wed, 4 Apr 2012 00:45:40 +0000 (00:45 +0000)]
fix [#30797] Shape keys on linked duplicate get corrupted

8 years agofix for reconstructing shape keys (found when looking into bug [#30797], but not...
Campbell Barton [Wed, 4 Apr 2012 00:02:48 +0000 (00:02 +0000)]
fix for reconstructing shape keys (found when looking into bug [#30797], but not a fix for this bug).

8 years agorename MPoly vars called mface or mf, to avoid confusion with MFace types.
Campbell Barton [Tue, 3 Apr 2012 23:40:24 +0000 (23:40 +0000)]
rename MPoly vars called mface or mf, to avoid confusion with MFace types.

8 years agoFix #30796: uv vertex coordinates panel in uv editor incorrectly taking into
Brecht Van Lommel [Tue, 3 Apr 2012 19:08:06 +0000 (19:08 +0000)]
Fix #30796: uv vertex coordinates panel in uv editor incorrectly taking into
account selected uvs from hidden faces.

8 years agoFix bug #30778, sculpt w/ modifiers + undo causes collapse of vertices
Nicholas Bishop [Tue, 3 Apr 2012 18:41:40 +0000 (18:41 +0000)]
Fix bug #30778, sculpt w/ modifiers + undo causes collapse of vertices

Was caused by earlier refactoring of undo, used index array
before it gets initialized. Fixed by swapping order of copying.

Also changed normals calculation on undo restore to operate on
tessellated data (which sculpt still uses), fixes console warning

8 years agoFix #30795: draw other objects in uv editor not working.
Brecht Van Lommel [Tue, 3 Apr 2012 17:26:57 +0000 (17:26 +0000)]
Fix #30795: draw other objects in uv editor not working.

8 years agoFix [#30665] UV-Editor: UV -> Copy Mirrored UV coords: mesh.faces_mirror_uv op now...
Bastien Montagne [Tue, 3 Apr 2012 17:19:58 +0000 (17:19 +0000)]
Fix [#30665] UV-Editor: UV -> Copy Mirrored UV coords: mesh.faces_mirror_uv op now uses poly/loops (bmesh todo).

8 years agoFix #30791: BMEdge.is_manifold also returned true for edges with only one face
Brecht Van Lommel [Tue, 3 Apr 2012 17:09:47 +0000 (17:09 +0000)]
Fix #30791: BMEdge.is_manifold also returned true for edges with only one face
attached to it. A manifold edge should have exactly 2 faces attached to it,
sticking to the standard definition for "manifold".

8 years agoPopup menu layout inherits context store from button.
Lukas Toenne [Tue, 3 Apr 2012 15:18:59 +0000 (15:18 +0000)]
Popup menu layout inherits context store from button.

When adding extra context data in a layout using uiLayoutSetContextPointer, this info was not inherited by popup menus generated in this layout. While operators from regular buttons work fine, the data is missing in operators from menus and such. This patch copies the bContextStore from buttons to the new uiLayout used for popups.

8 years agoFix #30789: cycles still taking into account textured solid option when it should
Brecht Van Lommel [Tue, 3 Apr 2012 14:08:04 +0000 (14:08 +0000)]
Fix #30789: cycles still taking into account textured solid option when it should
have no effect.

8 years agoFix #28279: Shift S used twice in maya keyconfig
Sergey Sharybin [Tue, 3 Apr 2012 13:35:00 +0000 (13:35 +0000)]
Fix #28279: Shift S used twice in maya keyconfig

It looks to be non-maintained keymap anymore, this commit only resolves
keymap conflict changing snap menu to ctrl-shift-s, no more global
changes to not break muscule memory so close to release.

8 years agofix [#30340] bpy.ops.pose.select_hierarchy() doesn't work on disconnected parents...
Campbell Barton [Tue, 3 Apr 2012 12:20:44 +0000 (12:20 +0000)]
fix [#30340] bpy.ops.pose.select_hierarchy() doesn't work on disconnected parents/children

8 years agoavoid confusion with image 'Edit Externally' operator, disallow editing of packed...
Campbell Barton [Tue, 3 Apr 2012 12:02:32 +0000 (12:02 +0000)]
avoid confusion with image 'Edit Externally' operator, disallow editing of packed images, resolves bug [#30506].

8 years agoMake sure Multilayer EXR from other apps are read in as multilayer.
Nathan Letwory [Tue, 3 Apr 2012 11:53:38 +0000 (11:53 +0000)]
Make sure Multilayer EXR from other apps are read in as multilayer.

8 years agofix [#30608] Regression: BMesh merge broke customdata int/float/string layers
Campbell Barton [Tue, 3 Apr 2012 11:19:58 +0000 (11:19 +0000)]
fix [#30608] Regression: BMesh merge broke customdata int/float/string layers

8 years agorna/py api - rename layers with polygon prefix, since there are edge and vertex layer...
Campbell Barton [Tue, 3 Apr 2012 11:10:26 +0000 (11:10 +0000)]
rna/py api - rename layers with polygon prefix, since there are edge and vertex layers too.

8 years agoFixed mistake made in threaded EXR commit.
Sergey Sharybin [Tue, 3 Apr 2012 09:11:26 +0000 (09:11 +0000)]
Fixed mistake made in threaded EXR commit.

8 years agofix [#30786] bmesh: select linked not ignoring hidden verts/edges/faces (part 2)
Campbell Barton [Tue, 3 Apr 2012 07:35:50 +0000 (07:35 +0000)]
fix [#30786] bmesh: select linked not ignoring hidden verts/edges/faces (part 2)

8 years agofix/workaround an error related to [#30735]
Campbell Barton [Tue, 3 Apr 2012 07:31:11 +0000 (07:31 +0000)]
fix/workaround an error related to [#30735]

when a single face in a loop is hidden, loop cut will subdivide edges on both sides.
creating an edge between the hidden faces.

without this workaround the edge ends up hidden and selected.

added a check in BM_mesh_validate() for hidden/selected elements.

8 years agofix [#30735] bmesh: loop-cut cuts faces isolated by hidden faces
Campbell Barton [Tue, 3 Apr 2012 06:12:04 +0000 (06:12 +0000)]
fix [#30735] bmesh: loop-cut cuts faces isolated by hidden faces

8 years agoBM_mesh_esubdivideflag was adjusting the totedgesel variable when this is handled...
Campbell Barton [Tue, 3 Apr 2012 06:05:43 +0000 (06:05 +0000)]
BM_mesh_esubdivideflag was adjusting the totedgesel variable when this is handled by selection functions.

8 years agor45338 added multithreaded OpenEXR loading. Path to pthread was missing.
Nathan Letwory [Tue, 3 Apr 2012 05:23:23 +0000 (05:23 +0000)]
r45338 added multithreaded OpenEXR loading. Path to pthread was missing.

8 years agopartial fix [#30777] python console utf-8 problem
Campbell Barton [Tue, 3 Apr 2012 03:17:49 +0000 (03:17 +0000)]
partial fix [#30777] python console utf-8 problem

backspace/del now doesn't split up multi-byte characters.
Ctlr+Backspace/Del now work for deleting whole words.

8 years agopatch [#30780] Transform operator leak in aborted edge slide mode
Campbell Barton [Tue, 3 Apr 2012 02:52:34 +0000 (02:52 +0000)]
patch [#30780] Transform operator leak in aborted edge slide mode
from Francisco De La Cruz (xercesblue)

8 years agopatch [#30779] Multiselect mode cause inconsistent selection growing
Campbell Barton [Tue, 3 Apr 2012 02:46:44 +0000 (02:46 +0000)]
patch [#30779] Multiselect mode cause inconsistent selection growing

from Francisco De La Cruz (xercesblue)

The test to use faces was incorrect since mixed vertex and edge mode would be treated as faces.

made own minor change.

8 years agofix [#30772] No more than two subdivions give correct result when adding an icosphere
Campbell Barton [Tue, 3 Apr 2012 02:38:27 +0000 (02:38 +0000)]
fix [#30772] No more than two subdivions give correct result when adding an icosphere

bug was introduced in r45297, which inadvertently broke testing for multiple flags at once.

added BM_elem_flag_test_bool() and BMO_elem_flag_test_bool() to get TRUE/FALSE results rather then the flag value.

8 years agofix for vertex group blend - wasn't functional since the deform verts were being...
Campbell Barton [Tue, 3 Apr 2012 02:16:27 +0000 (02:16 +0000)]
fix for vertex group blend - wasn't functional since the deform verts were being tken from a NULL array,

also made some other improvements
- make it work in weight paint vert sel mode (some unused code for this was in the function).
- add factor slider.
- add to weight paint toolbar.

8 years agobmesh iterators were passing the BMesh as data argument to BM_iter_new(), harmless...
Campbell Barton [Tue, 3 Apr 2012 00:28:38 +0000 (00:28 +0000)]
bmesh iterators were passing the BMesh as data argument to BM_iter_new(), harmless but incorrect.
replace these cases with iterator macro.

8 years agocode cleanup: BM_select_mode_set had loops over verts and edges but did nothing ...
Campbell Barton [Mon, 2 Apr 2012 23:17:56 +0000 (23:17 +0000)]
code cleanup: BM_select_mode_set had loops over verts and edges but did nothing (set 0 flags), turns out setting any flags isnt needed since flushing manages this so '#if 0' for now.

8 years agostyle cleanup: multi-line if's & whitespace.
Campbell Barton [Mon, 2 Apr 2012 22:40:02 +0000 (22:40 +0000)]
style cleanup: multi-line if's & whitespace.

8 years agostule cleanup: edits for files which were recently cleaned up.
Campbell Barton [Mon, 2 Apr 2012 22:26:00 +0000 (22:26 +0000)]
stule cleanup: edits for files which were recently cleaned up.

8 years agoFurther fix for #30769: cycles assigning image to wrong material form the
Brecht Van Lommel [Mon, 2 Apr 2012 19:38:26 +0000 (19:38 +0000)]
Further fix for #30769: cycles assigning image to wrong material form the
uv image editor.

8 years agoFix #30769: cycles showing wrong image from active face in the uv editor,
Brecht Van Lommel [Mon, 2 Apr 2012 16:30:01 +0000 (16:30 +0000)]
Fix #30769: cycles showing wrong image from active face in the uv editor,
with multiple material slots.

8 years agoFix #30776: image editor pan not using continuous grab if enabled.
Brecht Van Lommel [Mon, 2 Apr 2012 16:29:34 +0000 (16:29 +0000)]
Fix #30776: image editor pan not using continuous grab if enabled.

8 years agoFix #30398: Mesh objects with curve modifiers render in thier 'rest' position, not...
Sergey Sharybin [Mon, 2 Apr 2012 15:06:21 +0000 (15:06 +0000)]
Fix #30398: Mesh objects with curve modifiers render in thier 'rest' position, not thier 'pose' position

Do not recalculate curve's path if displist is building for orco -- in this
case modifiers are not applying on curve which makes path be calculated and
later used by dependent objects with it's non-modified state.

8 years agoExpand active scene's clip when linking scene.
Sergey Sharybin [Mon, 2 Apr 2012 13:56:39 +0000 (13:56 +0000)]
Expand active scene's clip when linking scene.

8 years agoSolve namespace conflicts for ole grumpy MinGW. It seems FLOAT is also defined in...
Antony Riakiotakis [Mon, 2 Apr 2012 13:48:20 +0000 (13:48 +0000)]
Solve namespace conflicts for ole grumpy MinGW. It seems FLOAT is also defined in a windef.h header.

8 years agoFix #30767: VSE timeline marker update
Sergey Sharybin [Mon, 2 Apr 2012 12:37:03 +0000 (12:37 +0000)]
Fix #30767: VSE timeline marker update

Patch by Dan Eicher, thanks!

8 years agoHopefully last change to matrix orthogonal check, touches Py API only
Sergey Sharybin [Mon, 2 Apr 2012 12:36:00 +0000 (12:36 +0000)]
Hopefully last change to matrix orthogonal check, touches Py API only

- is_orthogonal now checks matrix in the same way as it's defined
  by linear algebra, meaning that it'll use is_orhonormal C check
- Added is_orthogonal_axis_vectors to check if vectors which defines
  axises are orthogonal

8 years agoFix #30770: missing node editor redraw when changing active material by clicking
Brecht Van Lommel [Mon, 2 Apr 2012 11:51:36 +0000 (11:51 +0000)]
Fix #30770: missing node editor redraw when changing active material by clicking
on face in edit mode.

8 years agowrap RNA's RNA_property_collection_clear from python.
Campbell Barton [Mon, 2 Apr 2012 11:28:26 +0000 (11:28 +0000)]
wrap RNA's RNA_property_collection_clear from python.

8 years agoMultithreaded EXR files loading
Sergey Sharybin [Mon, 2 Apr 2012 11:04:24 +0000 (11:04 +0000)]
Multithreaded EXR files loading

Use multithreaded loading of EXR files which is enabling by call of
setGlobalThreadCount function from OpenEXR library to set up number
of used threads to number of system threads which speeds up loading
high-resolution files on multi-core / multi-cpu systems and allows
to work with high-resolution sequences in clip editor and sequencer.

8 years agofix for a bug with Ctrl+Click extrude in curve editmode, it would use the wrong handl...
Campbell Barton [Mon, 2 Apr 2012 10:20:10 +0000 (10:20 +0000)]
fix for a bug with Ctrl+Click extrude in curve editmode, it would use the wrong handle type in some cases.
also make it re-calculate the handle locations which is much more useful.

8 years agofix problem with select invert - flush selection.
Campbell Barton [Mon, 2 Apr 2012 09:07:02 +0000 (09:07 +0000)]
fix problem with select invert - flush selection.

previously this wasnt needed because doing an undo push would flush the selection.

8 years agoadding back boundary inset support. was disabled because at one point it was unstable.
Campbell Barton [Mon, 2 Apr 2012 08:58:26 +0000 (08:58 +0000)]
adding back boundary inset support. was disabled because at one point it was unstable.

8 years agofix [#30758] bmesh: unable to rip a single vertex
Campbell Barton [Mon, 2 Apr 2012 08:35:12 +0000 (08:35 +0000)]
fix [#30758] bmesh: unable to rip a single vertex

this also adds the ability to rip disconnected face fans apart which is handy.

8 years agoConstraint UI:
Thomas Dinges [Mon, 2 Apr 2012 07:54:12 +0000 (07:54 +0000)]
Constraint UI:
* Adjust "no py constraint" message to be a bit more meaningful.

8 years agoMinor UI messages fix...
Bastien Montagne [Mon, 2 Apr 2012 06:56:16 +0000 (06:56 +0000)]
Minor UI messages fix...

8 years agocode cleanup: replace inline axis angle conversion with axis_angle_to_mat3()
Campbell Barton [Mon, 2 Apr 2012 06:43:16 +0000 (06:43 +0000)]
code cleanup: replace inline axis angle conversion with axis_angle_to_mat3()

8 years agostyle cleanup
Campbell Barton [Mon, 2 Apr 2012 06:26:52 +0000 (06:26 +0000)]
style cleanup

8 years agopatch [#30721] Fly Operator Stack Corruption
Campbell Barton [Mon, 2 Apr 2012 05:34:58 +0000 (05:34 +0000)]
patch [#30721] Fly Operator Stack Corruption
from Jason Wilkins (jwilkins)

slight change to fix in patch.

8 years agofix [#30768] Project from View UV map tool includes hidden geometry r45323
Campbell Barton [Mon, 2 Apr 2012 04:45:44 +0000 (04:45 +0000)]
fix [#30768] Project from View UV map tool includes hidden geometry r45323

select all could select hidden faces, now BM_mesh_elem_flag_enable/disable_all takes an argument to skip hidden elements.

8 years agofix - extrude could create hidden faces when the only connected face to an edge was...
Campbell Barton [Mon, 2 Apr 2012 03:51:16 +0000 (03:51 +0000)]
fix - extrude could create hidden faces when the only connected face to an edge was hidden, the hidden setting would be copied to the newly created face.

8 years agocode cleanup:
Campbell Barton [Mon, 2 Apr 2012 02:41:28 +0000 (02:41 +0000)]
code cleanup:
  always use if (...) even if the macros dont require it (confuses parsers)
  define macros without the ';'s included.

8 years agostyle cleanup
Campbell Barton [Mon, 2 Apr 2012 01:57:56 +0000 (01:57 +0000)]
style cleanup

8 years agoReverting some style changes from r45305.
Nicholas Bishop [Sun, 1 Apr 2012 15:25:07 +0000 (15:25 +0000)]
Reverting some style changes from r45305.

See discussion here:

8 years agoPartial fix [#30744] BMesh: Particle system face/volume emission doesn't work if...
Bastien Montagne [Sun, 1 Apr 2012 15:02:19 +0000 (15:02 +0000)]
Partial fix [#30744] BMesh: Particle system face/volume emission doesn't work if there is a constructive modifier earlier.

When ORIGSPACE is added, it is now a loop data, so we need to mark tessdata as dirty too. Also fixed DM_ensure_tessface to check DM_DIRTY_TESS_CDLAYERS flag!

This fixes problems with subsurf + dynapaint + particles, however, some modifiers, like remesh, seems to create a new dm from scratch, hence loosing completely those CD layers… Note this bug already existed in 2.62, so this is not a regression.

8 years agofix for [#30738] Shading smooth/flat instability
Andrea Weikert [Sun, 1 Apr 2012 10:36:54 +0000 (10:36 +0000)]
fix for [#30738] Shading smooth/flat instability

Committing patch from Francisco De La Cruz ([#30753] Shade smooth not preserved when toggling editmode)
Thanks for researching this and providing fix.

8 years agoFix for is_orthogonal check which in fact was checking for orthonormal matrix.
Sergey Sharybin [Sun, 1 Apr 2012 00:14:41 +0000 (00:14 +0000)]
Fix for is_orthogonal check which in fact was checking for orthonormal matrix.
Separated it into two functions so now it'll be clear if check happens for
orthonormal or just orthogonal.

8 years agoFixing kyrgyz language (code is ky_KG, just ky does not work...).
Bastien Montagne [Sat, 31 Mar 2012 14:22:22 +0000 (14:22 +0000)]
Fixing kyrgyz language (code is ky_KG, just ky does not work...).

These keycodes are a mess, and impossible to test them all under linux, as you always have to install the corresponding locales... :(

8 years agoSmall array modifier performance improvement.
Nicholas Bishop [Sat, 31 Mar 2012 12:29:41 +0000 (12:29 +0000)]
Small array modifier performance improvement.

Transform vertices directly rather than using BMOp.

8 years agoMinor code cleanups for bmo_dupe.c.
Nicholas Bishop [Sat, 31 Mar 2012 12:29:17 +0000 (12:29 +0000)]
Minor code cleanups for bmo_dupe.c.

8 years agostyle cleanup: text editor
Campbell Barton [Sat, 31 Mar 2012 04:24:02 +0000 (04:24 +0000)]
style cleanup: text editor

8 years agocode cleanup: use uppercase defines and change drawFCurveFade into static function.
Campbell Barton [Sat, 31 Mar 2012 04:04:58 +0000 (04:04 +0000)]
code cleanup: use uppercase defines and change drawFCurveFade into static function.

8 years agocode cleanup: use uppercase for defines and dont end macro's with ;
Campbell Barton [Sat, 31 Mar 2012 03:36:15 +0000 (03:36 +0000)]
code cleanup: use uppercase for defines and dont end macro's with ;

8 years agomove debug flag into its own global var (G.debug), split up debug options.
Campbell Barton [Sat, 31 Mar 2012 00:59:17 +0000 (00:59 +0000)]
move debug flag into its own global var (G.debug), split up debug options.

This makes debug output easier to read - event debug prints would flood output too much before.

For convenience:
  --debug-all turns all debug flags on (works as --debug did before).

also removed some redundant whitespace in debug prints and prefix some prints with __func__ to give some context.

8 years agoFix bug 30195, Array modifier fails to merge vertices.
Nicholas Bishop [Fri, 30 Mar 2012 17:30:56 +0000 (17:30 +0000)]
Fix bug 30195, Array modifier fails to merge vertices.

All cases should work now -- that's adjacent duplicate merging,
first-last duplicate merging, and start/end cap merging. A lot of
complexity really, wonder if it might not be better to just do a full
"remove doubles" rather than try to match pre-BMesh behavior exactly.

8 years agoFor BMesh functions that test flags, add enabled/disabled variants.
Nicholas Bishop [Fri, 30 Mar 2012 17:30:49 +0000 (17:30 +0000)]
For BMesh functions that test flags, add enabled/disabled variants.

8 years agoAdd BMO function to append to a buffer slot.
Nicholas Bishop [Fri, 30 Mar 2012 17:30:24 +0000 (17:30 +0000)]
Add BMO function to append to a buffer slot.

8 years agoImage editor: shortcuts 1-key to 8-key for switching between render slots, patch
Brecht Van Lommel [Fri, 30 Mar 2012 16:09:12 +0000 (16:09 +0000)]
Image editor: shortcuts 1-key to 8-key for switching between render slots, patch
by Damir Prebeg.

Also changed back J-key slot switching to only cycle through used slots, not used
slots + 1. This is much more useful to compare two renders easily, rather than being
shown an empty slot each time.

8 years agoNode socket values now only have soft limits, rather than hard limits, so you
Brecht Van Lommel [Fri, 30 Mar 2012 16:09:05 +0000 (16:09 +0000)]
Node socket values now only have soft limits, rather than hard limits, so you
can type in any value, and only when sliding the number value there is a limit.
It was already possible to assign any value to a socket with node linking, so
this shouldn't cause any new issues.

Also raised the limits on the math nodes, with a patch by Agustin Benavidez.

8 years agoFix #30708: pressing escape in the color picker popup did not reset to the previous...
Brecht Van Lommel [Fri, 30 Mar 2012 16:08:48 +0000 (16:08 +0000)]
Fix #30708: pressing escape in the color picker popup did not reset to the previous color.

8 years agoFix out-of-date slot type sizes.
Nicholas Bishop [Fri, 30 Mar 2012 13:49:32 +0000 (13:49 +0000)]
Fix out-of-date slot type sizes.

The BMO_OPSLOT_TYPEINFO array was out of date, the last two entries
were off by one. Updated with correct values and added comments to
make it easier to match up in future.

Also changed the alloc string for mapping slot's ghash to something
more descriptive than "bemsh op".

8 years agoFix [#30709] Renaming a bone renames all drivers' targets using a bone of that name...
Bastien Montagne [Fri, 30 Mar 2012 13:04:29 +0000 (13:04 +0000)]
Fix [#30709] Renaming a bone renames all drivers' targets using a bone of that name, regardless of the armature.

This fix adds a "ref_id" ID pointer to BKE_all_animdata_fix_paths_rename() & co, which is the ID against which prefix+oldName/NewName is "applied", currently only used for drivers' bones targets. Just pass NULL to get same behavior as previously. A bit annoying to make such a change for such a specific case, but there seems to be no other way to go... :/

8 years agopatch to add __deepcopy__ to mathutils types, this is no different to __copy__, excep...
Campbell Barton [Fri, 30 Mar 2012 11:35:58 +0000 (11:35 +0000)]
patch to add __deepcopy__ to mathutils types, this is no different to __copy__, except some py utilities expect __deepcopy__ to exist, so better have them.

8 years agoAdded new command-line arguments --debug-ffmpeg and --debug-libmv to
Sergey Sharybin [Fri, 30 Mar 2012 10:37:49 +0000 (10:37 +0000)]
Added new command-line arguments --debug-ffmpeg and --debug-libmv to
be able to see debug prints coming from FFmpeg or libmv independently
of general blender debug messages.

8 years agoCamera tracking refactoring:
Sergey Sharybin [Fri, 30 Mar 2012 10:37:39 +0000 (10:37 +0000)]
Camera tracking refactoring:

- Deduplicate patetrn sampling used in esm and lmicklt trackers and
  move SamplePattern to image/sample.h - Move computation of Pearson
  product-moment correlation into own function in new file image/correlation.h
  so all trackers can use it to check final correlation.
- Remove SAD tracker. It's almost the same as brute tracker, with only two differences:
  1. It does brute search of affine transformation which in some cases helps to track
     rotating features 2. It didn't use common tracker api which probably gave some
     speed advantage, but lead to a real headache to use it together with other
     trackers leading to duplicated code in blender side.
- Switch blenedr to use brute tracker instead of sad tracker which tracking made
  source code much more simple to follow.