blender.git
7 years agoadd bmesh.free() to example & template
Campbell Barton [Sat, 1 Dec 2012 07:16:08 +0000 (07:16 +0000)]
add bmesh.free() to example & template

7 years agofix for bug in console indent, was not copying the null terminator.
Campbell Barton [Sat, 1 Dec 2012 06:29:04 +0000 (06:29 +0000)]
fix for bug in console indent, was not copying the null terminator.
also add assert to catch this case more quickly.

7 years agoBevel: fix spike in suzanne, bug 33354.
Howard Trickey [Sat, 1 Dec 2012 03:26:57 +0000 (03:26 +0000)]
Bevel: fix spike in suzanne, bug 33354.
Non-planar faces made some of the meet point code not work well,
so now calculate local face norms.

7 years agofix [#33363] Text editor undo fail
Justin Dailey [Fri, 30 Nov 2012 22:46:28 +0000 (22:46 +0000)]
fix [#33363] Text editor undo fail

7 years agoFix #33364: cycles tile rendering artifacts.
Brecht Van Lommel [Fri, 30 Nov 2012 18:55:04 +0000 (18:55 +0000)]
Fix #33364: cycles tile rendering artifacts.

7 years agoFix transfer weight tool enum properties all showing question mark icons,
Brecht Van Lommel [Fri, 30 Nov 2012 18:54:56 +0000 (18:54 +0000)]
Fix transfer weight tool enum properties all showing question mark icons,
these should have no icons.

7 years agofix for various asserts running operator tests - not likely any of these would cause...
Campbell Barton [Fri, 30 Nov 2012 16:41:43 +0000 (16:41 +0000)]
fix for various asserts running operator tests - not likely any of these would cause real user bugs though.

7 years agofix for another error in my own recent commit, beauty fill crashed.
Campbell Barton [Fri, 30 Nov 2012 16:15:49 +0000 (16:15 +0000)]
fix for another error in my own recent commit, beauty fill crashed.

7 years agoRemoved unused register_ lines from for and while loop nodes. These nodes were alread...
Lukas Toenne [Fri, 30 Nov 2012 16:03:34 +0000 (16:03 +0000)]
Removed unused register_ lines from for and while loop nodes. These nodes were already commented out and removed in r51576.

7 years agofix own mistake in recent commit - entering editmode with a shape key crashed.
Campbell Barton [Fri, 30 Nov 2012 14:27:25 +0000 (14:27 +0000)]
fix own mistake in recent commit - entering editmode with a shape key crashed.

7 years agoFix #33357: Strip modificator Bright/Contrast doesn't work correct for byte images
Sergey Sharybin [Fri, 30 Nov 2012 13:42:52 +0000 (13:42 +0000)]
Fix #33357: Strip modificator Bright/Contrast doesn't work correct for byte images

7 years agoMap Range: added the same infinity clamping for Z buffer as normalize node.
Sergey Sharybin [Fri, 30 Nov 2012 13:17:19 +0000 (13:17 +0000)]
Map Range: added the same infinity clamping for Z buffer as normalize node.

Think should be pretty much harmless since if this node was used for buffers
with infinities it already showed artifacts. Now it should be more useful for
mapping Z buffers.

7 years agoNormalize node: clamp infinities to 0/1 (depending on sign)
Sergey Sharybin [Fri, 30 Nov 2012 12:48:30 +0000 (12:48 +0000)]
Normalize node: clamp infinities to 0/1 (depending on sign)

The same behavior was in old compositor system and it makes more sense
when you're normalizing Z buffer.

7 years agoFinal render wouldn't set compositor's update_draw callback, so added NULL check
Sergey Sharybin [Fri, 30 Nov 2012 11:26:57 +0000 (11:26 +0000)]
Final render wouldn't set compositor's update_draw callback, so added NULL check

Seems no extra notifiers should be added here.

7 years agoFix #33353: Smoke color problems with adaptive domain
Miika Hamalainen [Fri, 30 Nov 2012 11:01:14 +0000 (11:01 +0000)]
Fix #33353: Smoke color problems with adaptive domain

High resolution cache didn't always read all written data fields which caused colors to get messed up.

7 years agoCompositor should never add notifiers by himself, notifiers should be added
Sergey Sharybin [Fri, 30 Nov 2012 09:12:10 +0000 (09:12 +0000)]
Compositor should never add notifiers by himself, notifiers should be added
from main thread using job update callback.

Added new execution-time callback to bNodeTree which marks job to be updated.

The code here could be a bit not so obvious because in some cases job update
callback need to merge local tree, but it's only needed for old compositor
system which is gonna to be removed soon, so decided not to bother with
cleanup now. Removing old compositor system will also allow to drop stats_draw
callback from bNodeTree.

This should fix following bugs:

7 years agoFix cycles CUDA sm 1.3 build with 32 bit compiler, tweaked voronoi
Brecht Van Lommel [Fri, 30 Nov 2012 07:27:17 +0000 (07:27 +0000)]
Fix cycles CUDA sm 1.3 build with 32 bit compiler, tweaked voronoi
and brick code so that it can be uninlined.

7 years agoadd margin to view fitting view-all/local-view (wasn't obvious with the models I...
Campbell Barton [Fri, 30 Nov 2012 06:55:36 +0000 (06:55 +0000)]
add margin to view fitting view-all/local-view (wasn't obvious with the models I was testing with).

7 years agofix for another glitch caused by r51636, setting the camera view with quad-view enabl...
Campbell Barton [Fri, 30 Nov 2012 06:39:24 +0000 (06:39 +0000)]
fix for another glitch caused by r51636, setting the camera view with quad-view enabled would zoom all non camera views.

Theres no need to draw other views so skip that.

7 years agoFix #33351: cycles OSL not loading grayscale images as RGB correctly.
Brecht Van Lommel [Fri, 30 Nov 2012 06:10:25 +0000 (06:10 +0000)]
Fix #33351: cycles OSL not loading grayscale images as RGB correctly.

7 years agoFix #33347: cycles OSL crash connecting string to vector socket.
Brecht Van Lommel [Fri, 30 Nov 2012 06:10:16 +0000 (06:10 +0000)]
Fix #33347: cycles OSL crash connecting string to vector socket.

7 years agofix for r51636 - making the lens work in ortho mode made view-all and local-view...
Campbell Barton [Fri, 30 Nov 2012 06:10:01 +0000 (06:10 +0000)]
fix for r51636 - making the lens work in ortho mode made view-all and local-view operators give bad zoom levels.

7 years agomake setting local view take the view lens int account.
Campbell Barton [Fri, 30 Nov 2012 05:29:34 +0000 (05:29 +0000)]
make setting local view take the view lens int account.

7 years agomake previous commit work when the camera is locked to the view (in that case use...
Campbell Barton [Fri, 30 Nov 2012 04:40:32 +0000 (04:40 +0000)]
make previous commit work when the camera is locked to the view (in that case use the camera lens, not the viewport lens value).

7 years agofix for view-all operator not taking the view-angle into account.
Campbell Barton [Fri, 30 Nov 2012 04:25:58 +0000 (04:25 +0000)]
fix for view-all operator not taking the view-angle into account.

7 years agoFix render from local view 3d viewport not using lamps in render.
Brecht Van Lommel [Thu, 29 Nov 2012 19:04:33 +0000 (19:04 +0000)]
Fix render from local view 3d viewport not using lamps in render.
Fix missing GLSL updates for objects without materials.

7 years agoremove unneeded mesh->bmesh conversion code that copied BMLoop data in a separate...
Campbell Barton [Thu, 29 Nov 2012 16:36:16 +0000 (16:36 +0000)]
remove unneeded mesh->bmesh conversion code that copied BMLoop data in a separate loop (since there is no longer pre-allocated loop data on the new BMLoops).

7 years agoFix navmesh after recent bmsh api changes.
Sergey Sharybin [Thu, 29 Nov 2012 16:34:09 +0000 (16:34 +0000)]
Fix navmesh after recent bmsh api changes.

7 years agofix [#33029] Applying modifier leaks memory
Campbell Barton [Thu, 29 Nov 2012 16:26:39 +0000 (16:26 +0000)]
fix [#33029] Applying modifier leaks memory

Thanks for Sergey for finding the bug & patching, This fix works a bit differently.
Theres no need to allocate the customdata in the first place - since its written into. So add a flag for vert/edge/face/loop creation functions so they can skip customdata creation.

7 years agoFix cycles motion blur + OSL + object texture coordinates issue.
Brecht Van Lommel [Thu, 29 Nov 2012 16:11:37 +0000 (16:11 +0000)]
Fix cycles motion blur + OSL + object texture coordinates issue.

7 years agofix [#33332] UV follow active quads
Campbell Barton [Thu, 29 Nov 2012 14:02:28 +0000 (14:02 +0000)]
fix [#33332] UV follow active quads
rewrite the script to use bmesh connectivity info.

7 years agoBevel: partial fix for distortion (bug 33280).
Howard Trickey [Thu, 29 Nov 2012 13:54:39 +0000 (13:54 +0000)]
Bevel: partial fix for distortion (bug 33280).
Sometimes it is impossible to have same offset from
both edges that are on angled faces. The fix here
at least doesn't distort the non-beveled part of the
model, and looks much better than before on bug
example, but is still not perfect.

7 years agoFix #33345: Crash when using bpy.ops.sculpt.brush_stroke
Sergey Sharybin [Thu, 29 Nov 2012 13:24:02 +0000 (13:24 +0000)]
Fix #33345: Crash when using bpy.ops.sculpt.brush_stroke

It was kind of a regression in behavior in svn rev46862 which made it so
blender crashes if stroke is done from the script.

It should bring back the behavior back and made it so blender doesn't crash,
however it's probably not full fix and some further work is needed to make
call of stroke operator usable from the addon.

7 years agoFix #33344: cycles motion blur was still crashing on CUDA sm 2.0. Solution now
Brecht Van Lommel [Thu, 29 Nov 2012 13:07:45 +0000 (13:07 +0000)]
Fix #33344: cycles motion blur was still crashing on CUDA sm 2.0. Solution now
is also an optimization, use quaternion nlerp instead of slerp, there's no good
reason to use slerp, and nlerp is faster too.

7 years agoFix compile error with clang.
Daniel Genrich [Thu, 29 Nov 2012 12:22:07 +0000 (12:22 +0000)]
Fix compile error with clang.

Patch by sambler via irc

7 years agowe need 2.8.8 for cmake on mac - patch by Jens Verwiebe
Dalai Felinto [Thu, 29 Nov 2012 10:28:06 +0000 (10:28 +0000)]
we need 2.8.8 for cmake on mac - patch by Jens Verwiebe

7 years agoDependencies Builder: disable LINKSTATIC for OIIO
Sergey Sharybin [Thu, 29 Nov 2012 08:22:02 +0000 (08:22 +0000)]
Dependencies Builder: disable LINKSTATIC for OIIO

It'll likely give issues with system boost libraries in ubuntu/debian due
to this distros doesn't like static linking and not building static libs
with -fPIC flag.

Disabling LINKSTATIC should be quite painless since blender requires the
same image libraries as oiio does.

7 years agopy/bmesh api: add radial prev/next attributes to the loop
Campbell Barton [Thu, 29 Nov 2012 05:54:35 +0000 (05:54 +0000)]
py/bmesh api: add radial prev/next attributes to the loop

7 years agoBGE: Fixing the double-click issue for mouse events too. The previous fix only fixed...
Mitchell Stokes [Thu, 29 Nov 2012 05:21:24 +0000 (05:21 +0000)]
BGE: Fixing the double-click issue for mouse events too. The previous fix only fixed double-click keyboard events.

7 years agobmesh py api: add bmesh.update_edit_mode(), there was no way to redraw the 3d view...
Campbell Barton [Thu, 29 Nov 2012 05:02:06 +0000 (05:02 +0000)]
bmesh py api: add bmesh.update_edit_mode(), there was no way to redraw the 3d view or re-calculate face tessellation from python.

add py template for editing meshes in editmode.

also remove double call to CTX_wm_region which does a string lookup.

7 years agosome minor edits
Campbell Barton [Thu, 29 Nov 2012 03:55:07 +0000 (03:55 +0000)]
some minor edits
- script stub printed resource warning with py3.3 (not closing a file).
- bmesh customdata layer access had bad docstring.
- float/double conversion warnings in sequencer code (use doubles since result is double)
- remove unused var

7 years agobmesh py api: use generic checking macros to see if an object if from the same bmesh.
Campbell Barton [Thu, 29 Nov 2012 03:25:37 +0000 (03:25 +0000)]
bmesh py api: use generic checking macros to see if an object if from the same bmesh.
- was such a common operation so this saves having exceptions set inline all over the place.

7 years agobmesh py api: add BMeshFaceSeq.active attribute- bm.faces.active
Campbell Barton [Thu, 29 Nov 2012 02:44:06 +0000 (02:44 +0000)]
bmesh py api: add BMeshFaceSeq.active attribute- bm.faces.active

7 years agoskip recalculating tessface when adding objects if 'EnterEdit-mode' is disabled.
Campbell Barton [Thu, 29 Nov 2012 02:37:39 +0000 (02:37 +0000)]
skip recalculating tessface when adding objects if 'EnterEdit-mode' is disabled.

7 years agoFix related to #33340: add a warning to bge from_id documentation to not store id()
Brecht Van Lommel [Thu, 29 Nov 2012 01:25:38 +0000 (01:25 +0000)]
Fix related to #33340: add a warning to bge from_id documentation to not store id()
in game object integer properties since it may not fit in 32 bits integers.

7 years agoFix #32900: object motion blur not working on the GPU. To make this work I disabled...
Brecht Van Lommel [Thu, 29 Nov 2012 00:43:50 +0000 (00:43 +0000)]
Fix #32900: object motion blur not working on the GPU. To make this work I disabled motion
blurring of scale animation, probably not a big loss in practice since it's not so common
to animate this, can be added back later.

7 years agoFix #33337: cycles crash with progressive refine and multiple render layers.
Brecht Van Lommel [Wed, 28 Nov 2012 19:57:29 +0000 (19:57 +0000)]
Fix #33337: cycles crash with progressive refine and multiple render layers.

7 years agoSeems cmake in debian squeeze is broken and fails to handle BOOST_ROOT
Sergey Sharybin [Wed, 28 Nov 2012 19:37:37 +0000 (19:37 +0000)]
Seems cmake in debian squeeze is broken and fails to handle BOOST_ROOT

I would recommend using debian-backports repo for cmake

7 years agoFix #33335: cycles SVM closure issue in recent bugfix, incorrectly tagging
Brecht Van Lommel [Wed, 28 Nov 2012 19:13:34 +0000 (19:13 +0000)]
Fix #33335: cycles SVM closure issue in recent bugfix, incorrectly tagging
node as done.

7 years agoMove to Layer: optimization so that the first change in the popup menu does
Brecht Van Lommel [Wed, 28 Nov 2012 16:42:39 +0000 (16:42 +0000)]
Move to Layer: optimization so that the first change in the popup menu does
not do an undo push & undo step, there's no reason this is needed.

In principle this particular operator doesn't ever need an undo on changes,
even for further steps, but that's harder to solve.

7 years agoFix #33334: missing glossy label for OSL phong ramp caused assert.
Brecht Van Lommel [Wed, 28 Nov 2012 16:42:32 +0000 (16:42 +0000)]
Fix #33334: missing glossy label for OSL phong ramp caused assert.

7 years agoFor sure buildbot's release buildflags should include -DNDEBUG,
Sergey Sharybin [Wed, 28 Nov 2012 16:19:45 +0000 (16:19 +0000)]
For sure buildbot's release buildflags should include -DNDEBUG,
otherwise asserts will abort execution for release builds.

7 years agoinclude an example in the api docs for using bmesh operators to make 2 links in a...
Campbell Barton [Wed, 28 Nov 2012 15:08:45 +0000 (15:08 +0000)]
include an example in the api docs for using bmesh operators to make 2 links in a chain.

7 years agobmesh operator py api:
Campbell Barton [Wed, 28 Nov 2012 15:07:57 +0000 (15:07 +0000)]
bmesh operator py api:
- fix for incorrect bmesh operator type-check for mapping slots.
- fix for python causing an assert when invalid args are given.
- fix memory leak with some exceptions.

7 years agofix for minor annoyance - when extruding a circle there would always be one face...
Campbell Barton [Wed, 28 Nov 2012 14:15:54 +0000 (14:15 +0000)]
fix for minor annoyance - when extruding a circle there would always be one face flipped, now edges are all ordered in the same direction.

7 years agoDependency builder: reduce amount of needed sudo commands by checking permissions...
Sergey Sharybin [Wed, 28 Nov 2012 13:34:44 +0000 (13:34 +0000)]
Dependency builder: reduce amount of needed sudo commands by checking permissions for $INST folder

7 years agoDependency builder: fixed sources directory not creating in some cases
Sergey Sharybin [Wed, 28 Nov 2012 13:27:12 +0000 (13:27 +0000)]
Dependency builder: fixed sources directory not creating in some cases

7 years agoFix normal compositing/shader node not showing normal widget.
Brecht Van Lommel [Wed, 28 Nov 2012 13:20:45 +0000 (13:20 +0000)]
Fix normal compositing/shader node not showing normal widget.

It would actually show after save and reload, the subtype and min/max were
not properly initialized for node output sockets.

7 years agoTypo fix in comment. No functional changes.
Sergey Sharybin [Wed, 28 Nov 2012 09:49:26 +0000 (09:49 +0000)]
Typo fix in comment. No functional changes.

7 years agoFix #33330: Proxies are not built in Sequencer if preview is visible
Sergey Sharybin [Wed, 28 Nov 2012 09:36:23 +0000 (09:36 +0000)]
Fix #33330: Proxies are not built in Sequencer if preview is visible

Was own regression when was solving conflict between sequencer preview
and compositor jobs. Made it so now only compositor jobs are being
killed from sequencer preview.

7 years agofix/workaround [#33309] small + in few windows
Campbell Barton [Wed, 28 Nov 2012 09:10:27 +0000 (09:10 +0000)]
fix/workaround [#33309] small + in few windows
text/image/compo were missing '+', toggling adds them.

7 years agoFix #33295: Shifted movie strip when rendering <100% resolution for strip with comple...
Sergey Sharybin [Wed, 28 Nov 2012 09:01:00 +0000 (09:01 +0000)]
Fix #33295: Shifted movie strip when rendering <100% resolution for strip with complex transform

That was kind of a regression since fix for #32091: Crop and offset coordinates changes proxy
render settings on image strips, which is now fixed in other way.

Namely Offset/Crop values are filling in 100% scene resolution values, but getting scaled to
proxy / scene percentage values.

7 years agotypo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN...
Campbell Barton [Wed, 28 Nov 2012 06:43:04 +0000 (06:43 +0000)]
typo's and some style cleanup, also added asserts into BLI_vsnprintf and BLI_sprintfN when invalid args are given.

7 years agoCopy face attributes when creating new faces in BMO_symmetrize
Nicholas Bishop [Wed, 28 Nov 2012 05:07:04 +0000 (05:07 +0000)]
Copy face attributes when creating new faces in BMO_symmetrize

Fixes bug [#33269] Symmetrize doesnt honor shadesmooth
projects.blender.org/tracker/index.php?func=detail&aid=33269&group_id=9&atid=498

7 years agofix [#33320] Decimate modifer in collapse is inconsistent when limiting to a vertex...
Campbell Barton [Wed, 28 Nov 2012 02:49:06 +0000 (02:49 +0000)]
fix [#33320] Decimate modifer in collapse is inconsistent when limiting to a vertex group

7 years agobmesh operator api reference - add in 'bmesh' arg at the start of each operator,...
Campbell Barton [Wed, 28 Nov 2012 01:14:11 +0000 (01:14 +0000)]
bmesh operator api reference - add in 'bmesh' arg at the start of each operator, also use :class: references.

7 years agouse radians for 'spin' bmesh operator (since the rest of the py api uses radians...
Campbell Barton [Wed, 28 Nov 2012 00:47:33 +0000 (00:47 +0000)]
use radians for 'spin' bmesh operator (since the rest of the py api uses radians). also rename BMO_OP_SLOT_SUBTYPE_MAP_FLOAT -> BMO_OP_SLOT_SUBTYPE_MAP_FLT for consistency.

7 years agobmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge...
Campbell Barton [Wed, 28 Nov 2012 00:16:06 +0000 (00:16 +0000)]
bmesh operator naming - use clearer names for args eg: (mat -> matrix, use_singleedge -> use_single_edge)

also remove duplicate docs for operator arg formatting.

7 years agoimprove docstring for BMO_op_vinitf().
Campbell Barton [Tue, 27 Nov 2012 23:37:02 +0000 (23:37 +0000)]
improve docstring for BMO_op_vinitf().

7 years agoGPU: remove GPU Mipmap Generation option and just always enable it, it's an old
Brecht Van Lommel [Tue, 27 Nov 2012 22:51:28 +0000 (22:51 +0000)]
GPU: remove GPU Mipmap Generation option and just always enable it, it's an old
OpenGL 1.4 feature that is stable, there's no reason not to use it. Also fixed
GPU mipmap generation not working in the game player.

7 years agoFix #33328: cycles not rendering dupliframes, needs an exception.
Brecht Van Lommel [Tue, 27 Nov 2012 21:47:55 +0000 (21:47 +0000)]
Fix #33328: cycles not rendering dupliframes, needs an exception.

7 years agoFix #33168: collada export added incorrect -material postfix to material names.
Brecht Van Lommel [Tue, 27 Nov 2012 21:26:06 +0000 (21:26 +0000)]
Fix #33168: collada export added incorrect -material postfix to material names.

In the bug report it was also mentioned that special characters should be
preserved for names, however the collada 1.4 specification does not allow this.
Version 1.5 does, but we are still writing 1.4 files and files with such special
characters will then fail to open in some applications.

7 years agoFix #33326: outliner numpad minus collapse followed by numpad plus expand did not...
Brecht Van Lommel [Tue, 27 Nov 2012 20:12:00 +0000 (20:12 +0000)]
Fix #33326: outliner numpad minus collapse followed by numpad plus expand did not work.

7 years agoFix #33324: Auto IK not working after recent changes. iTaSC it seems never worked
Brecht Van Lommel [Tue, 27 Nov 2012 20:07:12 +0000 (20:07 +0000)]
Fix #33324: Auto IK not working after recent changes. iTaSC it seems never worked
with Auto IK, now that's fixed too.

7 years agoBGE: Fix for [#33027] "logic.keyboard polling rate extremely low" reported by Josiah...
Mitchell Stokes [Tue, 27 Nov 2012 17:41:39 +0000 (17:41 +0000)]
BGE: Fix for [#33027] "logic.keyboard polling rate extremely low" reported by Josiah Lane (solarlune). The embedded player now treats KM_DBL_CLICK the same as KM_PRESS.

7 years agoCMake: hide some unnecessary LLVM/OSL/EXR prints.
Brecht Van Lommel [Tue, 27 Nov 2012 17:30:46 +0000 (17:30 +0000)]
CMake: hide some unnecessary LLVM/OSL/EXR prints.

7 years agofix crash with path conversion, not all materials have nodes
Antony Riakiotakis [Tue, 27 Nov 2012 17:21:58 +0000 (17:21 +0000)]
fix crash with path conversion, not all materials have nodes

7 years agoadd osl shader scripts to bpath walker (so making paths absolute or relative applies...
Campbell Barton [Tue, 27 Nov 2012 16:19:52 +0000 (16:19 +0000)]
add osl shader scripts to bpath walker (so making paths absolute or relative applies to shader paths too).
also remove "RNA_types.h" include from BKE_nodes.h.

7 years agoMove to layer: remove the OK button and make it apply immediately like it did
Brecht Van Lommel [Tue, 27 Nov 2012 16:02:15 +0000 (16:02 +0000)]
Move to layer: remove the OK button and make it apply immediately like it did
before, is much nicer workflow. Now only if global undo is disabled will the
OK button show.

This is also a more generic fix for #26891 that solves other operators that
were also broken with global undo disabled.

7 years agoFix cycles OSL shader loading warnings after recent bugfix.
Brecht Van Lommel [Tue, 27 Nov 2012 16:02:12 +0000 (16:02 +0000)]
Fix cycles OSL shader loading warnings after recent bugfix.

7 years agoFix part of #32248: transform with a size limit constraint did not preserve negative...
Brecht Van Lommel [Tue, 27 Nov 2012 16:02:03 +0000 (16:02 +0000)]
Fix part of #32248: transform with a size limit constraint did not preserve negative scale.

7 years agoreplace and exception macro's for static functions and fix some bad assumptions.
Campbell Barton [Tue, 27 Nov 2012 15:26:10 +0000 (15:26 +0000)]
replace and exception macro's for static functions and fix some bad assumptions.

7 years agoCamera Tracking: fixed camera solve operator not updating scene camera
Sergey Sharybin [Tue, 27 Nov 2012 15:10:22 +0000 (15:10 +0000)]
Camera Tracking: fixed camera solve operator not updating scene camera

Was own regression caused by fix of crash when non-camera object is used
as scene camera.

7 years agosplit py->slot & slot->py into their own functions & fixed some mistakes with conversion.
Campbell Barton [Tue, 27 Nov 2012 14:25:38 +0000 (14:25 +0000)]
split py->slot & slot->py into their own functions & fixed some mistakes with conversion.

7 years agomove bmesh operator calling into its own file.
Campbell Barton [Tue, 27 Nov 2012 13:54:34 +0000 (13:54 +0000)]
move bmesh operator calling into its own file.

7 years agoadd empty files (will move bmesh operator calling here)
Campbell Barton [Tue, 27 Nov 2012 13:45:28 +0000 (13:45 +0000)]
add empty files (will move bmesh operator calling here)

7 years agoOSX/scons: introducing and testing an unexported_symbols_list to prevent clashes...
Jens Verwiebe [Tue, 27 Nov 2012 11:38:59 +0000 (11:38 +0000)]
OSX/scons: introducing and testing an unexported_symbols_list to prevent clashes, todo: cmake

7 years agoMasking: fixed bug with vector handles not updating when CV is parented to a motion...
Sergey Sharybin [Tue, 27 Nov 2012 11:28:39 +0000 (11:28 +0000)]
Masking: fixed bug with vector handles not updating when CV is parented to a motion track.

7 years agoMark boost symbols as local
Sergey Sharybin [Tue, 27 Nov 2012 10:24:18 +0000 (10:24 +0000)]
Mark boost symbols as local

This was needed to resolve conflict between blender's and pylux's boost symbols.

Ideally visibility should be changed to local in lux as well, since if blender is
dynamically linked against boost it'll still crash.

Anyway, having this change wouldn't hurt and will solve issues with lux for official
linux builds at least.

7 years agoremove unmaintained eltopo, keeping scons/cmake entries, but commenting out user...
Campbell Barton [Tue, 27 Nov 2012 09:52:20 +0000 (09:52 +0000)]
remove unmaintained eltopo, keeping scons/cmake entries, but commenting out user visible config to make branch merging less of a hassle.

7 years agonew bevel was still referring to old property name (holding shift wasnt working while...
Campbell Barton [Tue, 27 Nov 2012 09:47:22 +0000 (09:47 +0000)]
new bevel was still referring to old property name (holding shift wasnt working while beveling).

7 years agouse clearer names for 'single' bmesh operator args & add '%e' to BMO_op_vinitf comments.
Campbell Barton [Tue, 27 Nov 2012 09:41:08 +0000 (09:41 +0000)]
use clearer names for 'single' bmesh operator args & add '%e' to BMO_op_vinitf comments.

7 years agopy/bmesh api - add support for single item buffers (odd feature but used quite a...
Campbell Barton [Tue, 27 Nov 2012 09:21:57 +0000 (09:21 +0000)]
py/bmesh api - add support for single item buffers (odd feature but used quite a bit with bmesh operators).
also add utility functions BMO_slot_buffer_from_single(), BMO_slot_buffer_get_single()

7 years agoFix crash opening .blend file with missing lib linked scene and no local scene.
Brecht Van Lommel [Tue, 27 Nov 2012 08:19:34 +0000 (08:19 +0000)]
Fix crash opening .blend file with missing lib linked scene and no local scene.

7 years agogenerate api reference for 'bmesh.ops', restructured text is extracted from bmesh_opd...
Campbell Barton [Tue, 27 Nov 2012 06:56:51 +0000 (06:56 +0000)]
generate api reference for 'bmesh.ops', restructured text is extracted from bmesh_opdefines.c.

see:
http://www.blender.org/documentation/blender_python_api_2_64_9/bmesh.ops.html

7 years agocode cleanup: bmesh operator comments, readying for doc-generation.
Campbell Barton [Tue, 27 Nov 2012 06:53:26 +0000 (06:53 +0000)]
code cleanup: bmesh operator comments, readying for doc-generation.

7 years agofix for asserts added in own recent commit with more strict type-checking
Campbell Barton [Tue, 27 Nov 2012 02:34:40 +0000 (02:34 +0000)]
fix for asserts added in own recent commit with more strict type-checking
- BMO_slot_copy now only copies compatible elements.

other minor changes
- don't use text.format(...), convention for UI scripts is C style string formatting.
- rename bmo_edgenet_prepare --> bmo_edgenet_prepare_exec
- float/double warning in bevel.

7 years agoBevel: better round profile code.
Howard Trickey [Tue, 27 Nov 2012 01:07:22 +0000 (01:07 +0000)]
Bevel: better round profile code.
Easier to understand, no touchy intersect code, and works
even when arms aren't equal length.
Old code ifdef'd for now, will remove soon.

7 years agobmesh/py operator api:
Campbell Barton [Tue, 27 Nov 2012 00:50:59 +0000 (00:50 +0000)]
bmesh/py operator api:
add type checking for element buffers, there was nothing stopping python from passing any element type into an argument when in some cases only verts/edges/faces were expected.
now operator args define which types they support.

7 years agofix/workaround [#33281] script goes into not responding
Campbell Barton [Mon, 26 Nov 2012 23:18:04 +0000 (23:18 +0000)]
fix/workaround [#33281] script goes into not responding

scanfill remove-doubles pass assumes ordered edges (as with curves), otherwise it can hang.
workaround this problem by skipping removing-doubles for mesh ngons, since this isnt such a common case as it is with curves and we can just not support it.