Campbell Barton
c9c76a9a68
add compiler hints that failing to create a bmesh face is unlikely.
2012-10-01 11:12:49 +00:00
Campbell Barton
ed1cda9a6c
style cleanup
2012-09-30 06:12:47 +00:00
Campbell Barton
f3850ca13b
fix for adding triangle-fan filled circle not tagging the center vertex.
2012-09-27 03:32:13 +00:00
Campbell Barton
dbeddcdbce
style cleanup: also correct incorrect doxy heading
2012-09-26 20:26:31 +00:00
Campbell Barton
aa49ca25d5
incorrect spelling in comments
2012-09-26 20:05:38 +00:00
Campbell Barton
e2baa41ec7
fix [ #32665 ] Inconsistent Circle Mesh Edge Subdivision
2012-09-26 11:14:40 +00:00
Campbell Barton
25c96bc9f3
code cleanup: remove unused macros, commet some which may be useful later - or good to keep for completeness. quieted some warnings and add flags -Wmissing-include-dirs and -Wno-div-by-zero to cmake/gcc
2012-09-20 01:02:39 +00:00
Campbell Barton
0d5d2146eb
code cleanup: make shape key api names consistent with our new convention.
2012-09-19 10:12:07 +00:00
Campbell Barton
f5d3e361ce
fix for missing NULL check in init_render_texture() (possibly own fault), also remove some redundant code.
2012-09-19 08:09:22 +00:00
Campbell Barton
db051f2b2d
fix MESH_OT_tris_convert_to_quads() limit options (uv and vertex color) were not working at all.
2012-09-19 04:48:34 +00:00
Campbell Barton
aff591c6e1
code cleanup: typos and set exceptional cases of zero length normals as UNLIKELY().
2012-09-17 22:22:06 +00:00
Campbell Barton
d724d0adfe
code cleanup: quiet warnings for gcc's -Wundef, -Wmissing-declarations
2012-09-16 00:26:36 +00:00
Campbell Barton
e75f5c8208
quiet -Wmissing-prototypes warnings, and enable this warning by default for C with gcc.
...
helps for finding unused functions and making functions static, also did some minor code cleanup.
2012-09-15 01:52:28 +00:00
Campbell Barton
77e351300b
code cleanup: replace BM_DISK_EDGE_LINK_GET define with inline function, that checks for the vertex not matching either of the edges verts.
2012-09-12 05:11:38 +00:00
Campbell Barton
bd5fdf63cb
fix [ #31456 ] Extreme lag editing meshes
...
running BM_CHECK_ELEMENT was taking over 75% of the time to subdivide a mesh, since this only reports errors, and is so slow - only run this on non-release builds.
2012-09-12 04:53:49 +00:00
Campbell Barton
319831d7b8
code cleanup: use an enum for uiBut->pointype (more useful debug display of members),
...
and rename COL -> COLOR --- less confusing since the layout engine has row/col's.
2012-09-11 23:10:23 +00:00
Campbell Barton
10d18e5b5f
code cleanup: use min/max inline functions rather than macros & simplify loop
2012-09-11 09:39:37 +00:00
Campbell Barton
39231c90dd
fix [ #31738 ] BM_vert_splice modifies loops during iteration
...
patch by Nicholas Bishop, modified to avoid looping over vert-loops one extra time.
added BM_iter_as_arrayN(), returns an iterator as an array without knowing the length before calling.
2012-09-11 06:12:48 +00:00
Campbell Barton
2f436612fe
replace BM_vert_face_count() use of BM_LOOPS_OF_VERT iterator with a direct call to bmesh_disk_facevert_count()
2012-09-11 05:27:15 +00:00
Campbell Barton
1a7eb3454e
style cleanup
2012-09-08 08:59:47 +00:00
Campbell Barton
a9f10b6bc2
style cleanup
2012-09-08 06:40:03 +00:00
Campbell Barton
9411716f31
fix for error in own recent commit
2012-09-06 11:02:27 +00:00
Campbell Barton
47ec91e8d3
code clenup: comments and some style edits on ghost/osx (odd indentation)
2012-09-06 02:10:09 +00:00
Campbell Barton
5c52455fba
fix [ #32500 ] Odd behaviour with subdividing an ngon
2012-09-06 01:06:36 +00:00
Campbell Barton
20b84ec37c
committed by accident
2012-09-05 23:30:30 +00:00
Campbell Barton
df51ab27ed
code cleanup: BM_face_legal_splits() was doing some redundant assignments.
2012-09-05 23:22:47 +00:00
Campbell Barton
36797a64a5
code cleanup: use *(*var)[2] for pairs in bmesh code rather then a 1d array stepping by 2.
2012-09-05 23:17:19 +00:00
Campbell Barton
6e85ffc4fa
code cleanup: bmesh subdivide code was growing arrays one by one, when the final size is known - do this in one go.
...
also replace for loops with iterator macros.
2012-09-05 19:21:55 +00:00
Campbell Barton
aaafa0c2fe
code cleanup: move file string defines into BLI_path_utils.h, BKE_utildefines is now unused but keep incase we want to add defines there later.
2012-09-03 22:04:14 +00:00
Howard Trickey
5c2d9022d9
Fix knife bug #30764 , failure to cut sometimes.
...
Two bugs: first, the point-in-face function had a bug that made it fail for the xz or yz planes.
Second, in ortho mode, simultaneous linehits need careful sorting.
Also, in orth mode it is somewhat random whether the edges exactly behind the front ones are reported 'hit' by bvh tree, so put in code to prevent cuts along the parallel-to-view faces when not in cut-through mode.
2012-09-03 14:37:34 +00:00
Campbell Barton
bd53226b5c
fix [ #32423 ] Extrude crash
...
mistake in r50086 caused the crash (killing the wrong vertex)
2012-09-03 00:30:55 +00:00
Brecht Van Lommel
5ecff7a240
Fix #32329 : inset produces incorrect result, epsilon was too small to handle
...
floating point error.
2012-08-31 16:10:13 +00:00
Brecht Van Lommel
fe9b1c644f
Fix #32458 : changing UV image in image editor not working when the active face
...
was not selected. Now changed it so that the active face must also have its
UVs shown in the image editor to be used as the source of the image shown.
2012-08-31 15:01:40 +00:00
Campbell Barton
ee96cde864
style cleanup: whitespace
2012-08-26 11:35:43 +00:00
Campbell Barton
32e4e0f873
add conjugate_qt_qt(), also some code cleanup and use const for 'rotOrders' var in math_rotation.c
2012-08-25 17:42:15 +00:00
Campbell Barton
ed0489bb6e
style cleanup: also spelling
2012-08-24 23:22:34 +00:00
Campbell Barton
3da7e0f3bf
mesh bridge tool now leaves bridge faces selected.
2012-08-24 17:58:49 +00:00
Campbell Barton
d3a566457b
fix for merged bridge crashing on closed loops (own bug in recent commit)
2012-08-24 16:55:25 +00:00
Campbell Barton
b5e90d6b1c
fix [ #32357 ] Subdivide fails on newly created edge
...
problem since bmesh merge, new edges were not selected.
2012-08-24 14:54:14 +00:00
Brecht Van Lommel
0dd42fd513
Fix #32387 : some mesh modifications breaking other shape keys.
...
The vertex shapekey index is now no longer copied, and propagation of offsets
in the basis to other shapekeys is disabled if new vertices were added. The
reason being that the propagation will only be done for the old vertices leaving
the new ones behind, and so doing e.g. subdivide + translate on the basis would
create a mess on other shape keys.
2012-08-23 13:54:30 +00:00
Campbell Barton
e91e1814d0
fix own error in BM_data_interp_from_edges() from recent commit.
2012-08-23 09:20:15 +00:00
Campbell Barton
6e90903baf
- add BM_data_interp_from_edges() function (matches BM_data_interp_from_verts).
...
- bridge-merged now merges edge customdata and flags for verts and edges.
2012-08-23 05:19:40 +00:00
Campbell Barton
c0c575751d
bmesh tool: support for merged-bridge (like bridge, collapsing), with a
...
factor to blend between loops.
2012-08-23 04:55:59 +00:00
Brecht Van Lommel
84e80b6904
Fix #32301 : mesh select more/less not taking hidden vertices/faces into account.
2012-08-22 15:10:07 +00:00
Brecht Van Lommel
d3f1222d38
Fix #32262 : mesh bridge between edge loops failed to find a good edge matching
...
in some cases, in particular when the the edge loops were not planar.
Now rather than finding the shortest distance between two vertices, one from
each edge loop and using that as a starting point, it now finds the smallest
sum of distances between all vertex pairs that would be connected.
2012-08-22 14:27:06 +00:00
Brecht Van Lommel
809fce9d00
Fix #32341 : extrude with a mirror modifier could lead to orphan vertices, it
...
was already removing unnecessary edges, just not vertices of those edges.
2012-08-21 14:38:03 +00:00
Campbell Barton
cf3d58512b
- fix for error in ndof patch.
...
- ColorBalanceModifierData wasn't aligned on 32bit systems.
- BM_vert_find_first_loop() was missing NULL check.
2012-08-19 15:56:49 +00:00
Campbell Barton
27b4b45543
utility functions: BLI_findptr, BLI_rfindptr --- use for finding an item in a linked list by a pointer.
2012-08-18 16:16:13 +00:00
Campbell Barton
9e742ffc2b
style cleanup: also correct some doxy comments
2012-08-18 13:07:48 +00:00
Campbell Barton
e9caa21830
fix own error in recent smoothview cleanup, also correct some cross references in bmesh docs.
2012-08-17 14:43:20 +00:00