933e3af883
avoid looping through the polygons to find the maxium loop size by using BLI_array_declare, tested on optimized build and its slighly faster though IMHO this is easier to follow.
2011-12-07 00:25:21 +00:00
cead1e1977
added mesh_calc_normals_ex() which is mesh_calc_normals() with an option to skip recalculating the vertex normals (only calculate poly/face normals instead).
...
also removed unneeded allocation of face normals.
otherwise no functional change.
2011-12-06 22:55:41 +00:00
26db98293f
Quiet annoying warning:
...
Warning! Tesselation uvs or vcol data got out of sync, "had to reset!
This would happen on every editmode edit with UV's and wasn't too reassuring that blender was handling uvs/vcols correctly.
From looking into the problem I found that creating the undo mesh would act as if it was tessellating the existing mesh each time and complain that the data was out of sync, when infact the mesh was just created and being filled in.
Also, allocating uv and vcol customdata arrats for tessfaces isn't needed for undo mesh, so save some memory and dont allocate these in the first place.
2011-12-06 09:28:25 +00:00
3267a619f1
svn merge ^/trunk/blender -r42416:42422
2011-12-04 20:05:50 +00:00
bf77a177d4
remove mesh PartialVisibility, it wasnt being version patches or used anywhere, other then save/load/free.
2011-12-04 19:49:35 +00:00
22a1ad61f9
svn merge ^/trunk/blender -r42372:42416
2011-12-04 18:39:19 +00:00
cbd5b492b1
remove use of deprecated struct members
...
- editmesh smooth & subdivide were using old mirror axis flag still.
- removed colbits from outliner and object code.
- commented some other parts of the code which access deprecated members and aren't called anywhere.
2011-12-04 06:39:35 +00:00
15ad39e684
svn merge ^/trunk/blender -r42303:42329
2011-12-02 01:01:07 +00:00
56da69fd03
Fix for [ #29467 ] Selection of active vertex color layer doesn't work
...
Need to push active layer indices from loops & polys to faces again after tesselations
2011-12-01 09:49:27 +00:00
9e5b28cd42
svn merge ^/trunk/blender -r42261:42290
2011-11-30 09:31:11 +00:00
9b2df014d2
fix [ #29459 ] Crash making a linked object group local
...
was an error with make-local refactor & path updating.
2011-11-30 00:32:13 +00:00
e3c6e47a38
macro for defining a fixed size array which may be heap or stack allocated, replaces inline code.
...
BLI_array_fixedstack_declare()
BLI_array_fixedstack_free()
2011-11-29 06:06:59 +00:00
f2551ff799
- add BM_NGON_STACK_SIZE define to use wherever ngon stack arrays are used.
...
- renamed BM_Compute_Face_Center() to BM_Compute_Face_CenterBounds() and added BM_Compute_Face_CenterMean() since there was code inline to find the mean center in transform.
2011-11-29 04:11:17 +00:00
9e39a66c93
fix for duplifaces with quads/ngons, bmesh was using triangulated faces so each quad would result in 2 duplis.
2011-11-29 02:58:38 +00:00
b25f2386d0
utility function for getting the center of a polygon, needed for up coming changes
2011-11-28 23:50:40 +00:00
1e4ec06e07
r42101 causes problems. reverting and instead make correct CD_ORIGINDEX for tesselated faces to fix the problem.
2011-11-23 20:44:04 +00:00
9089d72f06
Various typo cleanups, remove unnecessary code etc, found during recent work and separated to a cleanup change
2011-11-20 16:21:13 +00:00
331dd678c7
error with recent commit, thanks Ender79 for finding.
2011-11-18 17:28:19 +00:00
4f7ecd79fe
speedup for editmesh tesselation (approx 4.4x speedup in optimized builds),
...
this is important because it runs while transforming the mesh in editmode.
also made this code a bit more efficient.
2011-11-18 16:06:20 +00:00
cb2b92ce27
mesh_recalcTesselation speedup, ski[ check for 3-4 sided faces - dont use scanfill in these cases.
...
overall 6x speedup on an optized build (Suzanne subsurf level 5, applied)
2011-11-18 12:18:44 +00:00
9087cb91d4
quiet compiler warnings for BLI_array defines, split BLI_array_append into BLI_array_append / BLI_array_append_r, the latter returning the new array location.
2011-11-16 17:09:41 +00:00
2266c7fc1c
Add CD_POLYINDEX layer to reduce need for retesselations
2011-11-13 15:13:59 +00:00
7508540c53
svn merge -r41575:41602 ^/trunk/blender
2011-11-07 07:01:24 +00:00
bb8fe0bf4a
minor edits
...
- remove unneeded type check from convert grease pencil operator.
- correct some error prints & use __func__.
- make copy_libblock take an ID* argument rather than void*.
2011-11-07 04:36:37 +00:00
9aa901cccc
svn merge -r41422:41431 ^/trunk/blender
2011-11-01 09:05:38 +00:00
e3f03d72b6
added path traversal flag - BPATH_TRAVERSE_SKIP_MULTIFILE,
...
so path manipulation functions dont run multiple times on the same path in the case of sequence strips where the one directory is used as the base for many images.
2011-11-01 06:26:55 +00:00
e08c4a00d2
svn merge -r41371:41420 ^/trunk/blender
2011-11-01 02:01:09 +00:00
9c5a620e4d
Fix problems with setting (and respecting) correct visibility of rim faces created by solidify modifier
2011-10-31 00:34:19 +00:00
a8df5cbc76
move make_uv_vert_map() to bmesh - use MLoopUV's rather than MTFace's.
...
also some formatting on BLI_array
2011-10-30 09:19:07 +00:00
c4fa7bf286
make_uv_vert_map() was looping over the texture face for not reason.
2011-10-30 06:53:25 +00:00
75e570b2b7
svn merge -r41287:41310 ^/trunk/blender note, mirror modifier had slow, per vertex name flipping, replaced with flip_map from trunk
2011-10-27 09:42:03 +00:00
f7d5cea669
use path remapping for all make local functions, patch from Alex Fraser with changes.
2011-10-27 05:34:39 +00:00
a267f9ba4e
edits ontop of Alex's patch from r41292.
...
pass main rather than use G.main when naming from -> to relative paths.
2011-10-26 21:22:35 +00:00
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
4e118bb22f
svn merge ^/trunk/blender -r40890:40950
2011-10-14 01:35:20 +00:00
7eadd540d4
svn merge ^/trunk/blender -r40872:40890
2011-10-13 22:50:01 +00:00
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +00:00
5e300f40f0
Fix for 28859 (found and reported with fix by nico_ga from #blendercoders)
2011-10-09 21:59:29 +00:00
7306eb84f0
move NavMesh draw code out of being a modifier and into DerivedMesh drawing hack (which IMHO is less bad then mis-using a modifier only to override drawing calls).
2011-10-09 21:11:51 +00:00
4c3a817f60
More normal fixes, this time for object mode calculation of vertex normals
2011-09-30 05:27:44 +00:00
91587ed302
svn merge ^/trunk/blender -r40381:40382
2011-09-23 06:35:49 +00:00
13dfd82997
changes for materials to treat them as shorts not int/chars (since they are stored as shorts intermally)
...
- converting nurbs to mesh was casting the material to unsigned char.
- subsurf was casting to char, then int -> short in a loop.
- have material functions take & return shorts.
2011-09-20 06:25:15 +00:00
8c43e785d9
revert own commit r40051, mesh and object pointers are needed for undo, this commit caused bug [ #28625 ] Separate crash bug.
...
also added a safety check for the crash, even though reverting fixes.
bmesh_to_mesh_exec() could set me->mface array to NULL but leave me->totface when notellelation=1, which is likely to give trouble elsewhere.
2011-09-12 02:23:30 +00:00
3f91c0ab5d
correct edit some comments
2011-09-09 14:51:30 +00:00
0727893231
remove mesh and object arguments from bmesh operators, these are stored within the BMesh its self.
2011-09-09 02:21:57 +00:00
21bb71eaa9
fix for bug converting text/surface/curve displists to mesh only getting the first face, also wasnt copying smooth flag.
2011-08-17 05:42:23 +00:00
59e95fa0ff
=bmesh: bridge edge loop tool=
...
rough version of a new bridge tool.
ctrl-e -> bridge (two) edge loops
2011-08-15 23:38:51 +00:00
aaa72c575a
revert unneeded eekadoodle fix
2011-08-10 10:32:23 +00:00
cbb2e58b68
fix mirror when have dup faces; prevent eekadoodle on tess recalculation
2011-08-08 17:30:19 +00:00