Commit Graph

53000 Commits

Author SHA1 Message Date
Sergey Sharybin
8439649464 Fix #30671: Reset to default values bug 2012-03-26 10:33:37 +00:00
Campbell Barton
7d9f0bfe76 fix [#30598] Bad 3D view display & render with smooth mesh
Sergey's suggestion - just call calc normals fixes.
2012-03-26 09:38:38 +00:00
Sergey Sharybin
3fab018da4 Fix for object solver possible pointing to a freed memory when removing
movie clip data block from python/
2012-03-26 09:36:19 +00:00
Campbell Barton
4a1fdd80f9 style cleanup: use NULL rather than 0 for raytrace code. 2012-03-26 08:58:17 +00:00
Campbell Barton
ce4eb57301 fix [#30653] Wrong image at UV/Image Editor window
render results would be displayed on loading new files if the scene names matches, now free render-results so as not to display stale data - also saves some memory.
2012-03-26 08:10:12 +00:00
Campbell Barton
4ade85612c fix for possible crash - freed scene was being used for render result lookup when 'Load UI' was disabled. 2012-03-26 08:06:13 +00:00
Campbell Barton
7e38b49f26 fix for possible crash using freed ObCenter pointer when loaing a blend file without loading the UI. 2012-03-26 07:28:31 +00:00
Campbell Barton
11d12d945e style cleanup: python api 2012-03-26 06:55:09 +00:00
Bastien Montagne
7c8c1a0718 Minor fixes to recent new UI messages. 2012-03-26 06:20:59 +00:00
Campbell Barton
5c209c76a1 fix [#30658] existing uv mesh coordinates not copied to new created uv map 2012-03-26 05:28:00 +00:00
Campbell Barton
c9c66720c8 disallow adding tessfaces to a mesh with polygons (only allowed case is creating a new mesh with tessfaces and later converting to polygons, which wont work if polygons exist) 2012-03-26 04:32:04 +00:00
Campbell Barton
452f7c3868 setting the active texture layer from python would get the UV layer out of sync. (entering editmode would show the wrong UV layer) 2012-03-26 04:23:18 +00:00
Campbell Barton
48f0444760 style cleanup: editors/mesh - mostly whitespace around operators 2012-03-26 02:56:48 +00:00
Campbell Barton
44010fb659 fix [#30657] New UV layers created with Mesh.uv_textures.new reset previous ones.
adding UV's from python was resetting the active UV layer but not setting the new layer to active, resetting existing UV's.
2012-03-26 02:39:05 +00:00
Campbell Barton
94b8b8913e rename lattice influence to strength from r45144 (other deform modifiers call it strength too) 2012-03-26 00:42:21 +00:00
Campbell Barton
09144c3756 style cleanup: mostly whitespace around operators 2012-03-25 23:54:33 +00:00
Sergey Sharybin
1ce2c73816 Code style cleaup for motion-tracking modules.
Should be no functional changes.
2012-03-25 23:19:21 +00:00
Campbell Barton
4457e85442 style cleanup: dont use 'else for' for extended blocks of code (quite confusing) 2012-03-25 23:12:42 +00:00
Campbell Barton
6faeac9fe2 style cleanup: add braces around checks - 'if ELEM() {...}', confuses some parsers that done expand macros. 2012-03-25 22:35:18 +00:00
Thomas Dinges
aede928bdc Patch: [#30652] Influence slider for Lattice Modifier
* This patch adds a influence slider for the lattice modifier, which affects the strength of the deformation. 

Patch by Patrick Boelens (senshi), thanks a lot!
2012-03-25 22:14:21 +00:00
Antony Riakiotakis
c379b78d8a fix #30668 and the rest of #30638.
Port angle stretch code for uvs to bmesh.

Also added comment to clarify previous commit.
2012-03-25 21:18:44 +00:00
Antony Riakiotakis
8c6fc392c2 Comment out the projection to ngon normal plane when calculating ngon area. This is hardly worth the cost since we use an approximation anyway. 2012-03-25 19:13:50 +00:00
Antony Riakiotakis
eb10402365 Fix #30638 and part of #30646.
Problem was that area calculation of polygons was done relative to the xy plane, and with a very obscure (to me at least) algorithm. That meant that vertical ngons would get 0 area. 

Commented initial code in case this is a strange optimization case that someone wants to use and used a cleaner algorithm: first project vertices to the ngon plane, defined by the normal of the ngon and the center (mean) of the ngon vertices. This will only be exact for convex and mostly planar ngons, still it is much better than the previous code.

Also fixed memory leak when stretch display was on.
2012-03-25 19:02:28 +00:00
Nicholas Bishop
337be23cea Fix bug #30673, "Crash: Bridge a pair of edges."
Fix edge case for clamp_index() with any negative 'x' that is a
multiple of 'len', was returning 'len' which is invalid index.

Maybe the expression can be simplified back to a one-liner?
2012-03-25 18:19:40 +00:00
Campbell Barton
3f56ee3da7 style cleanup: issues missed last commit 2012-03-25 15:56:17 +00:00
Campbell Barton
fffe342d87 bmesh inset: another small improvement - use the shared edge vector rather then the cross product between 2 faces if the faces infact share an edge - works best for non planer faces.
also added utility function - BM_loop_other_vert_loop
2012-03-25 14:44:48 +00:00
Campbell Barton
105c282b9f inset tool now works better when insetting around corners - the 2 faces normals are now used to calculate the inset edge vector if the faces are different and not planer. 2012-03-25 13:53:12 +00:00
Campbell Barton
53d32a0bd2 style cleanup: conform to style guide - mostly operator whitespace changes 2012-03-25 12:41:58 +00:00
Tamito Kajiyama
3b711a6ed0 Merged changes in the trunk up to revision 45133.
Conflicts resolved:
source/blender/blenloader/intern/readfile.c
source/blender/blenloader/intern/writefile.c
source/blender/bmesh/intern/bmesh_construct.c
source/blender/bmesh/intern/bmesh_mesh_conv.c
source/blender/bmesh/intern/bmesh_mesh_conv.h
source/blender/editors/interface/interface_templates.c
source/blender/editors/interface/resources.c
source/blender/editors/mesh/bmesh_select.c
source/blender/editors/mesh/bmesh_tools.c
source/blender/editors/space_view3d/drawobject.c
source/blender/render/intern/source/shadeoutput.c
2012-03-25 08:20:19 +00:00
Campbell Barton
e99a23fc6b style cleanup: operator/whitespace 2012-03-24 11:27:52 +00:00
Campbell Barton
6378606d64 fix for error adding vertex colors in editmode.
also correct delete_customdata_layer having invalid 'tot' in editmode, seems harmless for now but better assign correct value.
2012-03-24 11:02:28 +00:00
Campbell Barton
d7b9127e5f fix for crash removing vertex colors in editmode. 2012-03-24 10:41:42 +00:00
Campbell Barton
b8a71efeba style cleanup: follow style guide for/with/if spacing 2012-03-24 07:52:14 +00:00
Campbell Barton
81d8f17843 style cleanup: pep8, indentation 2012-03-24 07:36:32 +00:00
Campbell Barton
29806d3bcf style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 07:09:57 +00:00
Campbell Barton
ab4a2aaf4a style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 06:38:07 +00:00
Campbell Barton
5a90ea77bc style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 06:24:53 +00:00
Campbell Barton
69e6894b15 style cleanup: follow style guide for formatting of if/for/while loops, and else if's 2012-03-24 06:18:31 +00:00
Campbell Barton
7b99ae0ad3 convert spaces to tabs and some formatting. 2012-03-24 04:39:53 +00:00
Campbell Barton
2f348d8b5d style cleanup: mainly for mesh code, also some WM function use. 2012-03-24 02:51:46 +00:00
Campbell Barton
3c11379e26 code cleanup: move bmesh inline funcs to headers (avoids compiling the C files). 2012-03-24 01:24:58 +00:00
Campbell Barton
0c898514f0 code cleanup: bmesh_ source files in our editor dir, they are the same as other editmesh_ files. 2012-03-24 00:20:36 +00:00
Campbell Barton
888cc0d7ac code cleanup: re-shuffle some functions so EDBM_ functions are in bmesh_utils.c
remove bmesh_selecthistory.c, only wrapped a few functions.
2012-03-23 23:41:33 +00:00
Campbell Barton
5d68b3204d fix for error with saving files after double clicking, the 'need_active' setting was getting saved which caused save to fail when not caused by double click afterwards. 2012-03-23 22:31:14 +00:00
Campbell Barton
88d0918fe2 code cleanup: more consistent naming for mesh operator functions. 2012-03-23 21:25:07 +00:00
Thomas Dinges
ac69593b7f Sequence Editor Themes:
* Preview Background is now themeable. Patch by Pablo Vazquez (venomgfx).
2012-03-23 20:50:38 +00:00
Campbell Barton
7ff77ed4ea code cleanup: use zero_v3 2012-03-23 20:18:09 +00:00
Nicholas Bishop
402a9d5938 Better smoothing for sculpt cube falloff.
The cube test, used by the clay strips brush, now smooths the corners
of the cube using the brush curve.
2012-03-23 16:59:23 +00:00
Thomas Dinges
b331c867e1 3D View Themes:
* Camera and Empty colour is now themeable. Patch by Pablo Vazquez (venomgfx) with some minor edits.
2012-03-23 16:14:25 +00:00
Howard Trickey
3103531716 Knifetool: add help message in header line 2012-03-23 14:52:00 +00:00