Commit Graph

1537 Commits

Author SHA1 Message Date
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
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
48059cc329 fix problem with select invert - flush selection.
previously this wasnt needed because doing an undo push would flush the selection.
2012-04-02 09:07:02 +00:00
7d9f0232df adding back boundary inset support. was disabled because at one point it was unstable. 2012-04-02 08:58:26 +00:00
7d184567d7 fix [#30758] bmesh: unable to rip a single vertex
this also adds the ability to rip disconnected face fans apart which is handy.
2012-04-02 08:35:12 +00:00
4253e52771 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.
2012-04-02 04:45:44 +00:00
c7aed8b2af For BMesh functions that test flags, add enabled/disabled variants. 2012-03-30 17:30:49 +00:00
0e972b6293 partial fix for [#30732] bmesh: loop select continues through hidden sections.
loop cut and edge ring select still need to be fixed.
2012-03-30 08:43:47 +00:00
e0d94b7244 minor speedup converting a BMesh to a Mesh - avoid loop over all faces to count how many loops to use, since BMesh stores totloop.
also use camel case for UndoMesh (convention)
2012-03-30 06:45:13 +00:00
7b60ebf398 fix for unhiding faces showing invalid normals. 2012-03-30 01:11:11 +00:00
6113c0e0b7 fix [#30725] BMesh - Select Linked ignores faces 2012-03-30 00:58:29 +00:00
20e2330434 added Mesh.calc_tessface(), needed to update mesh tessface after bmesh edits.
also add py api BMDeformVert.clear()
2012-03-29 13:44:30 +00:00
f87c5b3453 fix [#30715] bmesh: select linked not ignoring hidden verts/edges/faces
add optional flag to ignore hidden elements.
also remove loop mask flag - since it wasnt used and vert/edge/face is enough.
2012-03-29 13:09:07 +00:00
a173508f49 converting a mesh to an undo mesh now skips using bmesh operator. 2012-03-29 03:06:42 +00:00
42076f0a1f skip using bmesh operators for converting to/from undo meshes (gives some speedup) 2012-03-29 01:41:56 +00:00
5591d03f21 fix invalid *= on an un-initialized value when adding primitives. 2012-03-28 22:11:19 +00:00
8aa42f309c print error if rip does nothing (rather then grabbing the unripped verts as it did before) 2012-03-28 08:00:58 +00:00
12655edc84 remove dissolve keybinding, conflicts with draw, add back to delete menu.
dissolve is now 'X -> D'
2012-03-28 07:44:20 +00:00
5f0ef4435c fix [#30699] blender crashes when dissolving faces
thanks to Francisco De La Cruz for investigating and providing fix.
2012-03-28 06:44:19 +00:00
f9fd5439eb code cleanup: Ctrl+Click extrude - replace inline axis/angle to matrix conversion with a call to axis_angle_to_mat3() 2012-03-28 06:34:18 +00:00
534f4ddb4d fix for vertex rip
wire edges connected to the vertex would confuse vertex rip.

- was only checking verts first edge had a face,  this is incorrect since other vert-edges may have a face.
- wasn't checking of edges connected to the vertex were hidden.
2012-03-28 05:44:38 +00:00
e38bdaa04c Fix [#30700] Blend from Shape gives only selection for basis shapekey
RNA_enum_item_add already sets totitem, so it was increased twice…
2012-03-27 20:45:06 +00:00
e8a226b38c Fix #30658: add new uv layer in object mode did not copy coordinates from
existing layer as it does in edit mode.
2012-03-27 18:35:49 +00:00
bb8fa67f7e Patch [#30683] Editmesh_tools without descriptions by Harley Acheson (harley)
* Some Edit Mesh operators were missing the description after b-mesh merge.
2012-03-27 17:53:31 +00:00
1e7bcece44 Fix bug 30696, circular mesh objects had wrong orientation.
Behavior now matches 2.62, circle, cone, and cylinder get first vertex
at 0 degrees.

Also fixed range for vertex property of add-cone and add-cylinder
operators, changed minumum from two to three.
2012-03-27 10:28:06 +00:00
05abdf344b minor code/style cleanup 2012-03-27 05:03:23 +00:00
fc7624a6be fix for undoMesh_to_editbtMesh not setting BMEditMesh.ob field.
error found by XercesBlue on IRC
2012-03-27 04:54:52 +00:00
09f29c0b70 style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions 2012-03-27 04:46:52 +00:00
f83a93e454 bmesh todo, unlikly but possible - entering editmode with faces and no polys.
rather then printing a warning and failing - convert them to polys.
2012-03-27 01:28:25 +00:00
ca05219f3e fix [#30651] bpy.ops.object.mode_set(...) editmode removes faces.
problem was that BMesh had tessellation call when undo pushes were called.

if python called an operator with no undo push, tessfaces would not be created.

fix this by making it the responsibility of each editmesh operator to re-tessellate, as it is with notifiers and depsgraph.
added EDBM_update_generic() function to add notifier, tag for depsgraph update and optionally re-tessellate.
2012-03-27 00:01:35 +00:00
2743f2bb3f fix [#30257] bmesh: Rip "V" don't work on end vertex
added option to edgesplit bmesh operator to take tagged vertices as well so an edge at a boundary can split without splitting off the boundary vertex.

the behavior/speed of the edge split modifier and tool remainss the same, this is only used for rip.
2012-03-26 12:02:41 +00:00
7c8c1a0718 Minor fixes to recent new UI messages. 2012-03-26 06:20:59 +00:00
5c209c76a1 fix [#30658] existing uv mesh coordinates not copied to new created uv map 2012-03-26 05:28:00 +00:00
c9c66720c8 disallow adding tessfaces to a mesh with polygons (only allowed case is creating a new mesh with tessfaces and later converting to polygons, which wont work if polygons exist) 2012-03-26 04:32:04 +00:00
48f0444760 style cleanup: editors/mesh - mostly whitespace around operators 2012-03-26 02:56:48 +00:00
44010fb659 fix [#30657] New UV layers created with Mesh.uv_textures.new reset previous ones.
adding UV's from python was resetting the active UV layer but not setting the new layer to active, resetting existing UV's.
2012-03-26 02:39:05 +00:00
94b8b8913e rename lattice influence to strength from r45144 (other deform modifiers call it strength too) 2012-03-26 00:42:21 +00:00
6378606d64 fix for error adding vertex colors in editmode.
also correct delete_customdata_layer having invalid 'tot' in editmode, seems harmless for now but better assign correct value.
2012-03-24 11:02:28 +00:00
d7b9127e5f fix for crash removing vertex colors in editmode. 2012-03-24 10:41:42 +00:00
ab4a2aaf4a style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 06:38:07 +00:00
2f348d8b5d style cleanup: mainly for mesh code, also some WM function use. 2012-03-24 02:51:46 +00:00
0c898514f0 code cleanup: bmesh_ source files in our editor dir, they are the same as other editmesh_ files. 2012-03-24 00:20:36 +00:00
888cc0d7ac code cleanup: re-shuffle some functions so EDBM_ functions are in bmesh_utils.c
remove bmesh_selecthistory.c, only wrapped a few functions.
2012-03-23 23:41:33 +00:00
88d0918fe2 code cleanup: more consistent naming for mesh operator functions. 2012-03-23 21:25:07 +00:00
7ff77ed4ea code cleanup: use zero_v3 2012-03-23 20:18:09 +00:00
3103531716 Knifetool: add help message in header line 2012-03-23 14:52:00 +00:00
d3f8952269 bmesh editmode - split dissolve into its own menu. mesh delete code was getting quite messy and mixed in too much different functionality just to add in same menu. Now use a pu menu for delete key which can call different ops. 2012-03-23 10:30:42 +00:00
4b52ad6a35 edge split bmesh operator wasnt accessible (defined but not used), for some reason it had a 'numcuts' option.
add edge split to mesh edge menu.
2012-03-23 03:10:44 +00:00
7044d80639 code cleanup: remove BMesh * args from query functions which don't need it 2012-03-22 07:53:11 +00:00
4c3bb77012 style cleanup: spaces aroudn operators for operator definitions. 2012-03-22 07:26:09 +00:00