blender.git
7 years ago== Python API docs ==
Luca Bonavita [Thu, 15 Mar 2012 00:12:31 +0000 (00:12 +0000)]
== Python API docs ==

New command line options:

-l: logs bpy dumping problems in OUTPUT_DIR/.bpy.log

-L: logs sphinx|latex problems in:
    * OUTPUT_DIR/.sphinx-build.log      (sphinx building html problems)
    * OUTPUT_DIR/.sphinx-build_pdf.log  (sphinx building latex problems)
    * OUTPUT_DIR/.latex_make.log        (latex make problems)

-P: builds the pdf

-R: pack the files in a dir ready for online deployment
    (including the zip and the pdf eventually)

Example usage:
./cmake/bin/blender -b -P ./blender/doc/python_api/sphinx_doc_gen.py -- -p bmesh* -l -o ./python_api -B -P -R -L

7 years agoOSX/cmake: enable clang compiler with xcode >= 4.3, tested o.k.now
Jens Verwiebe [Wed, 14 Mar 2012 23:42:46 +0000 (23:42 +0000)]
OSX/cmake: enable clang compiler with xcode >= 4.3, tested o.k.now

7 years agobmesh: Fkey now creates faces from 5 or more disconnected vertices.
Campbell Barton [Wed, 14 Mar 2012 22:57:15 +0000 (22:57 +0000)]
bmesh: Fkey now creates faces from 5 or more disconnected vertices.

Added function: BM_face_create_ngon_vcloud
creating quads and tris use this too since it finds the best face winding direction based on surrounding face (if any)

7 years agocomment cleanup
Campbell Barton [Wed, 14 Mar 2012 22:39:56 +0000 (22:39 +0000)]
comment cleanup

7 years agoFix #30549: Error adding mesh object to scene
Sergey Sharybin [Wed, 14 Mar 2012 22:34:25 +0000 (22:34 +0000)]
Fix #30549: Error adding mesh object to scene

7 years agoUse helper functions in node_select when selecting/deselecting nodes and sockets...
Lukas Toenne [Wed, 14 Mar 2012 18:10:57 +0000 (18:10 +0000)]
Use helper functions in node_select when selecting/deselecting nodes and sockets in operators. This ensure that sockets are not selected on their own (parent node is always selected too).

7 years agoMake extension mode (shiftkey) mandatory for socket selection. Otherwise the user...
Lukas Toenne [Wed, 14 Mar 2012 17:52:50 +0000 (17:52 +0000)]
Make extension mode (shiftkey) mandatory for socket selection. Otherwise the user can end up with unexpectedly selected nodes, since socket selection allows selecting inputs and outputs from different nodes, which in turn also mean the parent nodes are selected. This fits the workflow better, you already needed to press shiftkey before to use the auto-connect operator. It will also solve some problems with the upcoming reroute nodes, where the node is basically a single socket.

7 years agoFix crash on edge extrude from textured view
Sergey Sharybin [Wed, 14 Mar 2012 14:09:56 +0000 (14:09 +0000)]
Fix crash on edge extrude from textured view

Issue was caused by MFACE layer adding for even DM without tessellated faces
which lead to adding new layer but with NULL data. This causes issues when layer
with faces (after extrude) was attempting to add because currently CD only checks
if layer type exists but does not check for size of the layer.

Solved by not adding MFACE layer if there's no tessellated faces.

7 years agofix hang when loop selecting an ngon. We need to check if edge currently walked on...
Antony Riakiotakis [Wed, 14 Mar 2012 13:52:17 +0000 (13:52 +0000)]
fix hang when loop selecting an ngon. We need to check if edge currently walked on has already been added

7 years agoAvoid a sigsev after 44830 when reports is empty, clang compile work
Jens Verwiebe [Wed, 14 Mar 2012 12:03:49 +0000 (12:03 +0000)]
Avoid a sigsev after 44830 when reports is empty, clang compile work

7 years agoSwitch *nix fileops from calling external commands via system() to posix api calls
Sergey Sharybin [Wed, 14 Mar 2012 09:39:43 +0000 (09:39 +0000)]
Switch *nix fileops from calling external commands via system() to posix api calls
which resolves some possible issues with operating files with quotes and backslashes.

Also this might resolve (or at least help) resolving compilation error on GNU Hurd platform
which will help a lot maintaining Blender for Debian.

7 years agoChanges to python-defined add object operators:
Sergey Sharybin [Wed, 14 Mar 2012 08:55:57 +0000 (08:55 +0000)]
Changes to python-defined add object operators:

- Reset rotation value when toggling Align to View property
  which correctly re-alignes object on continuous property
  toggling and fixes issue
  #30510: [2.62] Add Mesh - Torus - "Align to View" cannot be switched back when toggling off

- Moves all generic object-add properties into a helper function
  which might be easily re-used.

7 years agoFix for multires undo with partial visibility.
Nicholas Bishop [Wed, 14 Mar 2012 08:14:03 +0000 (08:14 +0000)]
Fix for multires undo with partial visibility.

7 years agoFix some errors in partial visibility drawing.
Nicholas Bishop [Wed, 14 Mar 2012 07:37:47 +0000 (07:37 +0000)]
Fix some errors in partial visibility drawing.

Also changed show-in-border key to SHIFT+H as suggested by Daniel
Salazar.

7 years agoAdd partial visibility operator including keymaps and menu items.
Nicholas Bishop [Wed, 14 Mar 2012 06:32:43 +0000 (06:32 +0000)]
Add partial visibility operator including keymaps and menu items.

Uses HKEY for border hide, CTRL+HKEY for border show, and ALT+HKEY for
show all.

Documentation:
http://wiki.blender.org/index.php/User:Nicholasbishop/PartialVisibility

Code review:
http://codereview.appspot.com/5695043

7 years agoSkip hidden elements in PBVH iterator, raycast, and drawing.
Nicholas Bishop [Wed, 14 Mar 2012 06:32:25 +0000 (06:32 +0000)]
Skip hidden elements in PBVH iterator, raycast, and drawing.

7 years agoCopy hidden flag to vertices when applying multires modifier.
Nicholas Bishop [Wed, 14 Mar 2012 06:32:13 +0000 (06:32 +0000)]
Copy hidden flag to vertices when applying multires modifier.

7 years agoSkip hidden elements in PBVH iterator, raycast, and drawing.
Nicholas Bishop [Wed, 14 Mar 2012 06:32:03 +0000 (06:32 +0000)]
Skip hidden elements in PBVH iterator, raycast, and drawing.

7 years agoAdd DerivedMesh.gridHidden and CCGDM implementation.
Nicholas Bishop [Wed, 14 Mar 2012 06:31:49 +0000 (06:31 +0000)]
Add DerivedMesh.gridHidden and CCGDM implementation.

7 years agoAdd MDisps.hidden bitmap.
Nicholas Bishop [Wed, 14 Mar 2012 06:31:38 +0000 (06:31 +0000)]
Add MDisps.hidden bitmap.

Updates SDNA, customdata functions, and file read/write. Also adds
accessor functions to BKE paint.

7 years agoAdd new CCG accessor functions.
Nicholas Bishop [Wed, 14 Mar 2012 06:31:24 +0000 (06:31 +0000)]
Add new CCG accessor functions.

ccg_gridsize() converts a level into gridsize, ccg_factor() is for
converting coordinates between different multires levels.

7 years agoAdd BKE mesh function to update edge/poly hidden flags from verts.
Nicholas Bishop [Wed, 14 Mar 2012 06:31:14 +0000 (06:31 +0000)]
Add BKE mesh function to update edge/poly hidden flags from verts.

7 years agoDon't wait for sculpt stroke to create PBVH.
Nicholas Bishop [Wed, 14 Mar 2012 06:30:55 +0000 (06:30 +0000)]
Don't wait for sculpt stroke to create PBVH.

This idea is borrowed from the multires modifier, which already
checked if the object was in sculpt mode and, if so, created the
PBVH. That check is now moved higher up the chain into
mesh_build_data(), so that it occurs for CDDerivedMesh too.

This also replaces an assert in cdDM_getPBVH for tesselated mesh faces
with a call to create them if missing.

7 years agomathutils py api:
Campbell Barton [Wed, 14 Mar 2012 06:14:15 +0000 (06:14 +0000)]
mathutils py api:

  Vector.angle_signed(other)
  for 2D vectors to get the clockwise angle between them.

  in BLI math its called - angle_signed_v2v2()

shorthand for...

  atan2f((v1[1] * v2[0]) - (v1[0] * v2[1]), dot_v2v2(v1, v2))

also corrects compile error in last commit.

7 years agobmesh py api: finished todo - editable select_history
Campbell Barton [Wed, 14 Mar 2012 04:46:12 +0000 (04:46 +0000)]
bmesh py api: finished todo - editable select_history

eg:
  bm.select_history = vert, face, edge

  bm.select_history.add(edge)

7 years agoAdd 'level' field to struct MDisps, companion to 'totdisp'.
Nicholas Bishop [Wed, 14 Mar 2012 03:10:18 +0000 (03:10 +0000)]
Add 'level' field to struct MDisps, companion to 'totdisp'.

Gets initialized when loading old files and updated at the same places
totdisp is updated. Saves having to do log+sqrt to extract level from
totdisp.

7 years agodocumentation edit to address bmesh py api bug [#30453]
Campbell Barton [Wed, 14 Mar 2012 00:30:20 +0000 (00:30 +0000)]
documentation edit to address bmesh py api bug [#30453]

warn when addons are not found when running cmake.

7 years agofix [#30493] GE crashes on exit because of using freed mtfaces from tessfaces
Campbell Barton [Tue, 13 Mar 2012 23:28:02 +0000 (23:28 +0000)]
fix [#30493] GE crashes on exit because of using freed mtfaces from tessfaces

prevent gpu_draw.c holding a pointer to a freed array.

7 years agoprint warning when release/datafiles/locale is missing when building with cmake ...
Campbell Barton [Tue, 13 Mar 2012 22:27:21 +0000 (22:27 +0000)]
print warning when release/datafiles/locale is missing when building with cmake (git-svn causes this).

7 years agoSDL ghost update to work with SDL2.
Campbell Barton [Tue, 13 Mar 2012 20:24:05 +0000 (20:24 +0000)]
SDL ghost update to work with SDL2.

this gives some problems because SDL2 Needs a window before fullscreen is set, the player currently doesnt have a window created when fullscreen is called.

7 years agoloopwalker support for selecting the sides of ngons
Campbell Barton [Tue, 13 Mar 2012 18:37:31 +0000 (18:37 +0000)]
loopwalker support for selecting the sides of ngons
see: wiki.blender.org/uploads/d/dc/BMesh_NGon_Loop_Select.png

7 years agocode/style cleanup for loop walker which was is fairly confusing and hard to extend.
Campbell Barton [Tue, 13 Mar 2012 17:13:44 +0000 (17:13 +0000)]
code/style cleanup for loop walker which was is fairly confusing and hard to extend.
- only have one return at the end of the function.
- break up functionality more clearly between wire/face walk.
- remove unused struct member.

7 years agopatch [#30511] from r44792, broke setting the window state from the command line...
Campbell Barton [Tue, 13 Mar 2012 15:44:48 +0000 (15:44 +0000)]
patch [#30511] from r44792, broke setting the window state from the command line (-W / -w).

Fix this by storing if the border is set - before this was only done for the window dimensions.
also move these variables into a static struct so this logic is easier to follow.

7 years agoWITH_GHOST_SDL working again (missing std:: update)
Campbell Barton [Tue, 13 Mar 2012 14:28:58 +0000 (14:28 +0000)]
WITH_GHOST_SDL working again (missing std:: update)

7 years agoFix possible usage of NULL function reported by clang
Sergey Sharybin [Tue, 13 Mar 2012 10:31:42 +0000 (10:31 +0000)]
Fix possible usage of NULL function reported by clang

7 years agobmesh py api: more comprehensive intro page, also fix some spelling errors.
Campbell Barton [Tue, 13 Mar 2012 06:22:43 +0000 (06:22 +0000)]
bmesh py api: more comprehensive intro page, also fix some spelling errors.

7 years agobmesh python api:
Campbell Barton [Tue, 13 Mar 2012 02:59:42 +0000 (02:59 +0000)]
bmesh python api:
BMesh.select_history.remove/clear/validate functions.

7 years agobmesh: Pressing Fkey when a face cant be made falls back to the selection history...
Campbell Barton [Tue, 13 Mar 2012 02:18:46 +0000 (02:18 +0000)]
bmesh: Pressing Fkey when a face cant be made falls back to the selection history and creates edges in the order of verts selected, pressing F again will make an NGon.

(fun feature while our bug tracker is down)

7 years agostule cleanup for rct.c and fix for error in last commit.
Campbell Barton [Tue, 13 Mar 2012 01:55:25 +0000 (01:55 +0000)]
stule cleanup for rct.c and fix for error in last commit.

7 years agoworkaround [#30480] Knife tool flicker
Campbell Barton [Tue, 13 Mar 2012 01:11:08 +0000 (01:11 +0000)]
workaround [#30480] Knife tool flicker

the problem was numeric precision when in ortho mode the start/end points for the view vector would be 2000 apart which caused trouble for the intersection test.

7 years agostyle cleanup
Campbell Barton [Mon, 12 Mar 2012 23:56:11 +0000 (23:56 +0000)]
style cleanup

7 years agoCode cleanup: use explicit PBVH type enum rather than checking for grids or faces.
Nicholas Bishop [Mon, 12 Mar 2012 23:03:43 +0000 (23:03 +0000)]
Code cleanup: use explicit PBVH type enum rather than checking for grids or faces.

No functional changes, this is just a bit easier to read I think (and
nicer if we add more PBVH types in the future, e.g. for dynamic
topology sculpting.)

7 years agoCode cleanup: replace multires update function pointer with direct call.
Nicholas Bishop [Mon, 12 Mar 2012 22:52:20 +0000 (22:52 +0000)]
Code cleanup: replace multires update function pointer with direct call.

Renamed the multiresModifier_update() function to
multires_modifier_update_mdisps() and made it visible to subsurf_ccg.c
so it can be called directly. No functional change, just a bit simpler.

7 years agobetter fix for [#30529], find the right axis rather then checking for folded quads.
Campbell Barton [Mon, 12 Mar 2012 21:38:13 +0000 (21:38 +0000)]
better fix for [#30529], find the right axis rather then checking for folded quads.

7 years agoBundle latest version of Carve library which shall resolve compilation issues with...
Sergey Sharybin [Mon, 12 Mar 2012 21:18:28 +0000 (21:18 +0000)]
Bundle latest version of Carve library which shall resolve compilation issues with clang

7 years agofix [#30529] BMesh: Wrong Indizes of Faces
Campbell Barton [Mon, 12 Mar 2012 21:09:27 +0000 (21:09 +0000)]
fix [#30529] BMesh: Wrong Indizes of Faces

problem was bow-tie quads would add opposite normals together and result in zero vector which was used for projection.
Now is_quad_convex_v3() checks if quad contains 2 faces which point away from eachother when split by either direction.

Theres another fix for this bug which can be done since creating the face can use existing edges in the example given so it wont have to guess which order of verts to use.

7 years agoFix #30406: Hooks ignore Automatic handles setting in curves
Sergey Sharybin [Mon, 12 Mar 2012 14:55:56 +0000 (14:55 +0000)]
Fix #30406: Hooks ignore Automatic handles setting in curves

Update handles positions after applying modifiers which seems to be expected behavior.
The only currently unsolved issue is about updating aligned handles because this needs
to determine in which order handles need to be recalculated which currently depends on
selection flags and which is quite tricky to do when running modifiers and animation data,
so currently just not update their positions for now.

7 years agoFix for lasso gestures. After executing the modal gesture operator the list of gestur...
Lukas Toenne [Mon, 12 Mar 2012 14:39:37 +0000 (14:39 +0000)]
Fix for lasso gestures. After executing the modal gesture operator the list of gesture points is copied to the operator "path" id property, which is simply a collection of points. This list must be cleared before adding new lasso points to it, since operator properties are now stored after each execution. Noticed by Olivier Amrein (oenvoyage) on IRC.

7 years agoFix #30496: Bugs and crashes about "make links modifers" function.
Sergey Sharybin [Mon, 12 Mar 2012 14:35:07 +0000 (14:35 +0000)]
Fix #30496: Bugs and crashes about "make links modifers" function.

Was missed check for if modifier is available for particular object type
which ended up with unpredictable results when modifier which isn't supported
yet for some object type as linked to that object type.

7 years agoFix #30524: documentation example code for bge.types.KX_MeshProxy did not work,
Brecht Van Lommel [Mon, 12 Mar 2012 13:04:06 +0000 (13:04 +0000)]
Fix #30524: documentation example code for bge.types.KX_MeshProxy did not work,
using fix suggested by Ryan King.

7 years agoCode cleanup: knife gathers pos-related state into a struct. No functional change.
Howard Trickey [Mon, 12 Mar 2012 12:45:55 +0000 (12:45 +0000)]
Code cleanup: knife gathers pos-related state into a struct. No functional change.

This is in preparation for bug fixing and cleanup related to tracking
of bmface and is_space state variables.  And makes it more likely
to avoid bugs in future where some part of state is copied but not all.

7 years agoOSX/cmake: use again 10.5 as general deployment target ( pls verify 10.5 compatibilit...
Jens Verwiebe [Mon, 12 Mar 2012 12:03:52 +0000 (12:03 +0000)]
OSX/cmake: use again 10.5 as general deployment target ( pls verify 10.5 compatibility works with automatic weaklinking), use now then sdk which for sure exists, remove obsolete slash

7 years agoFix #30512: external render saved render result after reporting error.
Brecht Van Lommel [Mon, 12 Mar 2012 11:32:23 +0000 (11:32 +0000)]
Fix #30512: external render saved render result after reporting error.

7 years agoMake knifetool more robust against crashes. Fix some hole problems.
Howard Trickey [Mon, 12 Mar 2012 11:27:59 +0000 (11:27 +0000)]
Make knifetool more robust against crashes. Fix some hole problems.

Sometimes split would fail to make a face - make sure it doesn't
crash if that happens.
Chain finding code for holes would sometimes go back to same
vertex on the face, which causes problems, so fixe that.
Also, disallowed a cut that starts at a vertex or edge and
cycles back to that same point in a face - this would make
a face with a repeated vertex, which may not be handled by
the rest of the system properly.

7 years agoStyle cleanup in blenfont (spaces, C++ comments, etc.).
Bastien Montagne [Mon, 12 Mar 2012 09:22:16 +0000 (09:22 +0000)]
Style cleanup in blenfont (spaces, C++ comments, etc.).

7 years agoRemoving SWAP macro define from BLI_heap.c, already present in BLI_utildefines.h...
Bastien Montagne [Mon, 12 Mar 2012 09:20:38 +0000 (09:20 +0000)]
Removing SWAP macro define from BLI_heap.c, already present in BLI_utildefines.h, giving compile error.

7 years agoCommit patch from Shane Ambler to make VideoTexture compile with a clang on FreeBSD.
Sergey Sharybin [Mon, 12 Mar 2012 08:46:53 +0000 (08:46 +0000)]
Commit patch from Shane Ambler to make VideoTexture compile with a clang on FreeBSD.
Thanks!

7 years agoRe-bundle libmv from own branch.
Sergey Sharybin [Mon, 12 Mar 2012 08:45:06 +0000 (08:45 +0000)]
Re-bundle libmv from own branch.

Should resolve compilation error on some platforms when using linux and
compilation error of libmv on FreeBSB.

It was a regression caused by not applied changes on config_linux.h
and some changes made to utilities.cc were also occasionally missed.

7 years agoFix msvc compilation errors. (__func__ undeclared)
Miika Hamalainen [Mon, 12 Mar 2012 07:21:22 +0000 (07:21 +0000)]
Fix msvc compilation errors. (__func__ undeclared)

7 years agocode cleanup/bugfix uninitialized values
Campbell Barton [Mon, 12 Mar 2012 06:53:47 +0000 (06:53 +0000)]
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.

7 years agostyle cleanup: line length - some over 300 long.
Campbell Barton [Mon, 12 Mar 2012 06:07:16 +0000 (06:07 +0000)]
style cleanup: line length - some over 300 long.

7 years agoSVN maintenance.
Guillermo S. Romero [Mon, 12 Mar 2012 04:35:06 +0000 (04:35 +0000)]
SVN maintenance.

7 years agofix [#30472] 3d view objects not rendered, cycles.
Campbell Barton [Mon, 12 Mar 2012 01:34:38 +0000 (01:34 +0000)]
fix [#30472] 3d view objects not rendered, cycles.

holdout layer wasnt initializes in some cases.

7 years agotext delimiter - convert to unicode before comparing characters.
Campbell Barton [Mon, 12 Mar 2012 00:03:42 +0000 (00:03 +0000)]
text delimiter - convert to unicode before comparing characters.

7 years agostyle cleanup
Campbell Barton [Sun, 11 Mar 2012 23:47:41 +0000 (23:47 +0000)]
style cleanup

7 years agobmesh: edge loop select
Campbell Barton [Sun, 11 Mar 2012 21:47:14 +0000 (21:47 +0000)]
bmesh: edge loop select
    add support for loop selecting boundry edges only - handy for loop selecting the side of an ngon.

7 years agoFix edge loop selection. Now boundary selection checks only for filled edges to deter...
Antony Riakiotakis [Sun, 11 Mar 2012 20:45:58 +0000 (20:45 +0000)]
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.

7 years agoPort changes from libmv/CMakeLists.txt to build rules files generator script
Sergey Sharybin [Sun, 11 Mar 2012 20:01:26 +0000 (20:01 +0000)]
Port changes from libmv/CMakeLists.txt to build rules files generator script

7 years agoremove Object member from BMesh struct - was only used for undo and BMEditMesh alread...
Campbell Barton [Sun, 11 Mar 2012 19:58:56 +0000 (19:58 +0000)]
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.

7 years agoBundle new upstream version of libmv from own branch
Sergey Sharybin [Sun, 11 Mar 2012 19:52:25 +0000 (19:52 +0000)]
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.

7 years agostyle cleanup, also remove unused externs.
Campbell Barton [Sun, 11 Mar 2012 19:09:01 +0000 (19:09 +0000)]
style cleanup, also remove unused externs.

7 years agoimprove confusing macro GET_ACF_FLAG_PTR
Campbell Barton [Sun, 11 Mar 2012 17:41:19 +0000 (17:41 +0000)]
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).

7 years ago[#30503] Callback for render job completion
Campbell Barton [Sun, 11 Mar 2012 17:24:03 +0000 (17:24 +0000)]
[#30503] Callback for render job completion
from Jason van Gumster (thefallenweeble)

adds render_complete and render_cancel callbacks to bpy.app.handlers

7 years agoCycles UI files:
Thomas Dinges [Sun, 11 Mar 2012 16:25:58 +0000 (16:25 +0000)]
Cycles UI files:
* Minor cleanup and raise blender version to 2.62 in the addon.

7 years agofix for debug assignment left in from own commit r44778
Campbell Barton [Sun, 11 Mar 2012 15:27:08 +0000 (15:27 +0000)]
fix for debug assignment left in from own commit r44778

also removed private face normal update functions - they were same as public.

7 years agoOSX/libmv: restrict the unwind.h workaround to 10.6.sdk only
Jens Verwiebe [Sun, 11 Mar 2012 12:15:39 +0000 (12:15 +0000)]
OSX/libmv: restrict the unwind.h workaround to 10.6.sdk only

7 years agoOSX/libmv: added a ahck to fix compiling with 10.6.sdk, unwind.h related
Jens Verwiebe [Sun, 11 Mar 2012 11:23:30 +0000 (11:23 +0000)]
OSX/libmv: added a ahck to fix compiling with 10.6.sdk, unwind.h related

7 years agobmesh python api additions:
Campbell Barton [Sun, 11 Mar 2012 05:58:22 +0000 (05:58 +0000)]
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()

7 years agobmesh py api - correct class references in docs and rename mesh conversion funcs...
Campbell Barton [Sun, 11 Mar 2012 04:07:22 +0000 (04:07 +0000)]
bmesh py api - correct class references in docs and rename mesh conversion funcs to ne less confusing.

7 years agobmesh py api: change .from_mesh() / .to_mesh() to be class methods of BMesh rather...
Campbell Barton [Sun, 11 Mar 2012 02:45:27 +0000 (02:45 +0000)]
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.

7 years agocode cleanup: remove unused externs.
Campbell Barton [Sun, 11 Mar 2012 00:00:27 +0000 (00:00 +0000)]
code cleanup: remove unused externs.

7 years agostyle cleanup: + some warning fixes, also remove unused metaelem extern.
Campbell Barton [Sat, 10 Mar 2012 22:00:55 +0000 (22:00 +0000)]
style cleanup: + some warning fixes, also remove unused metaelem extern.

7 years ago[#30373] Which part to snap in volume snapping is removed
Martin Poirier [Sat, 10 Mar 2012 21:40:35 +0000 (21:40 +0000)]
[#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

7 years agobmesh:
Campbell Barton [Sat, 10 Mar 2012 20:41:19 +0000 (20:41 +0000)]
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.

7 years ago2.6 UI:
Thomas Dinges [Sat, 10 Mar 2012 20:30:05 +0000 (20:30 +0000)]
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.

7 years ago2.6 UI:
Thomas Dinges [Sat, 10 Mar 2012 20:08:25 +0000 (20:08 +0000)]
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.

7 years agopatch [#30511] Save/load window state (allows Blender to start maximised)
Campbell Barton [Sat, 10 Mar 2012 17:49:26 +0000 (17:49 +0000)]
patch [#30511] Save/load window state (allows Blender to start maximised)
from Tom Edwards (artfunkel)

This patch fixes bug [#20791]

7 years agoRemove remained part of debug code.
Sergey Sharybin [Sat, 10 Mar 2012 17:14:50 +0000 (17:14 +0000)]
Remove remained part of debug code.

7 years agoForgot to remove code used for debuggning in previous commit.
Sergey Sharybin [Sat, 10 Mar 2012 16:55:09 +0000 (16:55 +0000)]
Forgot to remove code used for debuggning in previous commit.

7 years agoOSX/cmake: added a comment on method used
Jens Verwiebe [Sat, 10 Mar 2012 16:39:51 +0000 (16:39 +0000)]
OSX/cmake: added a comment on method used

7 years agoFinally 2D stabilization auto scale factor should be calculated perfectly
Sergey Sharybin [Sat, 10 Mar 2012 16:31:12 +0000 (16:31 +0000)]
Finally 2D stabilization auto scale factor should be calculated perfectly

7 years agoOSX/cmake: ensure newest Xcode compatibility, important: still needs a patched cmake...
Jens Verwiebe [Sat, 10 Mar 2012 16:21:48 +0000 (16:21 +0000)]
OSX/cmake: ensure newest Xcode compatibility, important: still needs a patched cmake ( see error you will get if missed ), patched cmake provided here: jensverwiebe.de/Blender/CMake%202.8-7patched.zip

7 years agofix for own error in recent commit with UV texture layers. - was shadowing variable...
Campbell Barton [Sat, 10 Mar 2012 15:55:25 +0000 (15:55 +0000)]
fix for own error in recent commit with UV texture layers. - was shadowing variable so assignment failed.

7 years agostyle cleanup
Campbell Barton [Sat, 10 Mar 2012 14:43:12 +0000 (14:43 +0000)]
style cleanup

7 years agostyle cleanup: unit code
Campbell Barton [Sat, 10 Mar 2012 14:20:55 +0000 (14:20 +0000)]
style cleanup: unit code

7 years agoFix an infinite loop in get_levels_from_disps().
Nicholas Bishop [Sat, 10 Mar 2012 12:26:32 +0000 (12:26 +0000)]
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.

7 years agostyle cleanup: fly mode.
Campbell Barton [Sat, 10 Mar 2012 06:46:23 +0000 (06:46 +0000)]
style cleanup: fly mode.

7 years agofix [#30500] Mesh.tessface_uv_textures or Mesh.tessface_vertex_colors crash on access...
Campbell Barton [Sat, 10 Mar 2012 05:20:41 +0000 (05:20 +0000)]
fix [#30500] Mesh.tessface_uv_textures or Mesh.tessface_vertex_colors crash on access in editmode

just missing NULL checks on face data.

7 years agoRemove the OBJECT_OT_test_multires operator.
Nicholas Bishop [Sat, 10 Mar 2012 05:15:17 +0000 (05:15 +0000)]
Remove the OBJECT_OT_test_multires operator.

Originated in r35213, appears to have been some test for multires in
BMesh.

7 years agochange fly mode behavior to address issue raised in [#30508] - there being no way...
Campbell Barton [Sat, 10 Mar 2012 04:19:25 +0000 (04:19 +0000)]
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.