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.
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.
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.
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?
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)
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.
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.
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.)
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.
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".
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.
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...
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.
Campbell Barton [Wed, 4 Apr 2012 15:10:20 +0000 (15:10 +0000)]
fix [#30809] Limited dissolve leaves edges behind
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.
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).
Miika Hamalainen [Wed, 4 Apr 2012 10:55:55 +0000 (10:55 +0000)]
Fix blenderplayer compile.
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).
Campbell Barton [Wed, 4 Apr 2012 06:02:10 +0000 (06:02 +0000)]
use 2.4x tooltip colors
Campbell Barton [Wed, 4 Apr 2012 05:42:36 +0000 (05:42 +0000)]
update themes for new settings + theme update script.
Campbell Barton [Wed, 4 Apr 2012 03:32:41 +0000 (03:32 +0000)]
switching shape keys in editmode needs to recalc normals.
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.
Campbell Barton [Wed, 4 Apr 2012 01:02:15 +0000 (01:02 +0000)]
use 'const float' when passing readonly colors, and include array size.
Campbell Barton [Wed, 4 Apr 2012 00:45:40 +0000 (00:45 +0000)]
fix [#30797] Shape keys on linked duplicate get corrupted
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).
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.
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.
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
print.
Brecht Van Lommel [Tue, 3 Apr 2012 17:26:57 +0000 (17:26 +0000)]
Fix #30795: draw other objects in uv editor not working.
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).
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".
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.
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.
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.
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
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].
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.
Campbell Barton [Tue, 3 Apr 2012 11:19:58 +0000 (11:19 +0000)]
fix [#30608] Regression: BMesh merge broke customdata int/float/string layers
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.
Sergey Sharybin [Tue, 3 Apr 2012 09:11:26 +0000 (09:11 +0000)]
Fixed mistake made in threaded EXR commit.
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)
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.
Campbell Barton [Tue, 3 Apr 2012 06:12:04 +0000 (06:12 +0000)]
fix [#30735] bmesh: loop-cut cuts faces isolated by hidden faces
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.
Nathan Letwory [Tue, 3 Apr 2012 05:23:23 +0000 (05:23 +0000)]
r45338 added multithreaded OpenEXR loading. Path to pthread was missing.
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.
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)
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.
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.
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.
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.
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.
Campbell Barton [Mon, 2 Apr 2012 22:40:02 +0000 (22:40 +0000)]
style cleanup: multi-line if's & whitespace.
Campbell Barton [Mon, 2 Apr 2012 22:26:00 +0000 (22:26 +0000)]
stule cleanup: edits for files which were recently cleaned up.
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.
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.
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.
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.
Sergey Sharybin [Mon, 2 Apr 2012 13:56:39 +0000 (13:56 +0000)]
Expand active scene's clip when linking scene.
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.
Sergey Sharybin [Mon, 2 Apr 2012 12:37:03 +0000 (12:37 +0000)]
Fix #30767: VSE timeline marker update
Patch by Dan Eicher, thanks!
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
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.
Campbell Barton [Mon, 2 Apr 2012 11:28:26 +0000 (11:28 +0000)]
wrap RNA's RNA_property_collection_clear from python.
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.
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.
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.
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.
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.
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.
Bastien Montagne [Mon, 2 Apr 2012 06:56:16 +0000 (06:56 +0000)]
Minor UI messages fix...
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()
Campbell Barton [Mon, 2 Apr 2012 06:26:52 +0000 (06:26 +0000)]
style cleanup
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.
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.
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.
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.
Campbell Barton [Mon, 2 Apr 2012 01:57:56 +0000 (01:57 +0000)]
style cleanup
Nicholas Bishop [Sun, 1 Apr 2012 15:25:07 +0000 (15:25 +0000)]
Reverting some style changes from r45305.
See discussion here:
http://lists.blender.org/pipermail/bf-committers/2012-April/036098.html
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.
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.
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.
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... :(
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.
Nicholas Bishop [Sat, 31 Mar 2012 12:29:17 +0000 (12:29 +0000)]
Minor code cleanups for bmo_dupe.c.
Campbell Barton [Sat, 31 Mar 2012 04:24:02 +0000 (04:24 +0000)]
style cleanup: text editor
Campbell Barton [Sat, 31 Mar 2012 04:04:58 +0000 (04:04 +0000)]
code cleanup: use uppercase defines and change drawFCurveFade into static function.
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 ;
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.
--debug
--debug-ffmpeg
--debug-python
--debug-events
--debug-wm
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.
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.
Nicholas Bishop [Fri, 30 Mar 2012 17:30:49 +0000 (17:30 +0000)]
For BMesh functions that test flags, add enabled/disabled variants.
Nicholas Bishop [Fri, 30 Mar 2012 17:30:24 +0000 (17:30 +0000)]
Add BMO function to append to a buffer slot.
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.
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.
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.
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".
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... :/
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.
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.
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.