Campbell Barton
969895a0bc
fix for minor memory leak for BMO_VInitOpf() in an error case, also use the BLI version of strdup().
2011-11-28 05:00:34 +00:00
Campbell Barton
52558fbe2e
basic bevel modifier working again in bmesh, closely matches the edge split modifier since it calls out to the bevel operator.
...
- edge angles are ok
- width is interpreted as percent
added BMESH_TODO comments with details about what needs working on.
2011-11-28 04:19:44 +00:00
Campbell Barton
9776f56a39
change edge split modifier to loop over all edges and compare the face angles, rather then looping over all faces and looking at every faces-edges-fance which would compare faces twice.
2011-11-28 03:41:14 +00:00
Campbell Barton
8aeaa442bc
use lower angle when checking to draw an edge, adding uv sphere looked strange
2011-11-28 03:07:12 +00:00
Campbell Barton
53b8c63904
Superficial changes for bmesh bevel to sync with bmesh branch, also noticed length comparison can be done without sqrt for baking.
2011-11-28 03:01:06 +00:00
Campbell Barton
f246672811
when comparing lengths no need to sqrt
2011-11-28 01:20:53 +00:00
Campbell Barton
ac4b9ffcf3
2 of the 3 places that check 2 edges share a vertex were incorrect (silly mistake)
...
so make into a function: BM_Edge_Share_Vert()
2011-11-28 00:27:26 +00:00
Campbell Barton
2022580ce1
svn merge ^/trunk/blender -r42194:42197
2011-11-27 23:56:29 +00:00
Campbell Barton
756edb34c6
remove redundant check
2011-11-27 23:49:09 +00:00
Campbell Barton
a2e1060862
quiet some warnings and logical errors.
...
- curve map insert point had a nested loop which used the same value to index different arrays.
- dynamic paint used ternary operator where both outcomes were the same.
2011-11-27 23:41:01 +00:00
Campbell Barton
3bccd1ffed
svn merge ^/trunk/blender -r42182:42194
2011-11-27 21:18:59 +00:00
Campbell Barton
1ca7c2e4f3
BLI_mempool_findelem() only worked when no elements were freed, use the iterator for now.
2011-11-27 21:11:17 +00:00
Sergey Sharybin
8a37378adb
Do not use search area of unselected tracks when searching for nearest
...
track on mouse selection operator.
2011-11-27 19:27:13 +00:00
Sergey Sharybin
5bac67956c
Camera tracking: refactor of tracks synchronization stuff
...
Currently this stuff is used for 2d tracking job only, but the same
thing would necessary for camera solver job, so moved it into more
general utility stuff.
2011-11-27 19:17:59 +00:00
Campbell Barton
aad88b560b
enable multires baking code, this works between different multires levels but currently not baking to level 0, added TODO in code.
2011-11-27 16:50:25 +00:00
Campbell Barton
985e77b723
accessing rna 'default_flag' attribute of a non enum-flag could crash. eg.
...
bpy.types.Modifier.bl_rna.properties["type"].default_flag
now check the default/default_flag match the enum property they are used with.
2011-11-27 14:13:10 +00:00
Brecht Van Lommel
7025f13894
UI: tweak to panel header padding, made region expander a bit smaller and
...
fix bug #29422 , left expander drawing over adjacent editor.
2011-11-27 14:06:47 +00:00
Campbell Barton
565e2b4d73
use faster method of getting vert/edge/face indices which uses BLI_mempool_findelem to skip over chunks rather than going over every element
2011-11-27 02:05:46 +00:00
Campbell Barton
7553440aa4
svn merge ^/trunk/blender -r42172:42182
2011-11-27 01:42:56 +00:00
Campbell Barton
8423b1b33a
mempool utility function to get the element at an index BLI_mempool_findelem(), not used yet.
2011-11-27 01:20:08 +00:00
Bastien Montagne
65cf6256f5
Fix [ #29410 ] Blender svn 2.60.5 r42177, compositor, glare node bug.
...
The problem was in fact in the changes made to blend_ramp() func at rev42164. The checks on green pointer (if(g) {...) were checking the existance of a valid value (i.e. if input color was rgb or only shades of grey in r pointer), but as we get now a full float[3] pointer, this test is no more possible. And doing if(r_col[1]) {... was wrong, as it only broke things in case green was 0.0 (which was the case with the generated glare color of bug report).
So, just removed all those tests!
2011-11-26 21:42:04 +00:00
Campbell Barton
40727d318d
fix [ #29380 ] VParent + Mask Mod,
...
line was out of sync with trunk
2011-11-26 20:48:18 +00:00
Brecht Van Lommel
6f1473fb7c
Fix #29406 : show Sequence as render layer when rendering from sequencer, to make
...
it more clear what was rendered.
Fix #29407 : external engine api doesn't support full sample yet, would give too
dark render result.
2011-11-26 18:33:31 +00:00
Campbell Barton
3db309ee50
fix for own error with id props when adding byte strings
2011-11-26 17:22:11 +00:00
Campbell Barton
3b5bcab09c
svn merge ^/trunk/blender -r42139:42172
2011-11-26 16:29:14 +00:00
Tamito Kajiyama
43c5e1b580
Merged changes in the trunk up to revision 42170.
2011-11-26 16:15:32 +00:00
Campbell Barton
d52a811052
minor bpy api edits
...
- strict check for rna properties
- formatting edits (120 line width)
- use PyDoc_STRVAR macros for getset docstrings
2011-11-26 15:18:30 +00:00
Antony Riakiotakis
57731da05b
Add missing GLEW_STATIC definition, causing link errors.
2011-11-26 15:08:01 +00:00
Tamito Kajiyama
b6569ee4e7
Merged changes in the trunk up to revision 42116.
2011-11-26 13:11:55 +00:00
Bastien Montagne
fdfd7045eb
A bunch of fixes and tweaks in RNA messages, found while translating them in french...
2011-11-26 12:30:01 +00:00
Lukas Toenne
f0b9a39981
Fix for linking cycles group nodes in the sidebar menu (bug #29403 ). The template for ntreeAddNode needs not only the node group pointer but also the NODE_GROUP id for the base type.
2011-11-26 11:08:20 +00:00
Campbell Barton
8ab167d33d
pass args as vectors to opengl functions where possible.
2011-11-26 05:10:53 +00:00
Campbell Barton
6736576f6d
replace FILE_MAXDIR + FILE_MAXFILE with FILE_MAX
2011-11-26 04:07:38 +00:00
Campbell Barton
af7288c407
minor edit - weight_to_rgb() and ramp_blend() now take a float vector rather than 3 float pointers.
...
also make particle draw use a float vec.
2011-11-26 03:13:54 +00:00
Campbell Barton
491526e5ed
add null check, crashes py 3.3 which isn't released but adding the check is harmless
2011-11-26 02:33:57 +00:00
Campbell Barton
f1996b5601
fix in DM_to_mesh() for bmesh - would crash rendering NGons with cycles
2011-11-25 22:32:58 +00:00
Andrew Wiggin
30b6dacb4b
Enable building cycles in bmesh branch
...
This change adds RNA access to tesselated face UVs and colors (MTFACE and MCOL), primarily for use by plugin renderers (e.g. cycles). The RNA mesh properties to get to these are prefixed with "tessface_" and additionally the help text states that these are for renderers, to try not to confuse existing mesh editing tool scripts into thinking they could just start using these values.
2011-11-25 13:28:04 +00:00
Sergey Sharybin
951c1798ab
Do not use transparent rendering in 3d viewport for objects which are in edit mode
...
Transparent rendering can't be implemented in way it gives accurate shading in
3d viewport. It's acceptable for object mode, but when you're in edit mode
it gives more problems than benefits of seeing transparent faces.
This is possible fix for for weird polygons in [#29255 ] Object invisible and weird polygons appearance
2011-11-25 12:55:42 +00:00
Campbell Barton
a044f532ab
Image save as operator 'BW' option wasnt working on some formats, now only show when its supported.
2011-11-25 03:47:34 +00:00
Campbell Barton
ddf934dedf
use enum for draw wire setting to be easier to read, no functional change.
2011-11-25 02:35:23 +00:00
Campbell Barton
8d9d3995c0
fix [ #29079 ] New face added with "F" has wrong winding
...
now newly created faces use the best winding order based on surrounding edges.
2011-11-25 01:18:48 +00:00
Tamito Kajiyama
9bd9b7e958
Made minor revisions (no functional changes).
2011-11-25 01:10:55 +00:00
Tamito Kajiyama
0d9d7d3c9d
Fix for functionality inconsistency in the creation of a new line style.
...
Now the '+' button to the right of a line style name (in the template_ID
GUI widget) creates a copy of the active line style instead of a new
line style with default settings.
Also added a proper tool tip for the use of template_ID for line styles.
2011-11-25 01:09:57 +00:00
Campbell Barton
f4e234a228
remove redundant array copy (was being done twice), for BM_Face_UpdateNormal
2011-11-24 23:27:20 +00:00
Campbell Barton
4801ecae71
replace unhelpfully named eck! and eek! error prints, also some minor changes to math library use.
2011-11-24 23:09:55 +00:00
Campbell Barton
2d71eab5aa
fix [ #29256 ] Import images as planes add on doesn't work correctly in bmesh
2011-11-24 22:40:43 +00:00
Mitchell Stokes
64008199b9
Merging Blenderplayer modifier fix (U.gameflags |= USER_DISABLE_VBO) from Cucumber.
2011-11-24 21:16:27 +00:00
Brecht Van Lommel
8651e6fba7
Fix part of #29310 : secondary point caches for cloth did not get steps
...
set to correct default, was 10 when supposed to be 1.
2011-11-24 20:46:00 +00:00
Brecht Van Lommel
ed6aaace52
Fix #29371 : crash deleting objects in outliner. This was introduced in the
...
bugfix for #28467 , it deleted outliner tree while still traversing it.
2011-11-24 20:24:03 +00:00
Campbell Barton
4b3976cc5a
svn merge ^/trunk/blender -r42116:42139
2011-11-24 20:01:45 +00:00