9 years ago== Python API docs ==
Luca Bonavita [Fri, 16 Mar 2012 10:49:39 +0000 (10:49 +0000)]
== Python API docs ==

Committing a patch similar to revision 44887 with fixes to my own bugs
(sorry Campbell, and thanks for reviewing :)

- examples/ svn directory not removed anymore (in-source builds possible again)
- fixed "include references somehow stopped working"
+ using shutils.makearchive() to zip the file

New command line options

-l: Log the output of the api dump and sphinx|latex warnings and errors
    If given, save logs in:
    * OUTPUT_DIR/.bpy.log
    * OUTPUT_DIR/.sphinx-build.log
    * OUTPUT_DIR/.sphinx-build_pdf.log
    * OUTPUT_DIR/.latex_make.log

    (using only one log directive instead of -l for bpy and -L for sphinx)

-P: builds the pdf

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

Example usage:
./blender.bin -b -P doc/python_api/ -- -p bmesh* -o ./<OUTPUTDIR> -B -P -R -l

9 years agoFix object mode check in stats_update.
Nicholas Bishop [Fri, 16 Mar 2012 08:46:55 +0000 (08:46 +0000)]
Fix object mode check in stats_update.

Was checking object flag rather than mode.

9 years agobmesh py api:
Campbell Barton [Fri, 16 Mar 2012 08:26:22 +0000 (08:26 +0000)]
bmesh py api:
initial support for editing bmesh customdata per vert/edge/face/loop

shapes, crease, bevel weights working, missing UVs and Vertex Colors still.

9 years agofix for building bmesh bevel with scons (source file was left out)
Campbell Barton [Fri, 16 Mar 2012 05:25:02 +0000 (05:25 +0000)]
fix for building bmesh bevel with scons (source file was left out)

9 years agobmesh py api:
Campbell Barton [Fri, 16 Mar 2012 05:03:13 +0000 (05:03 +0000)]
bmesh py api:

Wrap customdata, so far you can access the data layers in a pythonic way but not manipulate the customdata yet.

provides dictionary like access to customdata layers, eg:
  texpoly = bm.faces.tex["UVMap"]
  print(bm.verts.shape.keys())  # un-intended pun, keys() works on all layers.
  print("MyInt" in  # __contains__
  layer = bm.faces.get("CheckForLayer")

9 years agopy api:
Campbell Barton [Fri, 16 Mar 2012 04:14:57 +0000 (04:14 +0000)]
py api:
  modify bpy.path.display_name_from_filepath() to accept bytes

9 years agoFix for multires VBO drawing in sculpt mode.
Nicholas Bishop [Fri, 16 Mar 2012 04:11:35 +0000 (04:11 +0000)]
Fix for multires VBO drawing in sculpt mode.

Forgot to use return value of function creating the index buffer.

9 years agobmesh: being back bevel modifier from 2.62 stable.
Campbell Barton [Thu, 15 Mar 2012 23:56:46 +0000 (23:56 +0000)]
bmesh: being back bevel modifier from 2.62 stable.

this is no big improvement but at least its not a regression.

using the new operator for the bevel modifier can be enabled again be uncommenting a define.

9 years ago*picky* fix for edge rotate
Campbell Barton [Thu, 15 Mar 2012 23:23:04 +0000 (23:23 +0000)]
*picky* fix for edge rotate

- Edge rotate would leave verts selected, this would give problems because those selections would leave edges that would try to rotate when run again. now de-select old verts on edge rotate.

- Rotating into hidden verts gave odd results, now make sure hidden state is ok.

- BMO_slot_buffer_hflag_disable / BMO_slot_buffer_hflag_enable now have flushing for the hide flag too.

9 years agoCommit patch from Nicholas Bishop with some small modifications
Sergey Sharybin [Thu, 15 Mar 2012 21:11:14 +0000 (21:11 +0000)]
Commit patch from Nicholas Bishop with some small modifications
to make nicer displaying of brush names.

9 years agoquiet debug print(), reported as [#30552], but infact is harmless.
Campbell Barton [Thu, 15 Mar 2012 20:25:07 +0000 (20:25 +0000)]
quiet debug print(), reported as [#30552], but infact is harmless.

9 years agomesh_validate code for bmesh (i.e. polys/loops).
Bastien Montagne [Thu, 15 Mar 2012 20:10:07 +0000 (20:10 +0000)]
mesh_validate code for bmesh (i.e. polys/loops).

Everything seems to work well (many tests making random changes over various meshes went good), but the code is a bit complex and hard to follow, due to the various possibilities of invalid poly/loop combinations… Code also makes more operations than previous tri/quad faces version (hence is a bit slower), but I don’t think we can do otherwise, it’s just the price for bmesh flexibility. ;)

Note: added the py script I used to make the tests, under source/tests/...

9 years agoadd missing break statement from recent brush code refactor,
Campbell Barton [Thu, 15 Mar 2012 19:24:16 +0000 (19:24 +0000)]
add missing break statement from recent brush code refactor,
selecting texture paint brush would never run brush_generic_tool_set()

9 years agoOSX/cmake: move the xcode 4.3 warning up, it was not shown due error happened before...
Jens Verwiebe [Thu, 15 Mar 2012 15:32:56 +0000 (15:32 +0000)]
OSX/cmake: move the xcode 4.3 warning up, it was not shown due error happened before, masking it

9 years agoOSX/scons: also allow for omp-builds with gcc-4.6.2 and 4.6.3 ( tested ), TODO: check...
Jens Verwiebe [Thu, 15 Mar 2012 14:57:51 +0000 (14:57 +0000)]
OSX/scons: also allow for omp-builds with gcc-4.6.2 and 4.6.3 ( tested ), TODO: check if we can compile objC/objC++ with newer gcc too

9 years ago2.6 User Interface:
Thomas Dinges [Thu, 15 Mar 2012 14:36:54 +0000 (14:36 +0000)]
2.6 User Interface:
* New Icons for the File menu, patch by David Klein (cgeffex). Thanks a lot!
* This patch also adds a new icon for the use_filter_text in Filebrowser.

9 years agoMove brush tool/paint-mode from toolbar to brush menu.
Nicholas Bishop [Thu, 15 Mar 2012 09:11:24 +0000 (09:11 +0000)]
Move brush tool/paint-mode from toolbar to brush menu.

9 years agoUse Brush.sculpt_capabilities in Python UI code for sculpt toolbar.
Nicholas Bishop [Thu, 15 Mar 2012 09:11:16 +0000 (09:11 +0000)]
Use Brush.sculpt_capabilities in Python UI code for sculpt toolbar.

9 years agoAdd RNA for brush capabilities (sculpt-only for now.)
Nicholas Bishop [Thu, 15 Mar 2012 09:10:54 +0000 (09:10 +0000)]
Add RNA for brush capabilities (sculpt-only for now.)

Added a new RNA-only nested structure, Brush.SculptCapabilities. It
contains read-only properties that use the current sculpt tool (and
occasionally other brush properties) to determine whether some feature
is available.

For example, the grab and snake-hook brushes don't support the
strength property. Querying brush.sculpt_capabilities.has_strength
will return false only if one of these brushes is selected.

9 years agomissed these last commit
Campbell Barton [Thu, 15 Mar 2012 06:51:09 +0000 (06:51 +0000)]
missed these last commit

9 years agoUn-abbreviate 'use_space_atten' (Brush RNA) to 'use_space_attenuation'.
Nicholas Bishop [Thu, 15 Mar 2012 06:39:54 +0000 (06:39 +0000)]
Un-abbreviate 'use_space_atten' (Brush RNA) to 'use_space_attenuation'.

9 years agoprepare for adding bmesh py api for customdata layer access - no functional changes.
Campbell Barton [Thu, 15 Mar 2012 06:08:27 +0000 (06:08 +0000)]
prepare for adding bmesh py api for customdata layer access - no functional changes.

9 years agoCode cleanup: simplify brush tool selection operators.
Nicholas Bishop [Thu, 15 Mar 2012 05:59:44 +0000 (05:59 +0000)]
Code cleanup: simplify brush tool selection operators.

Created a single unifed operator, PAINT_OT_brush_select, to replace
BRUSH_OT_sculpt_tool_set, BRUSH_OT_vertex_tool_set,
BRUSH_OT_weight_tool_set, and BRUSH_OT_image_tool_set.

9 years agofixes for vertex color (found when brining X3D import back)
Campbell Barton [Thu, 15 Mar 2012 05:40:33 +0000 (05:40 +0000)]
fixes for vertex color (found when brining X3D import back)
- tessface vertex color had the wrong sized array passing to rna_iterator_array_begin
- re-calculating tessface's would clear them if they were already created (own mistake)
- ED_mesh_color_add initialized tessface vertex colors from the loop color array

also made rna's work like
where layers can be added as long as polygons are not present.

9 years agoRemove unused parameter from multires_dm_create_from_derived.
Nicholas Bishop [Thu, 15 Mar 2012 04:08:57 +0000 (04:08 +0000)]
Remove unused parameter from multires_dm_create_from_derived.

9 years agorevert r44887, changes were OK but caused too many problems, better do this as a...
Campbell Barton [Thu, 15 Mar 2012 03:50:52 +0000 (03:50 +0000)]
revert r44887, changes were OK but caused too many problems, better do this as a smaller patch. broke building docs -
- examples/ svn directory was being removed since it assumed an out-of-source build.
- include references somehow stopped working (didnt find why).

also fixed an unrelated error with building docs in

9 years agofix [#30542] Shear Vertical Seg Faults Blender
Campbell Barton [Thu, 15 Mar 2012 00:57:14 +0000 (00:57 +0000)]
fix [#30542] Shear Vertical Seg Faults Blender
honor the T_FREE_CUSTOMDATA flag.

9 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/ -- -p bmesh* -l -o ./python_api -B -P -R -L

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

9 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)

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

9 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

9 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).

9 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.

9 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.

9 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

9 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

9 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.

9 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.

9 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.

9 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

9 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.


Code review:

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

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

  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.

9 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

  bm.select_history = vert, face, edge


9 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

9 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.

9 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.

9 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).

9 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.

9 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

9 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.

9 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.

9 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)

9 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

9 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.

9 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.

9 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)

9 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.

9 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.

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

9 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.)

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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.

9 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.

9 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.

9 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

9 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.

9 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.

9 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.).

9 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.

9 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.

9 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 were also occasionally missed.

9 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)

9 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.

9 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.

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

9 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.

9 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.

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

9 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.

9 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.

9 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

9 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.

9 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.

9 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.

9 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).

9 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