Brecht Van Lommel
bbc3d820f4
Cycles: add ColorRamp node.
2012-03-26 12:45:14 +00:00
Bastien Montagne
56baed13da
Fix [ #30684 ] Bmesh AddTorus.execute failure.
...
Done BMESH_TODO (use polys/loops instead of tessfaces).
2012-03-26 12:43:48 +00:00
Sergey Sharybin
5e764bf848
Fix #30647 : Error in wire drawing of subsurf
...
Patch by Nicholas Bishop, thanks!
2012-03-26 12:20:46 +00:00
Campbell Barton
2743f2bb3f
fix [ #30257 ] bmesh: Rip "V" don't work on end vertex
...
added option to edgesplit bmesh operator to take tagged vertices as well so an edge at a boundary can split without splitting off the boundary vertex.
the behavior/speed of the edge split modifier and tool remainss the same, this is only used for rip.
2012-03-26 12:02:41 +00:00
Sergey Sharybin
261e92f864
Fix #30430 : Can only alt+scroll image buffer slot once
...
Issue was caused by mapping old buttons to new buttons. Render slot button in header
holds RenerResult for particular slot, but in N-panel it holds RenderResult from RenderEngine.
So what was happening is: switching render slot to empty slot makes slot button in header
contain NULL as button function's argument, but old button holds RenderResult for rendered
image, so this two buttons aren't equal and so button isn't getting activated and no scrolling
happens.
Making slot button hold RenderResult directly from RenderEngine (as it's happening with
buttons in N-panel) makes old->new buttons mapping work correct and it's possible
to alt-scroll smoothly
2012-03-26 11:44:03 +00:00
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
Sergey Sharybin
c6c8b283fa
Setup tracking scene works again now
2012-03-26 07:51:47 +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
df4a8a4dab
fix [ #30672 ] Mesh menu duplicity
...
own fault - added this before desolve menu existed.
2012-03-26 00:12:53 +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
Thomas Dinges
d3c596035b
Cycles / CUDA:
...
* Make Cycles aware of Computing Capability 3.0, used by the new Kepler Cards.
You'll need the CUDA 4.2 Toolkit to compile it.
2012-03-25 17:52:50 +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
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
Daniel Salazar
99b95926bb
Adding back delete edge loop to delete menu
2012-03-24 04:16:44 +00:00
Campbell Barton
2f348d8b5d
style cleanup: mainly for mesh code, also some WM function use.
2012-03-24 02:51:46 +00:00
Guillermo S. Romero
d6fd5266d0
SVN maintenance.
2012-03-24 01:42:08 +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