Campbell Barton
c26f5035b6
style cleanup for mempool
2012-03-01 23:14:51 +00:00
Campbell Barton
bc767059cb
Code Cleanup: update to mempool, use flag rather then bool args.
2012-03-01 22:59:18 +00:00
Campbell Barton
ea13ec1699
Spelling Cleanup
2012-03-01 12:20:18 +00:00
Campbell Barton
6c53638863
add an assert for inserting an egde with the same vertices and a BMESH_TODO for bevel.
2012-02-29 16:29:09 +00:00
Campbell Barton
7cc206ddca
Code Cleanup: remove non existing function declarations.
...
added some missing functions too - which are not used yep but should be there for api completeness.
* CDDM_set_mloop
* CDDM_set_mpoly
* BLI_mempool_count
2012-02-29 15:00:37 +00:00
Nicholas Bishop
b18794c3b6
Add blenlib function to initialize vectors from a single float.
...
The new functions are copy_v2_fl, copy_v3_fl, and copy_v4_fl.
2012-02-29 04:17:26 +00:00
Campbell Barton
ed04c21374
code cleanup: use float vector size in function definitions, and const's where the values are unchanged.
2012-02-28 14:05:00 +00:00
Campbell Barton
d2cab3e8b0
move bmesh wiki docs into bmesh header and update doxygen.
...
also have doxygen ignore *.py files and fix some warnings.
2012-02-27 20:27:19 +00:00
Campbell Barton
47c373c7a9
style cleanup (mostly whitespace)
2012-02-27 10:35:39 +00:00
Campbell Barton
c955272ec5
code cleanup
...
* correct cmake/clang warning.
* use same include guard names as everywhere else for BLI math inline.
* correct define for madd_sh_shfl
2012-02-25 09:02:05 +00:00
Campbell Barton
c8b53d2aaf
code style cleanup, no functional changes.
2012-02-23 02:23:42 +00:00
Nicholas Bishop
c428bb4389
Move PBVH bitmap to separate header in blenlib.
...
The implementation was also changed in a couple ways: use unsigned
integers as its base type rather than unsigned chars, and uses macros
rather than functions. (These could be changed to inline functions.)
Currently it is still only used during PBVH building, but now it's
accessible elsewhere.
2012-02-22 23:57:31 +00:00
Nicholas Bishop
5e12c7feca
Code cleanup: de-duplicate code in GPU_build_grid_buffers() with a macro.
2012-02-22 23:30:56 +00:00
Nicholas Bishop
fd87bf3ef6
Code cleanup: don't use GHash for GPU_build_mesh_buffers().
...
At the point where GPU_build_mesh_buffers is called, the
face_vert_indices map has already been built; it contains the same
data in an easier-to-access format.
2012-02-22 22:48:34 +00:00
Nicholas Bishop
78e1da961c
Code cleanup: remove unused 'skip' field from PBVH iterator.
2012-02-22 22:41:08 +00:00
Nicholas Bishop
444885848d
Code cleanup: move the PBVH iterator's initialization into a function.
...
Should be no functional changes, just shortens the amount of code
living in the macro.
2012-02-22 22:37:01 +00:00
Nicholas Bishop
88a2be1846
Another fix for non-VBO flat-shading in sculpt mode, this time for non-multires meshes.
...
As with multires, this change calculates face normals rather than
using vertex normals when the node is flat-shaded.
Flat-shading with VBO on non-multires meshes is still wrong, but
fixing that would require larger changes to our vertex buffers.
2012-02-21 04:24:30 +00:00
Nicholas Bishop
a6dc47b0ca
Remove call to GPU_update_mesh_buffers from GPU_build_mesh_buffers.
...
Building the mesh buffers already gets the PBVH_UpdateDrawBuffers flag
set, so this was double-updating the vertex buffer.
2012-02-21 04:16:27 +00:00
Brecht Van Lommel
83aeb9cbd5
Fix broken predivide option for reading in images, patch by Troy Sobotka.
2012-02-20 20:55:30 +00:00
Campbell Barton
1cad189e32
fix harmless but annoying memory leak prints, "newmem", now free all scanfill memory on exit.
2012-02-19 22:36:24 +00:00
Campbell Barton
a368e6771a
- remove some unused editmesh functions.
...
- copy & rename EditMesh stricts for use with scanfill (remove unused members)
2012-02-19 22:17:30 +00:00
Campbell Barton
588b26f18b
more syncing smaller changes with trunk
2012-02-17 21:32:30 +00:00
Campbell Barton
48006292d8
svn merge ^/trunk/blender -r44189:44204
2012-02-17 20:56:25 +00:00
Campbell Barton
61596d5bb3
patch [ #30227 ] Various MSVC (32-bit) Warning and Typo Fixes
...
made some small edits
- removed changes to AVI reading since the data types are apart of the format spec.
- absf -> abs for a double value in render code.
2012-02-17 19:21:47 +00:00
Campbell Barton
2b7ca2304a
unify include guard defines, __$FILENAME__
...
without the underscores these clogged up the namespace for autocompleation which was annoying.
2012-02-17 18:59:41 +00:00
Campbell Barton
ca4ef8aa26
add note to avoid confusion with angle_v3v3v3, also minor change with angle comparison, convert constant values to radians (not resulting angle to deg).
2012-02-17 17:47:10 +00:00
Campbell Barton
02987fd5e1
fix [ #30220 ] Knife Tool Leaks memory
...
both crash and leak are fixed now.
2012-02-17 05:33:23 +00:00
Campbell Barton
020ec22114
correct for bad assumption in recent commit. angle_v3v3v3 was working as intended.
2012-02-16 20:17:45 +00:00
Campbell Barton
cde2f11244
new bmesh tool - limited dissolve.
...
This is a kind of simplification/cleanup tool which joins adjacent faces and edges based on the angle.
I've written this as an exercise (since I havnt written a bmesh operator before), and because quite a few users were asking for the dissolve operator to be extended, but I think this kind of functionality needs its own operator.
access from specials menu and mesh menu.
notes
* this exposed a bug in angle_v3v3v3(). will merge fix into trunk after release.
* added utility function BM_vert_edge_angle(), to get the angle between 2 connecting edges of a vert.
2012-02-13 14:37:07 +00:00
Campbell Barton
9a92cd8008
bmesh minor refactor
...
* add DM_to_bmesh_ex, DM_to_bmesh for converting a derived mesh to a BMesh (rather than a BMEditMesh)
* have a generic variable for allocsize: bm_mesh_allocsize_default, rather than copying the values about.
2012-02-12 17:44:10 +00:00
Campbell Barton
91390b712a
GPL Header Cleanup
2012-02-11 04:16:17 +00:00
Campbell Barton
d0412a1981
svn merge ^/trunk/blender -r43864:43887
2012-02-05 02:30:30 +00:00
Campbell Barton
deec4ce0bc
Code Cleanup: avoid double promotion.
2012-02-04 06:55:29 +00:00
Campbell Barton
4aa82806ef
svn merge ^/trunk/blender -r43751:43819, need to look into changes made to editmesh_loop.c from this range still
2012-02-01 09:31:13 +00:00
Campbell Barton
23db21e2c1
fix own error [ #29634 ] 'Find Missing Files' breaks good links
2012-01-31 18:00:41 +00:00
Campbell Barton
de4eeb9694
svn merge ^/trunk/blender -r43693:43733
2012-01-26 19:20:33 +00:00
Sv. Lockal
4514a4455b
Fix orthogonality check for mat3 and mat4
2012-01-26 17:11:43 +00:00
Campbell Barton
c7e8af13d4
remove cellalloc, from my tests jemalloc beats cellalloc, so we better just use a better malloc replacement.
...
See Details:
http://wiki.blender.org/index.php/User:Ideasman42/BMeshBranchReview#Update_43694
2012-01-25 20:18:12 +00:00
Campbell Barton
4966982a5a
svn merge ^/trunk/blender -r43564:43609
2012-01-22 18:04:35 +00:00
Campbell Barton
cd4123e1db
use inline BLI_math functions for dot product and length calculation.
2012-01-22 17:20:37 +00:00
Campbell Barton
a98a75346c
quiet warnings and possible NULL checking crash fix for indentation functions.
2012-01-20 23:03:41 +00:00
Campbell Barton
3f1584c758
fix 2 bugs
...
- box packing wasn't flagging out the right free corner of a vertex in some cases.
- tex_space_curve wasn't counting quad displists properly.
2012-01-20 22:09:30 +00:00
Campbell Barton
c8037fb56a
svn merge ^/trunk/blender -r43530:43554
2012-01-20 12:34:00 +00:00
Campbell Barton
fe71f40f88
misc changes from bmesh, syncing across to trunk, no functional changes
2012-01-20 02:24:01 +00:00
Brecht Van Lommel
1d46bbef7e
Fix issue in recent color commits, was still doing a multiplication by 255 too
...
many, also don't check uchar range after casting to int, this can still cause
overflow with large float values.
2012-01-19 16:22:22 +00:00
Campbell Barton
7b2101ace9
svn merge ^/trunk/blender -r43482:43524
2012-01-19 11:31:31 +00:00
Campbell Barton
a87c5eb52c
use color conversions functions in more places.
...
also add rgba_float_to_uchar, rgba_uchar_to_float
2012-01-19 10:04:51 +00:00
Campbell Barton
879c13bbfc
rename rgb_float_to_byte, rgb_byte_to_float to rgb_float_to_uchar, rgb_uchar_to_float and swap args (math functions mostly have dest arg first like strcpy).
2012-01-19 09:09:00 +00:00
Campbell Barton
4786541285
add utility functions linearrgb_to_srgb_uchar4,
...
linearrgb_to_srgb_uchar3, was being done inline.
2012-01-19 08:22:23 +00:00
Campbell Barton
0f28c1c27a
svn merge ^/trunk/blender -r43461:43472
2012-01-17 21:08:25 +00:00