Commit Graph

30999 Commits

Author SHA1 Message Date
Campbell Barton
784beb4338 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.
2012-04-05 01:20:32 +00:00
Antony Riakiotakis
680c23b771 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. 2012-04-04 17:18:01 +00:00
Nicholas Bishop
84f3eb7786 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.)
2012-04-04 16:35:13 +00:00
Brecht Van Lommel
d7d8c668ca Fix #30803: shader node Mapping location property conflicted with based class
location property (for the node editor), now renamed to "translation".
2012-04-04 16:11:39 +00:00
Brecht Van Lommel
503785649d Fix #30811: glsl error in material draw mode, due to recent commit. 2012-04-04 16:11:10 +00:00
Bastien Montagne
a006813919 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... 2012-04-04 15:43:39 +00:00
Campbell Barton
4f2fb41fb6 fix [#30809] Limited dissolve leaves edges behind 2012-04-04 15:10:20 +00:00
Campbell Barton
1635d8e873 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. 2012-04-04 14:48:10 +00:00
Miika Hamalainen
329c665c16 Fix blenderplayer compile. 2012-04-04 10:55:55 +00:00
Campbell Barton
f4ed44fb0c 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).
2012-04-04 10:54:56 +00:00
Campbell Barton
d0a27a18e1 switching shape keys in editmode needs to recalc normals. 2012-04-04 03:32:41 +00:00
Joseph Eagar
1246a0d88b Changed BM_mesh_bm_from_me to copy customdata layout for empty meshes. 2012-04-04 01:35:27 +00:00
Campbell Barton
ec8a26e040 use 'const float' when passing readonly colors, and include array size. 2012-04-04 01:02:15 +00:00
Campbell Barton
5f46fdadfd fix [#30797] Shape keys on linked duplicate get corrupted 2012-04-04 00:45:40 +00:00
Campbell Barton
3bb72e33df fix for reconstructing shape keys (found when looking into bug [#30797], but not a fix for this bug). 2012-04-04 00:02:48 +00:00
Campbell Barton
320aa33e65 rename MPoly vars called mface or mf, to avoid confusion with MFace types. 2012-04-03 23:40:24 +00:00
Brecht Van Lommel
ff14479983 Fix #30796: uv vertex coordinates panel in uv editor incorrectly taking into
account selected uvs from hidden faces.
2012-04-03 19:08:06 +00:00
Nicholas Bishop
c86b17ddb7 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.
2012-04-03 18:41:40 +00:00
Brecht Van Lommel
51afa3b7c6 Fix #30795: draw other objects in uv editor not working. 2012-04-03 17:26:57 +00:00
Brecht Van Lommel
b44ae0c387 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".
2012-04-03 17:09:47 +00:00
Lukas Toenne
123f7d3eb3 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.
2012-04-03 15:18:59 +00:00
Brecht Van Lommel
f137ba074a Fix #30789: cycles still taking into account textured solid option when it should
have no effect.
2012-04-03 14:08:04 +00:00
Campbell Barton
9776176cc9 fix [#30340] bpy.ops.pose.select_hierarchy() doesn't work on disconnected parents/children 2012-04-03 12:20:44 +00:00
Nathan Letwory
0d69b18a05 Make sure Multilayer EXR from other apps are read in as multilayer. 2012-04-03 11:53:38 +00:00
Campbell Barton
03479c04ed fix [#30608] Regression: BMesh merge broke customdata int/float/string layers 2012-04-03 11:19:58 +00:00
Campbell Barton
64d2a32f92 rna/py api - rename layers with polygon prefix, since there are edge and vertex layers too. 2012-04-03 11:10:26 +00:00
Sergey Sharybin
a7798884a5 Fixed mistake made in threaded EXR commit. 2012-04-03 09:11:26 +00:00
Campbell Barton
cc6b8bd3e6 fix [#30786] bmesh: select linked not ignoring hidden verts/edges/faces (part 2) 2012-04-03 07:35:50 +00:00
Campbell Barton
285970753e 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.
2012-04-03 07:31:11 +00:00
Campbell Barton
817a96f243 fix [#30735] bmesh: loop-cut cuts faces isolated by hidden faces 2012-04-03 06:12:04 +00:00
Campbell Barton
be0d4f8e45 BM_mesh_esubdivideflag was adjusting the totedgesel variable when this is handled by selection functions. 2012-04-03 06:05:43 +00:00
Nathan Letwory
6d31d795be r45338 added multithreaded OpenEXR loading. Path to pthread was missing. 2012-04-03 05:23:23 +00:00
Campbell Barton
431eafe559 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.
2012-04-03 03:17:49 +00:00
Campbell Barton
d98c1770f9 patch [#30780] Transform operator leak in aborted edge slide mode
from Francisco De La Cruz (xercesblue)
2012-04-03 02:52:34 +00:00
Campbell Barton
817a407a62 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.
2012-04-03 02:46:44 +00:00
Campbell Barton
db9c9f6c64 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.
2012-04-03 02:38:27 +00:00
Campbell Barton
d37d17019c 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.
2012-04-03 02:16:27 +00:00
Campbell Barton
3f3b88ff42 bmesh iterators were passing the BMesh as data argument to BM_iter_new(), harmless but incorrect.
replace these cases with iterator macro.
2012-04-03 00:28:38 +00:00
Campbell Barton
9fff51e83d 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. 2012-04-02 23:17:56 +00:00
Campbell Barton
c56bc8cb0f style cleanup: multi-line if's & whitespace. 2012-04-02 22:40:02 +00:00
Campbell Barton
3c1b5b5632 stule cleanup: edits for files which were recently cleaned up. 2012-04-02 22:26:00 +00:00
Brecht Van Lommel
2ff9b5a7f5 Further fix for #30769: cycles assigning image to wrong material form the
uv image editor.
2012-04-02 19:38:26 +00:00
Brecht Van Lommel
186d16e325 Fix #30769: cycles showing wrong image from active face in the uv editor,
with multiple material slots.
2012-04-02 16:30:01 +00:00
Brecht Van Lommel
095118d21e Fix #30776: image editor pan not using continuous grab if enabled. 2012-04-02 16:29:34 +00:00
Sergey Sharybin
7c4bb6f4b7 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.
2012-04-02 15:06:21 +00:00
Sergey Sharybin
b059554882 Expand active scene's clip when linking scene. 2012-04-02 13:56:39 +00:00
Antony Riakiotakis
ff951270d5 Solve namespace conflicts for ole grumpy MinGW. It seems FLOAT is also defined in a windef.h header. 2012-04-02 13:48:20 +00:00
Sergey Sharybin
8243048507 Fix #30767: VSE timeline marker update
Patch by Dan Eicher, thanks!
2012-04-02 12:37:03 +00:00
Sergey Sharybin
b07f9446c7 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
2012-04-02 12:36:00 +00:00
Brecht Van Lommel
4458ce1aba Fix #30770: missing node editor redraw when changing active material by clicking
on face in edit mode.
2012-04-02 11:51:36 +00:00