Commit Graph

31253 Commits

Author SHA1 Message Date
Campbell Barton
384f87cd1c rip tool wasnt working on a single edge selection in some cases (own error in recent fix). 2012-04-19 23:16:57 +00:00
Campbell Barton
028dbb132d add asserts for invalid iteratpr values so we can catch them in debug mode. 2012-04-19 22:40:09 +00:00
Campbell Barton
741a177a74 bmesh: improve rip tool
- When the rip extends into a fan, pick the opposite edge in the fan (rather then 2 along)
- When stepping over the fan to find the rip edge, walk in the direction closest to the mouse (generally works nicer)
2012-04-19 21:47:32 +00:00
Joseph Eagar
ebbfcd71e5 Fixed crash in iter api, triggered by calling index_update() on the loop py seq in the py api. Note, I didn't fix the underlying problem (bad iter type) so loops.index_update() still isn't working (it's just not crashing). 2012-04-19 21:14:11 +00:00
Campbell Barton
417117e207 bmesh py api: expose BMVert.calc_shell_factor() 2012-04-19 19:13:57 +00:00
Campbell Barton
e387ccdb42 bmesh inset: add depth option (make use of relative and even offset options) 2012-04-19 19:03:15 +00:00
Bastien Montagne
c7f8af329b BMESH_TODO: randomize vertices working again.
That whole "element re-arrange" area could use some love, though (e.g. make a single vert operator with more options, as faces; and make faces work in edit mode, probably no more reasons to switch to object mode?). Post-release TODO, anyway.

Also spotted a glitch in BLI_rand code, imho, which makes first element of an array not guarantied to be shuffled by BLI_array_randomize()... No correction though, as this might/would affect other parts of the code!
2012-04-19 18:53:32 +00:00
Campbell Barton
e730c1af6d committed check by mistake, its not needed. 2012-04-19 17:26:22 +00:00
Campbell Barton
a82eaf36ca bmesh rip: when there are selected faces call region_to_loop before ripping. gives better results then previous fix when there are selected faces as apart of an edge selection. 2012-04-19 16:57:50 +00:00
Campbell Barton
bea1a12751 fix [#31015] Rip has weird results in vertex selection mode vs face 2012-04-19 16:20:07 +00:00
Brecht Van Lommel
6b006059ec Fix #31016: rigid body joint constraint in game engine did not respect constraint
enable/disable option.
2012-04-19 15:14:28 +00:00
Campbell Barton
b40476455e code cleanup: remove unused BMesh args. 2012-04-19 14:38:09 +00:00
Howard Trickey
ac6b702c93 Change knife header to reflect current key binding (RMB cancels now). 2012-04-19 13:59:03 +00:00
Campbell Barton
475ecbb0ce remove BM_ITER, BM_ITER_INDEX macros, use ELEM or MESH variants only (the maceros had unused args in both cases). 2012-04-19 13:47:58 +00:00
Howard Trickey
9276d7aeb2 For bug #30931, change knife hardcoded colors to ones derived from theme.
For now, just reusing some theme colors that are there for other reasons
but matched approximately the colors used now.
Except that cut lines are now purple-violet, so that they contrast
with grid and edges better, especially in wireframe.
2012-04-19 13:44:28 +00:00
Campbell Barton
3ef7943910 code cleanup: first step to replace BM_ITER BM_ITER_INDEX macros. 2012-04-19 12:45:56 +00:00
Bastien Montagne
7cadd242d3 BMESH_TODO: xsort of vertices working again.
This commits adds a new function which can remap vertices/edges/faces of a BMesh in a new given order:
void BM_mesh_remap(BMesh *bm, int *vert_idx, int *edge_idx, int *face_idx)
2012-04-19 12:31:39 +00:00
Campbell Barton
75b869e428 style cleanup: BM_ITER / BM_ITER_INDEX / BMO_ITER 2012-04-19 11:44:12 +00:00
Campbell Barton
db2edfcfde bmesh api function: BM_edge_face_tangent()
was used by inset but make into an api function since scripts can use this too.
2012-04-19 11:25:05 +00:00
Brecht Van Lommel
250560a423 Fix #30998: copy to selected in properties editor not working for bones. 2012-04-19 10:49:45 +00:00
Brecht Van Lommel
2251e05c30 Fix #31009: edge split did not split non-manifold edges correctly, it should
create a separate edge for each face.
2012-04-19 09:38:07 +00:00
Brecht Van Lommel
2e734e4735 Fix #31007: text editor delete at end of last line did unnecessary undo push.
Patch by Justin Dailey, simplified a bit.
2012-04-19 09:27:11 +00:00
Campbell Barton
84f3ade1e5 fix bevel edge angle (wasnt hooked up to new code), vertex-bevel angle isnt working still 2012-04-19 07:00:29 +00:00
Campbell Barton
d403722722 style cleanup: bevel code, also remove unneeded flag setting. 2012-04-19 06:10:21 +00:00
Antony Riakiotakis
baba9c441e Fix: Mark seams in uv editor didn't work 2012-04-18 22:27:24 +00:00
Thomas Dinges
0b3f94d91f Fixing bug [#31005] Nurbs UI bug
* W button was hidden, due to too small y alignment.
2012-04-18 20:43:07 +00:00
Thomas Dinges
a1ed21ac85 Release Status:
* Still BCon4, rc phase now.
2012-04-18 20:07:35 +00:00
Antony Riakiotakis
aeccaa6f32 knife tool: Add state indicator in header for tool options 2012-04-18 19:59:27 +00:00
Campbell Barton
18a6282e59 improve recent commit to copy loop data on extrude
- in some cases the is only a face on the new edge, so check for this as a source to copy from too.
- one of the asserts wasnt correct, if there are no adjacent faces found just return.
2012-04-18 19:05:28 +00:00
Campbell Barton
446d5ad970 bmesh knife tool: cut through no longer initializes from view setting to limit selection to front faces.
instead this is a toggle (Zkey) which is remembered between executions.
2012-04-18 18:20:20 +00:00
Antony Riakiotakis
3fdb0e9575 Fix: Transforming NLA strips leaks memory. 2012-04-18 17:50:30 +00:00
Campbell Barton
d4bc938676 bmesh knife tool:
fix for bug where not moving the mouse after pressing K and clicking would start the first point at the bottom left of the view.
2012-04-18 16:55:15 +00:00
Campbell Barton
486bf16af5 bmesh knife tool:
- only cut selected geometry.
- exclude hidden geometry from snapping.
2012-04-18 16:27:11 +00:00
Campbell Barton
40e3ae6478 correct ifdef'd scanfill code, incase someone wants to test. 2012-04-18 15:09:13 +00:00
Campbell Barton
d7542be6ac code cleanup: more minor changes to scanfill 2012-04-18 14:36:56 +00:00
Campbell Barton
abcaec0edc code cleanup: replace magic numbers in scanfill with defines, also use some vector functions where possible 2012-04-18 14:30:57 +00:00
Campbell Barton
ca913254aa fix for eternal loop in scanfill,
The cause for this is bmesh faces which have zero area have their normals set to a fake value (Z-Up), this would break scanfill, possible fixes are to calculate the faces normal each time or tag as invalid but its easiest to avoid the eternal loop with an extra test.
2012-04-18 14:06:59 +00:00
Campbell Barton
580f19d949 fix [#30994] Extruding faces gives bad UV's
this had strange logic, there was no need to loop over all face loops.
2012-04-18 09:56:19 +00:00
Campbell Barton
40f4a4b6ba style cleanup: mesh validate.
also add code cleanup script which runs uncrustify and then undoes trailing whitespace edits (reducing diff noise)
2012-04-18 09:16:30 +00:00
Campbell Barton
ddbb4db1d3 fix [#30995] Wavefront obj. file export/import issue with splited edge 2012-04-18 09:04:07 +00:00
Brecht Van Lommel
6d346724d3 Fix redo not working correct after keyboard input for shear, shrink/flatten,
push/pull, edge slide tools. Patch by Nicholas Rishel.
2012-04-18 08:26:58 +00:00
Campbell Barton
c776418b24 add missing NULL check for BM_vert_collapse_faces(), could crash in rare cases. 2012-04-18 08:11:08 +00:00
Campbell Barton
08478a10d1 fix [#30921] Bevel modifier's is not work correctly with bevel weights
replace dissolve function with one from 2.62 (updated for the new bmesh api).
2012-04-18 07:29:12 +00:00
Campbell Barton
9a4aecbcc3 bmesh: fix own bug in BM_vert_collapse_faces() with option 'kill_degenerate_faces', was removing data as it iterated, would crash in some cases. 2012-04-18 07:27:15 +00:00
Campbell Barton
1f01d62d15 more replacement for BM_edge_face_count() use. 2012-04-18 06:57:28 +00:00
Campbell Barton
f1ececaabb code cleanup: replace use of BM_edge_face_count with BM_edge_is_manifold and BM_edge_is_boundary 2012-04-18 06:44:48 +00:00
Campbell Barton
27696ddae1 fix error in last commit. Misunderstood BM_vert_is_manifold(), added some comments. 2012-04-18 06:36:47 +00:00
Campbell Barton
6389301eb5 fix for own error in recent scanfill updates, scanfill can hang if run on a polygon with no area. 2012-04-18 05:52:18 +00:00
Campbell Barton
df27c315ce code cleanup: minor edits to bmesh_jfke(), move simple checks first. 2012-04-18 04:44:50 +00:00
Campbell Barton
a1337caac0 bmesh api: minor simplify & cleanup
- add BM_face_edge_share_loop(f, e) -- edge version of existing BM_face_vert_share_loop(f, v)
- simplify BM_edge_ordered_verts_ex(), check could be reduced.
- use BM_ELEM_INTERNAL_TAG for bmesh_jfke(), not BM_ELEM_TAG to avoid clobbering tagged data tools might use.
2012-04-18 04:32:55 +00:00