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
Nicholas Bishop
b7113002db
Fix bug [ #30863 ] Array Modifier Start and End Cap cause crash when the Cap Object has vertex group
...
Another crash with array caps, was caused by not making a deep enough
copy of CD field.
Also fixed the type of the 'mask' parameter, was int where it should
be 64-bit.
2012-04-09 02:14:55 +00:00
Campbell Barton
09f29c0b70
style/name cleanup: have EDBM_* functions match our style guide and also match BM_ function naming conventions
2012-03-27 04:46:52 +00:00
Campbell Barton
4f19c1a995
spelling cleanup
2012-03-18 07:38:51 +00:00
Campbell Barton
89a963fb7f
style cleanup: comment blocks
2012-03-09 18:28:30 +00:00
Campbell Barton
4f7bdc59d3
style cleanup: spelling.
...
also remove large, duplicate comments from sunsky.h
2012-03-09 00:41:09 +00:00
Campbell Barton
95670e03a0
style cleanup / comment formatting for bli/bke/bmesh
2012-03-03 20:19:11 +00:00
Campbell Barton
921a7556fb
bmesh - changes to mempool allocations
...
* double default edge allocation size (double the number of verts/faces).
* CustomData_bmesh_init_pool was using allocsize & chunksize as the same variable. Now use type specific chunk size.
* bmesh copy and editmode conversion now allocate the BMesh mempool size needed for the entire vert/edge/loop/face arrays since its known already.
2012-03-01 22:17:04 +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
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
48006292d8
svn merge ^/trunk/blender -r44189:44204
2012-02-17 20:56:25 +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
870aa90112
svn merge ^/trunk/blender -r43733:43751
2012-01-29 21:49:49 +00:00
Nicholas Bishop
82300fabb9
Minor fix for CD_TYPE_AS_MASK macro: shift operator uses the left
...
operand's type for the result, so cast 1 to CustomDataMask.
2012-01-27 08:15:30 +00:00
Campbell Barton
5d46acd59f
minor edits and correcton to assert
2011-12-28 09:14:09 +00:00
Campbell Barton
337d397d09
merge in customdata changes from BMesh - biggest change is caching the layer index values in a typemap.
2011-12-28 09:11:11 +00:00
Campbell Barton
2cd5436a81
svn merge ^/trunk/blender -r42839:42871
2011-12-25 21:31:19 +00:00
Campbell Barton
02d72b5c07
include BLO_sys_types in customdata header rather than stdint directly.
2011-12-25 21:27:23 +00:00
Jens Verwiebe
856208dba2
OSX/gcc-4.6, fix for typedef uin64_t
2011-12-24 08:03:43 +00:00
Campbell Barton
eb3beca8d4
replace u_int64_t with cc99's uint64_t as suggested by Nicholas Bishop.
2011-12-24 03:03:42 +00:00
Campbell Barton
ddcf56366d
change customdata mask from an 'unsigned int' to an 'u_int64_t', since BMesh branch has run out of bits
2011-12-23 20:30:23 +00:00
Campbell Barton
2457d4f5ab
svn merge ^/trunk/blender -r42680:42722
2011-12-19 10:40:48 +00:00
Bastien Montagne
90ef435145
Fix a bug in CustomData_duplicate_referenced_layer(_named) functions: MEM_dupallocN does not work with complex layers like CD_MDEFORMVERT ones, so rather use copy func when available.
2011-12-19 08:26:53 +00:00
Campbell Barton
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
Campbell Barton
f07df7287e
manual sync with trunk - pulling in changes where the issues are not bmesh spesific
...
- some merges added lines in multiple times
- removed some NULL checks that were only in bmesh
- enable cycles by default (was disabled because it used not to work)
- make formatting match
2011-12-04 23:13:28 +00:00
Campbell Barton
eb233d9332
syncing some minor formatting edits from bmesh branch.
2011-12-04 23:04:43 +00:00
Andrew Wiggin
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
Campbell Barton
92d35b74e7
svn merge -r41722:41723 ^/trunk/blender
2011-11-11 06:25:45 +00:00
Miika Hamalainen
46ae692710
Merge with trunk r41342
2011-10-28 17:00:53 +00:00
Campbell Barton
15e6d6cd75
svn merge ^/trunk/blender -r41226:41227 .
2011-10-24 12:43:08 +00:00
Campbell Barton
4a04f72069
remove $Id: tags after discussion on the mailign list: http://markmail.org/message/fp7ozcywxum3ar7n
2011-10-23 17:52:20 +00:00
Campbell Barton
4e118bb22f
svn merge ^/trunk/blender -r40890:40950
2011-10-14 01:35:20 +00:00
Miika Hamalainen
8be3249537
Merge with trunk r40991
2011-10-13 21:43:02 +00:00
Miika Hamalainen
8bf78d7f56
Dynamic Paint:
...
* Fix: Wave "timescale" also changed simulation behavior. Now different timescale values will lead to nearly identical results, just slower or faster.
* Added "Displace Factor" setting for vertex displace surfaces. You can use it to adjust final displace strength or use negative values to paint bumps.
* Added clamp/map value to wave image sequence output settings.
* RNA description tweaking.
* General code tweaking.
2011-10-13 20:00:22 +00:00
Campbell Barton
bc40f11093
header cleanup (no functional changes)
2011-10-10 09:38:02 +00:00
Howard Trickey
5f75407e22
change TODO -> BMESH_TODO if only on bmesh branch
2011-08-07 12:45:55 +00:00
Campbell Barton
cd55aeaf6d
set many vars & functions as static,
...
also commented invalid pin theme alpha assignment so bmesh branch builds with -Werror
2011-05-11 02:14:43 +00:00
Joseph Eagar
086d013ec2
=bmesh= glsl drawing in editmode works again, also fixed some minor customdata bugs
2011-05-10 17:01:26 +00:00
Joseph Eagar
f01261d040
merge with/from trunk at r35190
2011-02-27 06:19:40 +00:00
Nathan Letwory
22638e22ea
doxygen: blenkernel under core as module.
2011-02-18 13:05:18 +00:00
Sergey Sharybin
24e80665d8
New customdata layer callback: validate
...
Used to validate displacement allocation size after face copying
to match face vertex and displacement corners count.
2011-01-02 17:08:25 +00:00
Campbell Barton
263830f000
Enabled GCC -Wwrite-strings warning for CMake and replaced many 'char's for 'const char's,.
...
Only one functional change where Transform orientations passed "" to BIF_createTransformOrientation() which could then have the value written into.
2010-12-03 17:05:21 +00:00
Campbell Barton
51dcbdde03
use 'const char *' by default with RNA functions except when the value is flagged as PROP_THICK_WRAP.
...
Also use const char in many other parts of blenders code.
Currently this gives warnings for setting operator id, label and description since these are an exception and allocated beforehand.
2010-11-17 09:45:45 +00:00
Nathan Letwory
c88a46e585
COLLADACOLLADA exporter: split geometry export into own files.
2010-10-06 09:53:06 +00:00
Joseph Eagar
82432d0d99
merge from trunk at r31523
2010-09-07 05:47:34 +00:00
Campbell Barton
f6c323aa42
- move more active properties into their collections:
...
scene.active_keying_set --> scene.keying_sets.active
...same for active_uv_texture. active_vertex_color, active_keyconfig,
- move mesh.add_uv_layer() and mesh.add_vertex_color() into their collections
also have them return the newly created layer and dont set the layer active.
uvtex = mesh.uv_layers.new(name)
vcol = mesh.vertex_colors.new(name)
2010-08-23 22:16:45 +00:00
Joseph Eagar
c11c196efa
part 1 of merge from trunk at r30358; it compiles, but doesn't link quite yet :)
2010-07-19 04:44:37 +00:00
Brecht Van Lommel
3961793292
Fix #22239 : external btx won't load.
2010-06-01 19:26:35 +00:00
Campbell Barton
4d2f5a275d
Solidify Modifier
...
- vertex normals were not being flipped (though faces are)
- rim faces didnt influence edge vertex normals
apply solidify on top of solidify modifier now works correctly
2010-04-10 22:12:10 +00:00
Campbell Barton
1e9bf0cfdb
spaces -> tabs, (4 spaces == 1 tab, only for white space preceding text)
2010-03-22 09:30:00 +00:00