Brecht Van Lommel
3ee4be913b
Fix #31139 : fractal mesh subdivide was only working along normal where previously
...
it would displace in all directions. Now there's an operator option to control this.
2012-05-03 10:14:08 +00:00
Campbell Barton
6327c9aae1
style cleanup: whitespace, braces
2012-05-01 20:08:23 +00:00
Brecht Van Lommel
f2ff1da6d7
Related to #31213 : rename Delete > Edges & Faces to Only Edges & Faces, to try
...
to make it more clear that this keeps vertices.
2012-05-01 17:44:00 +00:00
Bastien Montagne
7dce43da21
Fix a potential memory leak in recent vertex xsort/randomize code.
2012-05-01 12:38:26 +00:00
Campbell Barton
1d743d11dc
bmesh - python api
...
- bm.*.layers.*.verify()
- bm.*.layers.*.is_singleton
- bm.*.layers.*.copy_from(other)
also added api functons
- BM_data_layer_copy(...)
- CustomData_layertype_is_singleton(type)
2012-04-30 18:54:14 +00:00
Campbell Barton
a5af5e8f50
style cleanup: re - http://wiki.blender.org/index.php/Dev:Doc/CodeStyle#Braces_with_Macros
2012-04-30 16:22:40 +00:00
Campbell Barton
343edf2722
style cleanup: function calls & whitespace.
2012-04-29 17:11:40 +00:00
Nicholas Bishop
70f1279eab
Add convex hull operator (bmesh operator and wm operator.)
...
Image-heavy user documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/Convex_Hull
Thanks to Campbell for providing code review:
http://codereview.appspot.com/6114060
2012-04-29 16:09:40 +00:00
Joshua Leung
bdd014bbd4
Bugfix [ #31128 ] Vertex Slide can't be aborted with ESC key
2012-04-29 13:58:43 +00:00
Campbell Barton
04d8ef3c47
wireframe option to crase edges at the hub, much nicer subsurf
2012-04-29 12:33:56 +00:00
Campbell Barton
41a5e731a2
bmesh: new wireframe tool
...
- makes wireframe from faces.
- options similar to inset (even offset, relative scale)
- copies face settings and loops (uvs, vcolors)
- optionally replaces the existing geometry.
2012-04-29 10:44:00 +00:00
Campbell Barton
e2c453b5f9
style cleanup: editors / mesh & object
2012-04-28 15:42:27 +00:00
Campbell Barton
ef054e165c
style cleanup: format 'for' loop macros the same as for loops, some renaming to BLI_array macros.
2012-04-28 15:14:16 +00:00
Campbell Barton
c91fd5a0bf
code cleanup: remove editmesh code left hanging around thats already been ported to bmesh, also remove main editmesh header.
2012-04-28 12:23:05 +00:00
Campbell Barton
950ed69297
code cleanup:
...
- replace inline face UV center calc.
- use const float[3] for mesh and uv functions.
- remove unused define
2012-04-28 08:29:20 +00:00
Campbell Barton
b340f930ec
style cleanup: changes to brace placement / newlines - for/while/if/switch
2012-04-28 06:31:57 +00:00
Campbell Barton
dc313ff00d
add back lasso tool in the UV editor (Ctrl+LMB / Ctrl+Shift+LMB)
2012-04-28 01:59:21 +00:00
Campbell Barton
4469ab9857
code cleanup:
...
- move lasso functions into BLI (were in 3D view but UV editor needs access)
- remove unused UV functions (ones that assumed 3-4 sized UVs only)
2012-04-27 07:26:28 +00:00
Campbell Barton
6d2cd24010
fix memory leak in validating mesh and remove unneeded knife operator settings store.
2012-04-26 15:20:26 +00:00
Campbell Barton
61015fbd8c
fix for memory leak in the knife tool
2012-04-26 04:41:27 +00:00
Campbell Barton
7669d0e317
disable bevel for release after discussion with brecht and sergey, this works far too poorly to be included in release.
2012-04-25 10:24:31 +00:00
Campbell Barton
47b6b60e5a
code cleanup: no functional change - had both EDBM_editselection_* and BM_editselection_* funcs, replace EDBM_ funcs.
2012-04-24 21:19:18 +00:00
Antony Riakiotakis
4782522379
Add libMV and Scons support for MinGW-w64, patches by Caleb Joseph with slight modifications.
...
Thanks!
2012-04-24 12:57:58 +00:00
Antony Riakiotakis
7cc4353dff
Update knife tool header to reflect that spacebar can be used for confirm too.
2012-04-23 21:04:26 +00:00
Campbell Barton
f7a59fd1cf
rip tool again (this in infact an old bug), when selecting an edge to extend the splitting to, dont step over manifold edges. - would result in duplicate edges.
2012-04-23 15:35:07 +00:00
Campbell Barton
cccd4b72e5
fix memory leak in rip tool (again own fault).
2012-04-23 15:26:06 +00:00
Campbell Barton
eff325a98c
minor changes to rip internals
...
- check if vertex ripping has no effect.
- no need to flush selection for vertex rip.
2012-04-23 15:18:12 +00:00
Campbell Barton
cb91c5d7b2
rip was incorrectly giving an error when ripping a vertex from a face fan (own mistake).
2012-04-23 14:57:47 +00:00
Campbell Barton
4c873fec53
bmesh py api: functions to add/renmove customdata layers, eg.
...
bm.loops.layers.color.new("Testing")
2012-04-23 14:52:28 +00:00
Campbell Barton
aa09c5750e
add spacebar to confirm knife cut, space confirms - enter isnt so handy, This is consistent with fly mode and grab.
2012-04-23 11:19:39 +00:00
Campbell Barton
8baa5fbde2
- fix for python freeing its own bmesh clearing the global mirror cache.
...
- fix for own mistake (Ctrl+T didnt set beauty peroperty).
- remove bad level includes in bmesh.
2012-04-23 04:24:11 +00:00
Campbell Barton
b51590d55d
code cleanup: bmesh subdivide code - BM_mesh_esubdivideflag() & "esubd" bmesh operator was passing a flag about in a fairly confusing way.
...
since we will eventually have python bmesh operator access better expose this as multiple booleans.
remove remaining editbutflag's
2012-04-23 03:43:02 +00:00
Campbell Barton
4c4389f6a4
code cleanup: remove editbutflag flag from toolsettings & related defines.
2012-04-23 02:48:05 +00:00
Campbell Barton
16ff7e40e6
code cleanup: change C naming convention (so py and C api match), eg:
...
C: BM_face_calc_area(f), Py: BMFace.calc_area()
2012-04-23 01:19:50 +00:00
Campbell Barton
5c89138684
style cleanup: comments
2012-04-22 11:54:53 +00:00
Campbell Barton
3508bf1b83
Ctrl+RMB to select an object in editmode didnt work in edge mode (which is not great usability imho and confusing),
...
now pass through if no edges can be tagged and select the object.
2012-04-22 05:30:34 +00:00
Campbell Barton
e57d258169
- fix memory leak in mesh_strip_loose_polysloops(), occurred during 3ds import.
...
- updating normals in py/api's mesh.transform() wasn't working and gave annoying print, disable this, script authors can call calc_normals explicitly if they need.
2012-04-22 00:27:38 +00:00
Campbell Barton
8765dfccf7
style cleanup: correct typos
2012-04-21 14:14:58 +00:00
Campbell Barton
1c54eaecd8
fix [ #31049 ] New Faces (F) always solid shaded
2012-04-21 13:58:29 +00:00
Campbell Barton
6701933f5c
style cleanup
2012-04-21 12:51:47 +00:00
Campbell Barton
96b024333e
fix [ #31047 ] ctrl+mouse select in edit-mode does not select external object
...
fix [#30535 ] Shortest Path Select not working well in vertex mode.
regression from after bmesh merge, Ctrl+Right mouse for selecting shortest path is meant for edge mode only.
2012-04-21 12:14:07 +00:00
Campbell Barton
f910abadda
fix error in recent rip refactor, also add comment.
2012-04-21 06:42:21 +00:00
Campbell Barton
15eb3452ec
style cleanup: pep8, also quiet compiler warning.
2012-04-20 18:50:18 +00:00
Campbell Barton
b26865ba99
code cleanup: prefer BM_face/edge/vert_select_set() over BM_elem_select_set() when the type is known (saves switch statement check on the type).
...
Add asserts so the correct types are ensured.
2012-04-20 16:55:47 +00:00
Campbell Barton
f627745053
aparently yards are not used a lot, suppress their use in button display (input still knows about them) - was reported as a bug.
...
also fix minor rip bug where active selection was lost.
2012-04-20 14:59:24 +00:00
Antony Riakiotakis
cb3dc8ff0e
Knife tool: Increase the header string length to avoid clipping the message.
2012-04-20 14:46:46 +00:00
Campbell Barton
380e6c2a58
refactor rip tool out into vert/edge functions, was getting too unweildy having them mixed in.
2012-04-20 14:36:06 +00:00
Campbell Barton
ed81982049
knife tool alpha values where being set to zero (intersection points weren't visible), error made when converting to theme colors.
...
also minor bmesh style cleanup.
2012-04-20 13:45:38 +00:00
Campbell Barton
5874106ea7
style cleanup
2012-04-20 12:26:16 +00:00
Campbell Barton
4d1faf1fd9
knife tool: use the knife mouse cursor, dont store the context in the knife tool data, also rename struct camel case (follow own style guide)
2012-04-20 12:19:09 +00:00