Miika Hamalainen
ea56a54747
Fix msvc compilation errors. (__func__ undeclared)
2012-03-12 07:21:22 +00:00
Campbell Barton
aedd4af57e
code cleanup/bugfix uninitialized values
...
- edgebisect bmesh operator used uninialized beauty field.
- BLI_join_dirfile could read from before the string bounds when passed an empty dir string.
- pransform could use an uninitialized projected coordinate (unlikely but possible)
- RNA_property_path_from_ID_check would compare against an uninitialized pointer when the path wasn't found.
also have bmesh walker use BM_edge_other_vert() utility function.
2012-03-12 06:53:47 +00:00
Campbell Barton
0873cbaed5
style cleanup: line length - some over 300 long.
2012-03-12 06:07:16 +00:00
Guillermo S. Romero
1979679ad6
SVN maintenance.
2012-03-12 04:35:06 +00:00
Campbell Barton
a04f44f486
fix [ #30472 ] 3d view objects not rendered, cycles.
...
holdout layer wasnt initializes in some cases.
2012-03-12 01:34:38 +00:00
Campbell Barton
7afeb21a41
text delimiter - convert to unicode before comparing characters.
2012-03-12 00:03:42 +00:00
Campbell Barton
cae11a98f9
style cleanup
2012-03-11 23:47:41 +00:00
Campbell Barton
ac24d98e24
bmesh: edge loop select
...
add support for loop selecting boundry edges only - handy for loop selecting the side of an ngon.
2012-03-11 21:47:14 +00:00
Antony Riakiotakis
33d8104716
Fix edge loop selection. Now boundary selection checks only for filled edges to determine when to stop and stops at vertices shared by only 2 edges.
2012-03-11 20:45:58 +00:00
Sergey Sharybin
d6b8b03305
Port changes from libmv/CMakeLists.txt to build rules files generator script
2012-03-11 20:01:26 +00:00
Campbell Barton
b330abc290
remove Object member from BMesh struct - was only used for undo and BMEditMesh already stores an object pointer.
...
also fix for own mistake with mesh conversion refactor, shape key index was off by 1 when switching editmode.
2012-03-11 19:58:56 +00:00
Sergey Sharybin
42b3463030
Bundle new upstream version of libmv from own branch
...
This version of libmv includes new gflags and glog libraries which makes
it possible to compile libmv with clang compiler.
Also remove code from CMakeLists which was disabling libmv if using clang.
Tested on linux with gcc-4.6 and clang-3.0, windows cmake+msvc and scons+mingw.
Could be some issues with other platforms/build system which shall be simple to resolve.
2012-03-11 19:52:25 +00:00
Campbell Barton
c21c58f44c
style cleanup, also remove unused externs.
2012-03-11 19:09:01 +00:00
Campbell Barton
65895a2a38
improve confusing macro GET_ACF_FLAG_PTR
...
- was operating on `type` which wasnt an argument to the macro.
- was calling return within the macro (makes code harder to follow).
2012-03-11 17:41:19 +00:00
Campbell Barton
178c2c32f2
[ #30503 ] Callback for render job completion
...
from Jason van Gumster (thefallenweeble)
adds render_complete and render_cancel callbacks to bpy.app.handlers
2012-03-11 17:24:03 +00:00
Thomas Dinges
e13e78495b
Cycles UI files:
...
* Minor cleanup and raise blender version to 2.62 in the addon.
2012-03-11 16:25:58 +00:00
Campbell Barton
19400d418d
fix for debug assignment left in from own commit r44778
...
also removed private face normal update functions - they were same as public.
2012-03-11 15:27:08 +00:00
Jens Verwiebe
fa169fdcb6
OSX/libmv: restrict the unwind.h workaround to 10.6.sdk only
2012-03-11 12:15:39 +00:00
Jens Verwiebe
2382afa968
OSX/libmv: added a ahck to fix compiling with 10.6.sdk, unwind.h related
2012-03-11 11:23:30 +00:00
Campbell Barton
7fa7e4ba1f
bmesh python api additions:
...
- BMesh.is_wrapped
- BMesh.copy()
- BMesh.clear()
- BMesh.free()
- BMesh.from_object(obj, apply_modifiers=True)
- BMEdge.calc_length()
- BMLoop.calc_normal()
- BMLoop.calc_tangent()
2012-03-11 05:58:22 +00:00
Campbell Barton
050439fd9d
bmesh py api - correct class references in docs and rename mesh conversion funcs to ne less confusing.
2012-03-11 04:07:22 +00:00
Campbell Barton
21fd09c028
bmesh py api: change .from_mesh() / .to_mesh() to be class methods of BMesh rather than functions in the module.
...
added example script which converts a mesh to a bmesh, edits and converts back again.
2012-03-11 02:45:27 +00:00
Campbell Barton
0c50bedd9c
code cleanup: remove unused externs.
2012-03-11 00:00:27 +00:00
Campbell Barton
7f34653f59
style cleanup: + some warning fixes, also remove unused metaelem extern.
2012-03-10 22:00:55 +00:00
Martin Poirier
67f1e83508
[ #30373 ] Which part to snap in volume snapping is removed
...
By Bug reported by Pep Ribal
Also fixed an object mode bug with volume snapping and made it compatible with the edit mode "Snap on self" option
2012-03-10 21:40:35 +00:00
Campbell Barton
e09ab8883c
bmesh:
...
- moved mesh conversion functions into their own file.
bmesh py api:
- can now create a new empty bmesh without first creating mesh data.
- added function to copy bmesh data back to a mesh.
- bmesh.from_mesh() can now get a mesh which isnt in editmode.
2012-03-10 20:41:19 +00:00
Thomas Dinges
83a5c943af
2.6 UI:
...
World Context:
* Made world id block wider
* Don't show texture user when Cycles engine is used
Other:
* Change Dopesheet > DopeSheet in User Preferences Theme section for consistency.
2012-03-10 20:30:05 +00:00
Thomas Dinges
bb82854d46
2.6 UI:
...
* Hide Modifier and Contraint Panel header, this gives a bit space.
As it's the only panel in these context tabs it does not make sense to close them anyways.
2012-03-10 20:08:25 +00:00
Campbell Barton
d6a6f285d6
patch [ #30511 ] Save/load window state (allows Blender to start maximised)
...
from Tom Edwards (artfunkel)
This patch fixes bug [#20791 ]
2012-03-10 17:49:26 +00:00
Sergey Sharybin
78941c1676
Remove remained part of debug code.
2012-03-10 17:14:50 +00:00
Sergey Sharybin
c175ed8b9b
Forgot to remove code used for debuggning in previous commit.
2012-03-10 16:55:09 +00:00
Jens Verwiebe
24ea07154e
OSX/cmake: added a comment on method used
2012-03-10 16:39:51 +00:00
Sergey Sharybin
be9aa6eada
Finally 2D stabilization auto scale factor should be calculated perfectly
2012-03-10 16:31:12 +00:00
Jens Verwiebe
3658389e72
OSX/cmake: ensure newest Xcode compatibility, important: still needs a patched cmake ( see error you will get if missed ), patched cmake provided here: http://www.jensverwiebe.de/Blender/CMake%202.8-7patched.zip
2012-03-10 16:21:48 +00:00
Campbell Barton
57693a3756
fix for own error in recent commit with UV texture layers. - was shadowing variable so assignment failed.
2012-03-10 15:55:25 +00:00
Campbell Barton
c7988dc1ac
style cleanup
2012-03-10 14:43:12 +00:00
Campbell Barton
6fef7f1c32
style cleanup: unit code
2012-03-10 14:20:55 +00:00
Nicholas Bishop
2932ab8761
Fix an infinite loop in get_levels_from_disps().
...
This is called when adding a multiries modifier. BMesh MDisps have
only one loop's displacements rather than a full face's, so don't
multiply by number of corners here.
2012-03-10 12:26:32 +00:00
Campbell Barton
20d8d366ab
style cleanup: fly mode.
2012-03-10 06:46:23 +00:00
Campbell Barton
064a333561
fix [ #30500 ] Mesh.tessface_uv_textures or Mesh.tessface_vertex_colors crash on access in editmode
...
just missing NULL checks on face data.
2012-03-10 05:20:41 +00:00
Nicholas Bishop
24b676e370
Remove the OBJECT_OT_test_multires operator.
...
Originated in r35213, appears to have been some test for multires in
BMesh.
2012-03-10 05:15:17 +00:00
Campbell Barton
d3ffa53f78
change fly mode behavior to address issue raised in [ #30508 ] - there being no way to pause.
...
now when reversing direction immediately - fly mode translation will pause until pressed again.
2012-03-10 04:19:25 +00:00
Campbell Barton
b1b07fb951
Speedup for ngon normal calculation
...
- BM_mesh_normals_update was looping over all faces to find the largest one, this is no longer needed.
- calculating a face normal was looping over every faces corners twice, now only once - using the loops directly (not an iterator).
- face vert locations were being copied an array, now use directly.
- calculating the normals would copy a float vector for the next point in the face, which was never used (only current and previous used).
- was copying vectors to compute the normal, now just assign the float pointers.
2012-03-10 03:25:16 +00:00
Nicholas Bishop
b8f15a1dd3
Revert changes BMesh changes MDisp loading in readfile.c
...
These changes originated in r35321, which transfered MDisps to a
different memory allocator; this is no long used, however, so
post-merge it was just making an identical copy.
2012-03-10 03:07:42 +00:00
Campbell Barton
702e85ef84
picky changes to mouse cursor text selection behavior, previously as soon as the mouse was before a character it would select the previous, even if the cursor was closer to the space between the next 2 chars.
...
now find the closest point inbetween both chars.
2012-03-09 23:10:07 +00:00
Campbell Barton
a2e00c6230
disable object outline draw when painting (its distracting), also fix for own recent mistake in vgroup_blend(). - had bad check for editmesh.
2012-03-09 22:00:40 +00:00
Campbell Barton
4dc35836ad
code cleanup: remove unused variable assignents and added bmesh submodule links, doc correction reported by dfelinto.
2012-03-09 21:23:15 +00:00
Campbell Barton
4908ded534
bmesh fix: faces were being created flipped the wrong way compared to surrounding geometry.
...
also the last edge was mot taken into account when calculating the correct winding.
2012-03-09 20:29:53 +00:00
Campbell Barton
80dca0a06d
style cleanup: consistent names for header guards.
2012-03-09 19:17:19 +00:00
Brecht Van Lommel
36b2f4a009
Cycles: another tooltip tweak.
2012-03-09 19:01:44 +00:00