Commit Graph

28170 Commits

Author SHA1 Message Date
Campbell Barton 5c8c1a7358 PyAPI - remove Matrix.row_size / col_size. these were rather awkwardly named, but its more clear to use len().
mat.col_size --> len(mat.row)
mat.row_size --> len(mat.col)
2011-12-30 06:43:17 +00:00
Campbell Barton 0501ba5cc0 weight paint - fix for own error in r42986, also avoid getting unified settings for each weight. 2011-12-30 05:16:28 +00:00
Campbell Barton 230c6f58f7 improvement to how weight paint blur works
* the accumulated blur weight now takes into account how far verts are from the brush, giving more even results
* verts where the weight wasnt found were being ignored, now treat them as zero weight verts.
2011-12-30 04:38:45 +00:00
Campbell Barton bc7b67c1c6 get the brush size at before applying each brush step, saves unified brush settings lookups per vertex/face-corner.
also use math functions for calc_vp_strength(), and project the vertices as floats rather then ints to get better accuracy, otherwise no functional changes.
2011-12-30 03:50:04 +00:00
Campbell Barton ec55cb1154 while checking weight paint code noticed that unified brush functions loop over the scenes to get the flag.
* this loop is called multiple times per vertex (not addressed in this commit)
* functions like brush_use_size_pressure(), brush_use_size_pressure() called unified_settings() twice when they didnt need to.

looks like this code cant work right with multiple scenes, added a comment on this - but at least avoid calling unified_settings() multiple times in single functions.
2011-12-30 03:43:39 +00:00
Campbell Barton 8c50700d7f minor edits to weight paint
* store the active vertex group (avoid doing ob->actdef-1 for every vertex)
* ensure the active vertex group isn't less then 0.
2011-12-30 02:16:07 +00:00
Sergey Sharybin e61ffcffe9 Fix #29687: Normal bake from multires gives distorted results.
It is just a limitation of multires baker which doesn't deal correct with
baking to subdivision level 0. It was supposed to work with levels on which
sculpt data is affecting on mesh, so interpolation between grids works correct.

Fully accurate baking in this case will need raycasting stuff which will make
it much slower and will remove main benefit of regular baker -- speed and
low memory usage.
Another option would be to make multires apply sculpting data on level 0,
but it's not related at baking at all and has got it's own difficulties.
2011-12-29 16:05:09 +00:00
Sergey Sharybin 8301cd1ce6 Fix #29718: anchored stroke with image-texture --- strange behaviour
Bug was caused by refactoring in rev41470
2011-12-29 14:57:15 +00:00
Campbell Barton 4f0b7e8c6a py - fix for error which made enums not through errors when assigned non string types 2011-12-29 14:46:26 +00:00
Campbell Barton 5ed0cd4ad7 possible fix for [#29708] Crashes when Rendering Cross Dissolve + XVID Codec
was calling memcpy with both src and dst args were the same pointer.
2011-12-29 13:12:40 +00:00
Campbell Barton e63cb930ae use math functions for customdata interpolation funcs 2011-12-29 11:18:12 +00:00
Sergey Sharybin c40c323bcd Remove totally crappy and not used operator FONT_OT_buffer_paste 2011-12-29 10:02:42 +00:00
Campbell Barton f951cbb90c remove unused initFlags option in mirror modifier 2011-12-29 06:32:50 +00:00
Campbell Barton c058d252d1 minor edits to trunk mirror modifier, use unsigned ints since the vertex values are unsigned + minor formatting edits 2011-12-29 06:07:34 +00:00
Campbell Barton d14edecabf optimized mempool iterator from bmesh 2011-12-29 03:39:59 +00:00
Campbell Barton 85a97f64a7 add UNLIKELY / LIKELY util defines to help optimize iterators that are called a lot, only defined for gcc at the moment.
also some cmake formatting edits.
2011-12-29 01:46:58 +00:00
Campbell Barton 269c087dda file missing from cmake listing 2011-12-28 22:57:25 +00:00
Campbell Barton 1297f72f78 sync changes from bmesh r42951 + some other minor edits. 2011-12-28 22:46:10 +00:00
Sergey Sharybin becc094119 Fix #29692: 3D Scene is Rendering Bright in the VSE
profile conversion for sequencer result sued to happen even if
color management is disabled for scene which made frames brighter.
2011-12-28 20:11:36 +00:00
Brecht Van Lommel 9d3f5ea334 Fix #29715: cycles and glsl normal node not working correct. 2011-12-28 19:42:22 +00:00
Sergey Sharybin fe2131367b Fix #29696: Crash on exit of edit mode after deleting contents of fluid domain
Added NULL-check to copying material number and flags when loading cache
2011-12-28 17:59:56 +00:00
Thomas Dinges 6e94bdd8e4 Scons/FFMPEG:
* Fixing compile error, ffmpeg include was missing.
2011-12-28 15:08:58 +00:00
Campbell Barton 45ac43946f files from bmesh now load in trunk, this way loading (2.64 (or whenever bmesh is merged)), wont crash 2.62. 2011-12-28 14:58:45 +00:00
Campbell Barton ba6f211226 fix for recent compile error 2011-12-28 14:55:45 +00:00
Campbell Barton 7c417fbcfb WIP bmesh trunk sync, excuse the noise 2011-12-28 14:26:59 +00:00
Campbell Barton 8ccf5026e0 more changes from bmesh into trunk (mesh mpoly strict member) 2011-12-28 14:21:51 +00:00
Campbell Barton 5b88e16306 WIP loading bmesh in trunk, some conversion functions for this purpose. 2011-12-28 13:50:33 +00:00
Campbell Barton ca94cb1237 merge bleshes BLI_array header lib into trunk. 2011-12-28 13:40:14 +00:00
Brecht Van Lommel b9ff5840a6 Code refactoring: add unified image buffer functions for doing float => byte,
byte => float, float => float, byte => byte conversions with profile, dither
and predivide. Previously code for this was spread out too much.

There should be no functional changes, this is so the predivide/table/dither
patches can work correctly.
2011-12-28 13:29:33 +00:00
Campbell Barton 1f02209957 enable USE_BMESH_FORWARD_COMPAT and merge in some customdata functions 2011-12-28 13:23:59 +00:00
Campbell Barton 312b080397 initial merge of bmesh customdata layer code into trunk, ifdef'd out for now with USE_BMESH_FORWARD_COMPAT. 2011-12-28 13:15:17 +00:00
Sergey Sharybin c5a81536ca Add FFmpeg libraries versions to system-info.txt 2011-12-28 12:35:58 +00:00
Campbell Barton 0b00bb236c make MOD_dynamicpaint.c use more typical gpl2+ text and some formatting edits in DNA 2011-12-28 11:08:38 +00:00
Campbell Barton 2e92b14bc6 copy BLI_edgehash changes from bmesh branch, main change is use of mempool. 2011-12-28 10:20:37 +00:00
Campbell Barton 337d397d09 merge in customdata changes from BMesh - biggest change is caching the layer index values in a typemap. 2011-12-28 09:11:11 +00:00
Campbell Barton b459067dd2 minor changes from bmesh into trunk 2011-12-28 08:29:03 +00:00
Campbell Barton f89aeae10c sync some edits with bmesh 2011-12-28 07:43:06 +00:00
Campbell Barton 6d878810c6 for bpy.props, when 'name' argument is not initialized, vallback to the attribute name rather than an empty string. 2011-12-28 04:25:46 +00:00
Campbell Barton 0059b8dd96 option to save as older mesh format (ifdef'd for now) 2011-12-27 13:17:58 +00:00
Howard Trickey edd6f21f6c Change visualize indices so that edit select mode chooses which elements are visualized 2011-12-27 12:50:23 +00:00
Jens Verwiebe 8de512fe09 OSX: adding PNG codec to QTKit, to have one more alpha enabled one atm 2011-12-27 11:29:27 +00:00
Sergey Sharybin 6963e43148 More fixes for timecode usage with BKE_movieclip_get_ibuf_flag 2011-12-27 11:09:06 +00:00
Sergey Sharybin 0ac3ab752f Fix #29688: Timecode is not used in tracking
Use proper timecode flags sending to BKE_movieclip_get_ibuf_flag function,
so now frames for tracking would be full-resolution but calculated using
timecode defined in th interface,
2011-12-27 10:52:23 +00:00
Jens Verwiebe 86037ca59f OSX: adding some more codecs to QTKit 2011-12-27 10:51:01 +00:00
Sergey Sharybin a0e62e77d7 Update build files to use new OpenAL libraries 2011-12-27 09:37:19 +00:00
Campbell Barton 397d7d949f remove unneeded casts from 'unsigned int' to 'int' 2011-12-27 03:54:23 +00:00
Thomas Dinges 8d92e14088 * Fixing compile after recent i18 commits. 2011-12-27 01:35:39 +00:00
Nicholas Bishop ebf5cfb5ce Fix own error in r42881, didn't add rectangle padding correctly. 2011-12-26 23:36:44 +00:00
Martin Poirier 8cc96408df [#29144] Snapping control points: can't choose which one to delete
Reported by Pep Ribal
You can now select which snap point to remove (with Alt-A) by moving the cursor over them.
Display colors are also used to indicate which snap points are active, selected or just there.
2011-12-26 20:23:07 +00:00
Nicholas Bishop 5f3b1a9767 Factor out some generic parts of the sculpting PBVH redraw planes code.
One function converts bounding boxes to screen space, the other
converts a screen-space rectangle to 3D clipping planes.

Also const-ified some parameters in the ED_view3d API.
2011-12-26 20:19:55 +00:00