blender.git
7 years agorename module to something less generic.
Campbell Barton [Tue, 3 Jul 2012 11:32:42 +0000 (11:32 +0000)]
rename module to something less generic.

7 years agofix (actually nasty workaround), for groups incorrectly drawing in the object panel...
Campbell Barton [Tue, 3 Jul 2012 10:32:10 +0000 (10:32 +0000)]
fix (actually nasty workaround), for groups incorrectly drawing in the object panel when the blend file has naming collisions with library data.

also minor style cleanup in bpy_rna.c

7 years agoOptimized the area of interest of the lensdistortion node.
Jeroen Bakker [Tue, 3 Jul 2012 09:05:19 +0000 (09:05 +0000)]
Optimized the area of interest of the lensdistortion node.
This will have faster feedback to the user, as lensdistortion is mostly
a node that is located at the end of a composite

7 years agoStyle edit (mostly), use """ for docstrings (not ''').
Bastien Montagne [Tue, 3 Jul 2012 09:02:41 +0000 (09:02 +0000)]
Style edit (mostly), use """ for docstrings (not ''').

Should also fix the broken py ops tips...

7 years agoCheck for nullpointers.
Jeroen Bakker [Tue, 3 Jul 2012 08:54:07 +0000 (08:54 +0000)]
Check for nullpointers.
The ID of group nodes are not always filled.

7 years agofix for memory leak in BKE_mesh_ensure_navmesh(), it would add 2 navmesh layers,...
Campbell Barton [Tue, 3 Jul 2012 08:16:14 +0000 (08:16 +0000)]
fix for memory leak in BKE_mesh_ensure_navmesh(), it would add 2 navmesh layers, once referencing the other.

7 years agofix for smoke writing uninitialized values to pointcache, not a big deal since they...
Campbell Barton [Tue, 3 Jul 2012 06:45:43 +0000 (06:45 +0000)]
fix for smoke writing uninitialized values to pointcache, not a big deal since they are ignored on reading.

7 years agoBugfix: Fix crashes with empty material slots
Joshua Leung [Tue, 3 Jul 2012 05:46:44 +0000 (05:46 +0000)]
Bugfix: Fix crashes with empty material slots

7 years agoFollowup for r.48515
Joshua Leung [Tue, 3 Jul 2012 05:30:19 +0000 (05:30 +0000)]
Followup for r.48515

* Removed material driver creation hack. However, the textures one remains, as
texture eval isn't ready yet
* Shuffled some code

7 years agoBugfix [#31834] Cycles materials cannot be manipulated using drivers
Joshua Leung [Tue, 3 Jul 2012 05:11:37 +0000 (05:11 +0000)]
Bugfix [#31834] Cycles materials cannot be manipulated using drivers

Until now, there was never any code for making drivers on materials get
recalculated when their dependencies were changed. However, since changing
material colors with drivers is something that is quite common, a workaround was
introduced to ensure that materials could still be driven (albeit with the
relevant drivers rooted at object level). This worked well enough so far with
traditional materials - though it was sometimes clunky and confusing for some
users - and would have been ok to tide us over until the depsgraph refactor.

The introduction of Cycles changed this, as it has in many other ways. Now that
people use Cycles to render, they'll need to drive the material colors through
the nested nodetree (and other things nested deeply within that). However, this
is much more difficult to generate hacks to create the relevant paths needed to
work around the problem.

== This Commit... ==
* Adds a recursive driver calculation step to the BKE_object_handle_update()
(which gets called whenever the depsgraph has finished tagging object datablocks
for updates), which goes through calculating the drivers attached to the object
(and the materials/nodetrees attached to that). This case gets handled everytime
the object is tagged as needing updates to its "data" (OB_RECALC_DATA)

* When building the depsgraph, every dependency that the drivers there have are
treated as if they were attached to object.data instead. This should trick the
depsgraph into tagging OB_RECALC_DATA to force recalculation of drivers, at the
expense perhaps of modifiers getting recalculated again.

== Todo ==
* The old workarounds noted are still in place (will be commented out in the
next commit). This fix renders at least the material case redundant, although
the textures case still needs a bit more work.

* Check on whether similar hacks can be done for other datablock combinations

* So far, only simple test cases have been tested. There is probably some
performance penalty for heavy setups still (due to need to traverse down all
parts of material/node hierarchy to find things that need updates). If there
really is a problem here, we could try introducing some tags to limit this
traversal (which get added at depsgraph build time).  <--- USER TESTING
NEEDED!!!

7 years agoBugfix [#31976] Bone Group Custom color set is not respected when creating an
Joshua Leung [Tue, 3 Jul 2012 01:15:03 +0000 (01:15 +0000)]
Bugfix [#31976] Bone Group Custom color set is not respected when creating an
Action

Custom color set colors were not getting copied over when creating new action
groups. Instead, a "default set" was initialised for use instead.

7 years agoNice update to xgettext replacement, now finds 608 strings, think this covers all...
Bastien Montagne [Tue, 3 Jul 2012 01:11:59 +0000 (01:11 +0000)]
Nice update to xgettext replacement, now finds 608 strings, think this covers all cases...

Will run a complete test case tomorrow, regexes killed me this evening!

7 years agoadd bmesh/python operator support for vector and matrix args.
Campbell Barton [Mon, 2 Jul 2012 20:28:43 +0000 (20:28 +0000)]
add bmesh/python operator support for vector and matrix args.

also rename BMO_OP_SLOT_PNT to BMO_OP_SLOT_PTR (matches RNA and sounds less like 'point')

7 years agoAdding (moving from bf-translation) the i18n python module. This will make it availab...
Bastien Montagne [Mon, 2 Jul 2012 19:51:06 +0000 (19:51 +0000)]
Adding (moving from bf-translation) the i18n python module. This will make it available for future "UI Translation" addon, and probably other UI-related tools as well.

Notes:
* This is a somewhat reworked version of what is currently in bf-translation's trunk/po/tools, not yet fully functionnal (well, 95% is ;) ) nor fully tested. ultimately, it will replace it (being "svn-linked" in bf-translation).
* Added feature: more complete/strict tests (yet some work to be done here).
* Added spell checking (huge spellcheck commit incomming...).
* Trying to get rid of xgettext itself (should e.g. allow us to use #defines as contexts, among other things...). But currently captures less strings, work needed here too.

Please note this includes libfribidi.dll, as it is hard to find it for windows (unixes should have no problems here).

7 years agofix for crash getting GROUP_OT_objects_remove's props without a context (own fault)
Campbell Barton [Mon, 2 Jul 2012 17:12:41 +0000 (17:12 +0000)]
fix for crash getting GROUP_OT_objects_remove's props without a context (own fault)

7 years agoFix for image texture node in cycles. The button draw function has to use the image...
Lukas Toenne [Mon, 2 Jul 2012 16:27:09 +0000 (16:27 +0000)]
Fix for image texture node in cycles. The button draw function has to use the image user pointer directly for property buttons, unlike the compositor image node which redefines image user properties on the node itself to ensure proper updates.

7 years agoLimit out of screen tiles to be scheduled.
Jeroen Bakker [Mon, 2 Jul 2012 15:26:47 +0000 (15:26 +0000)]
Limit out of screen tiles to be scheduled.

7 years agoSmoke Bugfix: Turbulence was removed.
Daniel Genrich [Mon, 2 Jul 2012 13:41:51 +0000 (13:41 +0000)]
Smoke Bugfix: Turbulence was removed.

7 years agoBugfix for wrong / bad vorticity forming weird banding on the y and z axis.
Daniel Genrich [Mon, 2 Jul 2012 12:55:23 +0000 (12:55 +0000)]
Bugfix for wrong / bad vorticity forming weird banding on the y and z axis.

Part of Blender Smoke Develeopment Milestone III.

7 years agoFix #31970: Crash, whith Sequencer Swap Data-Function
Sergey Sharybin [Mon, 2 Jul 2012 10:41:56 +0000 (10:41 +0000)]
Fix #31970: Crash, whith Sequencer Swap Data-Function

7 years agoValidate mesh selection stack in mesh_validate function
Sergey Sharybin [Mon, 2 Jul 2012 09:57:31 +0000 (09:57 +0000)]
Validate mesh selection stack in mesh_validate function

Related on #31944: Blender crashes on switching to mesh edit mode

7 years agoFix #31961: Grease Pencil in VSE don't save the data
Sergey Sharybin [Mon, 2 Jul 2012 08:30:29 +0000 (08:30 +0000)]
Fix #31961: Grease Pencil in VSE don't save the data

Issue was caused by linking to grease pencil from direct_link* function
which lead to NULL GP data because it's being read a way later.

Link to GP data in lib_link* instead.

7 years agoFix related on #31984: Multires Displacement Bake creates ripples for each subidived...
Sergey Sharybin [Mon, 2 Jul 2012 07:40:25 +0000 (07:40 +0000)]
Fix related on #31984: Multires Displacement Bake creates ripples for each subidived face

Skip applying subdivisions in cases when low resolution mesh is disabled
and baking happens from higher level to higher level/

7 years agocode cleanup: minor edits
Campbell Barton [Sun, 1 Jul 2012 22:19:19 +0000 (22:19 +0000)]
code cleanup: minor edits

7 years agodon't disable cycles when OIIO isnt found, instead throw an error, annoying when...
Campbell Barton [Sun, 1 Jul 2012 15:26:25 +0000 (15:26 +0000)]
don't disable cycles when OIIO isnt found, instead throw an error, annoying when full build is done and later find cycles isn't on.

7 years agoanother fix for error in the view raycast template
Campbell Barton [Sun, 1 Jul 2012 13:57:32 +0000 (13:57 +0000)]
another fix for error in the view raycast template

7 years agofix for 2 errors in the template
Campbell Barton [Sun, 1 Jul 2012 11:05:11 +0000 (11:05 +0000)]
fix for 2 errors in the template

7 years agostyle cleanup
Campbell Barton [Sun, 1 Jul 2012 09:54:44 +0000 (09:54 +0000)]
style cleanup

7 years agopython template for doing mouse ray casts to pick objects in the 3d viewport.
Campbell Barton [Sun, 1 Jul 2012 08:46:02 +0000 (08:46 +0000)]
python template for doing mouse ray casts to pick objects in the 3d viewport.

7 years agonew function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
Campbell Barton [Sun, 1 Jul 2012 08:06:01 +0000 (08:06 +0000)]
new function: bpy.extras.view3d_utils.region_2d_to_origin_3d()
useful for doing ray casts from the view.

7 years agostyle cleanup: remove '.' from docstring endings and use quotes for descriptions.
Campbell Barton [Sun, 1 Jul 2012 07:55:44 +0000 (07:55 +0000)]
style cleanup: remove '.' from docstring endings and use quotes for descriptions.

7 years agoA little bit of cleanup for the new DXT code:
Mitchell Stokes [Sun, 1 Jul 2012 02:47:34 +0000 (02:47 +0000)]
A little bit of cleanup for the new DXT code:
  * Using TRUE/FALSE instead of 1/0
  * Checking to make sure GL_EXT_texture_compression_s3tc is supported
  * Removing some debug error checking

7 years agostyle cleanup: comments
Campbell Barton [Sat, 30 Jun 2012 22:49:33 +0000 (22:49 +0000)]
style cleanup: comments

7 years agoScons:
Thomas Dinges [Sat, 30 Jun 2012 22:44:36 +0000 (22:44 +0000)]
Scons:
* WITH_BF_COMPOSITOR option, to disable tile compositor compilation.
* Removed unused SCons file.

7 years agofix for own error renaming bmesh operator dupe
Campbell Barton [Sat, 30 Jun 2012 21:19:12 +0000 (21:19 +0000)]
fix  for own error renaming bmesh operator dupe

7 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:24:28 +0000 (18:24 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49 - Updated cmake file.

7 years agoCycles / Boost:
Thomas Dinges [Sat, 30 Jun 2012 18:20:14 +0000 (18:20 +0000)]
Cycles / Boost:
* Windows (msvc 2008) is now using Boost 1.49

7 years agocode cleanup: some vars were assigned when not needed
Campbell Barton [Sat, 30 Jun 2012 17:54:55 +0000 (17:54 +0000)]
code cleanup: some vars were assigned when not needed

7 years agofix for some build warnings.
Campbell Barton [Sat, 30 Jun 2012 16:56:23 +0000 (16:56 +0000)]
fix for some build warnings.

7 years agorename bmesh ops since they are exposed in an api now.
Campbell Barton [Sat, 30 Jun 2012 15:27:13 +0000 (15:27 +0000)]
rename bmesh ops since they are exposed in an api now.

7 years agodisable opencl when compo is disabled.
Campbell Barton [Sat, 30 Jun 2012 14:28:45 +0000 (14:28 +0000)]
disable opencl when compo is disabled.

7 years agothe compositor optional for cmake: WITH_COMPOSITOR
Campbell Barton [Sat, 30 Jun 2012 14:14:22 +0000 (14:14 +0000)]
the compositor optional for cmake: WITH_COMPOSITOR

7 years agoadd support for passing lists of verts/edges/faces to bmesh operators
Campbell Barton [Sat, 30 Jun 2012 12:58:04 +0000 (12:58 +0000)]
add support for passing lists of verts/edges/faces to bmesh operators

7 years agoall bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
Campbell Barton [Sat, 30 Jun 2012 11:14:10 +0000 (11:14 +0000)]
all bmesh operators can now be accessed from bmesh.ops.* using a generic wrapper,
argument parsing still needs to have support added for vector, matrix and element types.

7 years agoGPU_upload_dxt_texture failed to compile if WITH_DDS was not defined
Jason Wilkins [Sat, 30 Jun 2012 10:31:25 +0000 (10:31 +0000)]
GPU_upload_dxt_texture failed to compile if WITH_DDS was not defined

7 years agocode cleanup: rename some members of bmesh operators, 'slots' is a C++ keyword which...
Campbell Barton [Sat, 30 Jun 2012 09:55:04 +0000 (09:55 +0000)]
code cleanup: rename some members of bmesh operators, 'slots' is a C++ keyword which confuses some IDE's.
also added missing BMO_op_vinitf args to comments.

7 years agoFinally committing support for compressed textures on the GPU (DDS+DXT). This patch...
Mitchell Stokes [Sat, 30 Jun 2012 04:34:34 +0000 (04:34 +0000)]
Finally committing support for compressed textures on the GPU (DDS+DXT). This patch started out as a patch by me, then cleaned up by Kupoman during his work on Cucumber.

One important thing to keep in mind when using this feature is that you'll need to flip your textures vertically (both the GIMP and Photoshop DDS tools I've seen have support for this on export). This is a quirk in using a texture format originally made for DirectX/DirectDraw, and flipping the compressed data is a real headache. Another quick fix for this issue is to change the Y value for the Size in the Mapping panel in the Texture properties to -1 (default is 1).

7 years agomark modifier operators that only work in the UI as internal, otherwise this causes...
Campbell Barton [Fri, 29 Jun 2012 23:09:19 +0000 (23:09 +0000)]
mark modifier operators that only work in the UI as internal, otherwise this causes some confusion when they do nothing when accessed from the spacebar search menu.

7 years agodon't close operator dialogs when the mouse moves outside of them. this is very annoy...
Campbell Barton [Fri, 29 Jun 2012 20:29:13 +0000 (20:29 +0000)]
don't close operator dialogs when the mouse moves outside of them. this is very annoying when you spend time to enter in many values, escape, click-out-side still quits.

7 years agogame engine & viewport, dont show collision bounds for convex hull or triangle meshes...
Campbell Barton [Fri, 29 Jun 2012 20:26:07 +0000 (20:26 +0000)]
game engine & viewport, dont show collision bounds for convex hull or triangle meshes - really visual distraction and they are not used,

7 years agoExtended modes for snapping in the node editor.
Lukas Toenne [Fri, 29 Jun 2012 14:34:46 +0000 (14:34 +0000)]
Extended modes for snapping in the node editor.
The transform operators in nodes will now use the unselected nodes to generate snapping points. Unlike object snapping, node snapping works for the x/y axes separately and snaps node borders to same borders of unselected nodes. The sensitive area for node borders extends over the whole view2D range, to enable simple alignment of nodes in both x and y direction.

For snap points in the node editor an additional enum value is stored to indicate the type of node border (left/right/top/bottom). This works as a constraint on possible node alignments: only same border types align with each other.

7 years agoAdded command line option "--debug-jobs"
Sergey Sharybin [Fri, 29 Jun 2012 14:32:25 +0000 (14:32 +0000)]
Added command line option "--debug-jobs"

This option enables time profiling of background jobs, namely it's
measuring run time of the job and prints it to the console.

7 years agoFix [#31939] Loop cutting a self intersecting face loop
Bastien Montagne [Fri, 29 Jun 2012 13:55:25 +0000 (13:55 +0000)]
Fix [#31939] Loop cutting a self intersecting face loop

Enabled use_gridfill for edgesubdivide called by loopcut. This will break edgeslide in this specific case (intersecting faceloop), but imho makes more sense this way than the other. Very easy to revert anyway, and this should only affect this specific cornercase.

7 years agoFixing a bug found while checking "[#31937] UV/Image Editor: Copy Mirrored UV Coords...
Bastien Montagne [Fri, 29 Jun 2012 12:41:39 +0000 (12:41 +0000)]
Fixing a bug found while checking "[#31937] UV/Image Editor: Copy Mirrored UV Coords" (which isn't a bug at all).

The tool works OK, except it was messing vertices' order of polys, often giving ugly results! Now only using sorted list of vertices indices to find matching polys.

7 years agoRelated to [#31936] Mesh saved in 2.63 with legacy format have holes instead ngons
Bastien Montagne [Fri, 29 Jun 2012 11:59:47 +0000 (11:59 +0000)]
Related to [#31936] Mesh saved in 2.63 with legacy format have holes instead ngons

Make clear in this option's tooltip that it only saves tris and quads, no implicit triangulation of other ngons, which are lost!

7 years agoFix #31953: Forcefield Texture using image file, gradient mode not working
Miika Hamalainen [Fri, 29 Jun 2012 11:44:46 +0000 (11:44 +0000)]
Fix #31953: Forcefield Texture using image file, gradient mode not working

7 years agoFix #31948: dynamic paint substeps do not work for objects parented to armatures
Miika Hamalainen [Fri, 29 Jun 2012 11:19:29 +0000 (11:19 +0000)]
Fix #31948: dynamic paint substeps do not work for objects parented to armatures

7 years agoFix compile error
Antony Riakiotakis [Fri, 29 Jun 2012 11:15:02 +0000 (11:15 +0000)]
Fix compile error

7 years agofix for crash scaling an image
Campbell Barton [Fri, 29 Jun 2012 10:52:37 +0000 (10:52 +0000)]
fix for crash scaling an image

7 years agoFix #31951 Subdivide with multires splits uvs.
Antony Riakiotakis [Fri, 29 Jun 2012 10:12:42 +0000 (10:12 +0000)]
Fix #31951 Subdivide with multires splits uvs.

The bug is related to 31581 and the main cause is the small offset that
BM_loop_interp_from_face introduces before calculating barycentric
weights. Solved by only calculating displacement layer.

7 years agocode cleanup: bge builds with clang without warnings / errors.
Campbell Barton [Fri, 29 Jun 2012 09:16:59 +0000 (09:16 +0000)]
code cleanup: bge builds with clang without warnings / errors.

7 years agofix for bug where user scripts path set by an environment variable would write preset...
Campbell Barton [Fri, 29 Jun 2012 08:33:13 +0000 (08:33 +0000)]
fix for bug where user scripts path set by an environment variable would write presets there but not show up in the menu.

7 years agoprint warning if a script in the addons dir has no bl_info.
Campbell Barton [Thu, 28 Jun 2012 19:22:13 +0000 (19:22 +0000)]
print warning if a script in the addons dir has no bl_info.

7 years agoAdd missing brush types to sculpt_tool_name()
Nicholas Bishop [Thu, 28 Jun 2012 19:12:00 +0000 (19:12 +0000)]
Add missing brush types to sculpt_tool_name()

This function is used to name undo pushes in sculpt mode, was missing
some of the newer brush types. Also tweaked the switch statement so
that it will warn for future missing cases and removed extraneous
breaks.

7 years agofix for crash in python getting the image size for a sequence.
Campbell Barton [Thu, 28 Jun 2012 15:34:21 +0000 (15:34 +0000)]
fix for crash in python getting the image size for a sequence.

7 years agorevert part of 48340, it causes uvs across islands to stitch in a different way ...
Antony Riakiotakis [Thu, 28 Jun 2012 15:09:24 +0000 (15:09 +0000)]
revert part of 48340, it causes uvs across islands to stitch in a different way (?) than before

7 years agorecent fix for #31581 could crash when doing edge slide on a mesh with no UV's.
Campbell Barton [Thu, 28 Jun 2012 14:18:04 +0000 (14:18 +0000)]
recent fix for #31581 could crash when doing edge slide on a mesh with no UV's.

7 years agocode cleanup: compile with clang and quiet some warnings.
Campbell Barton [Thu, 28 Jun 2012 12:32:06 +0000 (12:32 +0000)]
code cleanup: compile with clang and quiet some warnings.

7 years agoFix for image node: The button draw function was using the image user pointer for...
Lukas Toenne [Thu, 28 Jun 2012 10:59:40 +0000 (10:59 +0000)]
Fix for image node: The button draw function was using the image user pointer for displaying properties, which does not work correctly. The image node has to redefine image user RNA properties in order to make correct update calls and to have meaningful image layer names. For these properties the node pointer itself has to be used then.

7 years agoFix for [#23375] "texture2D in custom 2D filters can get texture outside of game...
Mitchell Stokes [Thu, 28 Jun 2012 09:37:30 +0000 (09:37 +0000)]
Fix for [#23375] "texture2D in custom 2D filters can get texture outside of game, resulting in ugliness" reported by Jacob F.

The 2D Filter system now only copies the game viewport instead of the whole window. This prevents 2D Filters from grabbing data outside of the game viewport. The textures for 2D filters are now also not forced to be powers of two (if NPOT textures are supported), which can save a little bit of VRAM.

7 years agoFix #31835: OBJ Importer corrupts a model (crash in edit mode)
Sergey Sharybin [Thu, 28 Jun 2012 09:08:11 +0000 (09:08 +0000)]
Fix #31835: OBJ Importer corrupts a model (crash in edit mode)

Added back face validation to BKE_mesh_validate_arrays.

This is needed because some addons (like OBJ importer) are reading
tessfaces and then converting them to ngons and validation of tessfaces
is needed before such a conversion.

Validation of faces would happen only if there's no polys in mesh.

7 years agocode cleanup: cmake buildsystem edits, unused var warnings and better description...
Campbell Barton [Thu, 28 Jun 2012 08:51:02 +0000 (08:51 +0000)]
code cleanup: cmake buildsystem edits, unused var warnings and better description for WITH_PYTHON_MODULE.
also disable workaround for some linux installs.

7 years agoBasic snapping in node transform operator.
Lukas Toenne [Thu, 28 Jun 2012 08:47:22 +0000 (08:47 +0000)]
Basic snapping in node transform operator.

Snapping actually was working already, but grid spacing was set to 1.0, which is basically pixel size in the node editor. Increased this to 1x grid step for fine snapping and 5x grid step for rough snapping.

Grid drawing in node editor now draws 2 levels in slightly different shades to indicate the different snapping modes better.

Node editor also supports the general use_snap tool setting to enable automatic snapping during transform. For now only the incremental snapping is supported, in future could be extended to enable alignment between nodes in a number of ways.

7 years agodocument calling operators with undo enabled.
Campbell Barton [Thu, 28 Jun 2012 08:17:28 +0000 (08:17 +0000)]
document calling operators with undo enabled.

7 years agoFix #31929: VSE crash with relative paths and rebuilding proxies
Sergey Sharybin [Thu, 28 Jun 2012 07:58:34 +0000 (07:58 +0000)]
Fix #31929: VSE crash with relative paths and rebuilding proxies

7 years agocode cleanup: when heat weighting dont loop through all polys when its not needed.
Campbell Barton [Thu, 28 Jun 2012 07:18:19 +0000 (07:18 +0000)]
code cleanup: when heat weighting dont loop through all polys when its not needed.

7 years agofix [#31940] crash with automatic weights
Campbell Barton [Thu, 28 Jun 2012 07:13:03 +0000 (07:13 +0000)]
fix [#31940] crash with automatic weights

7 years agoRemoving channel manipulation from the Action Actuator Python API since this has...
Mitchell Stokes [Thu, 28 Jun 2012 06:22:47 +0000 (06:22 +0000)]
Removing channel manipulation from the Action Actuator Python API since this has been broken since the animation changes from Pepper. BL_ArmatureObject.channels should be used instead. For more information see bug #28843 for more info:
http://projects.blender.org/tracker/index.php?func=detail&aid=28843&group_id=9&atid=306

7 years agocommitted debug memcount by accident
Campbell Barton [Wed, 27 Jun 2012 22:27:04 +0000 (22:27 +0000)]
committed debug memcount by accident

7 years agobge.logic.keyboard.getClipboard() and .setClipboard methods
Dalai Felinto [Wed, 27 Jun 2012 21:57:33 +0000 (21:57 +0000)]
bge.logic.keyboard.getClipboard() and .setClipboard methods
the idea of using methods instead of attributes is to avoid users abusing of the system calls.

Thanks Campbell Barton for reviewing and small corrections

7 years agooption so operators can be executed with undo enabled (and redo).
Campbell Barton [Wed, 27 Jun 2012 21:41:17 +0000 (21:41 +0000)]
option so operators can be executed with undo enabled (and redo).

7 years agomissed tiff using 150 dpi as default in previous commit, use a define now.
Campbell Barton [Wed, 27 Jun 2012 19:28:44 +0000 (19:28 +0000)]
missed tiff using 150 dpi as default in previous commit, use a define now.

7 years agoAvoid adding overlapping triangles in convex hull
Nicholas Bishop [Wed, 27 Jun 2012 18:39:17 +0000 (18:39 +0000)]
Avoid adding overlapping triangles in convex hull

Add an epsilon value to the point-outside-hull test, helps when some
of the input vertices are nearly coplanar.

Fixes bug [#31941] convex hull fails (and depends on vertex order when it shouldn't)
http://projects.blender.org/tracker/index.php?func=detail&aid=31941&group_id=9&atid=498

7 years agostyle cleanup
Campbell Barton [Wed, 27 Jun 2012 18:29:47 +0000 (18:29 +0000)]
style cleanup

7 years agochange default DPI for images to 72, aparently 150 gives issues with adobe apps...
Campbell Barton [Wed, 27 Jun 2012 18:11:24 +0000 (18:11 +0000)]
change default DPI for images to 72, aparently  150 gives issues with adobe apps (which is stupid but default value isnt so important).

7 years agostyle cleanup: header comments, use more doxy compat formatting
Campbell Barton [Wed, 27 Jun 2012 17:48:39 +0000 (17:48 +0000)]
style cleanup: header comments, use more doxy compat formatting

7 years agoFix for #31581, UVs shrink on edge slide.
Antony Riakiotakis [Wed, 27 Jun 2012 17:08:12 +0000 (17:08 +0000)]
Fix for #31581, UVs shrink on edge slide.

Issue is that all loops of a face adjacent to the sliding verts were
getting project-corrected. Introduced a test to only project the
affected loops.

The projection code introduces a small offset to the boundaries so that
any boundary tests can work as expected, but this leads to shrinking of
the barycentric coordinates of the projection, causing a shrink of the
uvs in turn. This even affects the uvs that -should- be affected though
the unfixed behavior works strangely in a correctish way (my guess is
because the projection uses the same face as the opposite sliding loop).

I fixed the behaviour by taking the mean value of the uvs. This won't
support seams but current code doesn't either. Also, all CustomData to
exhibit this unfixed behaviour. I only fixed the uv case, other data
(Vcolors, etc) will have discontinuities when edge sliding. I expect
that the CorrectUV code I am working on may address some of these
issues.

Also, added NULL checks for utility function (was intended for this bug
but wasn't needed after all)

7 years agoUtility function to get the first loop of a vert. Behaves identical to
Antony Riakiotakis [Wed, 27 Jun 2012 15:39:14 +0000 (15:39 +0000)]
Utility function to get the first loop of a vert. Behaves identical to
the iterator initialization function.

7 years agoadd access to dissolve_limit from python.
Campbell Barton [Wed, 27 Jun 2012 14:01:58 +0000 (14:01 +0000)]
add access to dissolve_limit from python.

7 years agoutility function to get the points inside a list of planes.
Campbell Barton [Wed, 27 Jun 2012 09:51:22 +0000 (09:51 +0000)]
utility function to get the points inside a list of planes.

7 years agostyle cleanup: also some spelling correction.
Campbell Barton [Wed, 27 Jun 2012 05:59:41 +0000 (05:59 +0000)]
style cleanup: also some spelling correction.

7 years agobmesh.ops module for bmesh operator access, only remove_doubles and convex_hull at...
Campbell Barton [Tue, 26 Jun 2012 21:40:01 +0000 (21:40 +0000)]
bmesh.ops module for bmesh operator access, only remove_doubles and convex_hull at the moment.

7 years agofix for a handful of memory leaks relating to parsing and allocating arbitrary sized...
Campbell Barton [Tue, 26 Jun 2012 16:58:58 +0000 (16:58 +0000)]
fix for a handful of memory leaks relating to parsing and allocating arbitrary sized vectors from python args.

Vector.dot() was always leaking memory, and would crash if args sizes didnt match.

These errors were introduced with n-dimensional vector support.

also fixed an error with bmesh py api allocation.

7 years agoFix for crash of keying screen node in cases when there's no
Sergey Sharybin [Tue, 26 Jun 2012 15:26:16 +0000 (15:26 +0000)]
Fix for crash of keying screen node in cases when there's no
triangulation generated for tracks setup

7 years agomathutils.Vector(kw=value) wasn't raising an error as it should.
Campbell Barton [Tue, 26 Jun 2012 14:49:49 +0000 (14:49 +0000)]
mathutils.Vector(kw=value) wasn't raising an error as it should.

7 years agoFix issue with resetting active nurb when sawing from edit mode
Sergey Sharybin [Tue, 26 Jun 2012 10:18:53 +0000 (10:18 +0000)]
Fix issue with resetting active nurb when sawing from edit mode

Issue was caused by loading editNurb into normal nurbs when saving,
this used to set active nurb to NULL.

This isn't actually needed, because active nurb would be set properly
on making editNurb and even if one accessed to active spline via PY API
when object is in object it'll be completely harmless.

7 years agomask and grease pencil now display in the dope sheet summery
Campbell Barton [Tue, 26 Jun 2012 10:14:50 +0000 (10:14 +0000)]
mask and grease pencil now display in the dope sheet summery

7 years agoOptimization of keying screen node
Sergey Sharybin [Tue, 26 Jun 2012 09:46:24 +0000 (09:46 +0000)]
Optimization of keying screen node

When creating tile data include only triangles which have got intersection
with tile's rectangle only. This saves quite a lot of per-pixel iterations
through triangles which simply can not affect on current tile.

In fact, it's AABB check is used here. It could be improved further, but
it'll slowdown tile data generation with questionable speedup.

Another major slowdown is in fact caused by voronoi triangulation code.
Currently it's used naive algorithm which is O(N^2) where N is number
of edges. Added few euristics there and removed unused part of code, which
gave quite noticeable speedup already.

This could be improved further, but this node is not ment to be used for
lots of markers. It's also generates wrong triangulation when there're
many sites used. Need to be investigated further.

7 years agofix for checking wrong flag with removing mask shape keys doubles on the dope sheet.
Campbell Barton [Tue, 26 Jun 2012 08:25:17 +0000 (08:25 +0000)]
fix for checking wrong flag with removing mask shape keys doubles on the dope sheet.

7 years agoquiet all -Wshadow warnings in the compositor.
Campbell Barton [Tue, 26 Jun 2012 07:32:24 +0000 (07:32 +0000)]
quiet all -Wshadow warnings in the compositor.