Campbell Barton [Sat, 3 Sep 2011 12:57:33 +0000 (12:57 +0000)]
svn merge -r39878:39890 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Sat, 3 Sep 2011 12:39:17 +0000 (12:39 +0000)]
svn merge -r39877:39878 https://svn.blender.org/svnroot/bf-blender/trunk/blender, merged manually
Campbell Barton [Sat, 3 Sep 2011 09:43:20 +0000 (09:43 +0000)]
minor edits to build on openbsd
Nicholas Bishop [Sat, 3 Sep 2011 08:18:43 +0000 (08:18 +0000)]
== CustomData ==
* Added comments for each entry in the LAYERTYPEINFO array noting the
number and name of the layer type; was hard to tell before which
entry was what
Campbell Barton [Sat, 3 Sep 2011 06:46:31 +0000 (06:46 +0000)]
PyC_ExceptionBuffer is now threadsafe, used for converting exceptions into reports.
Campbell Barton [Sat, 3 Sep 2011 04:44:18 +0000 (04:44 +0000)]
fix [#28462] Tiled textures and 2D filters don't mix
patch by Juha Mäki-Kanto
Campbell Barton [Sat, 3 Sep 2011 02:49:21 +0000 (02:49 +0000)]
svn merge -r39831:39877 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Sat, 3 Sep 2011 02:15:49 +0000 (02:15 +0000)]
whitespace edits
Sergey Sharybin [Fri, 2 Sep 2011 19:25:32 +0000 (19:25 +0000)]
Fix for grid lines drawing outside of histogram widget.
Sergey Sharybin [Fri, 2 Sep 2011 18:05:07 +0000 (18:05 +0000)]
Add missed notifier when toggling object's force field.
Sergey Sharybin [Fri, 2 Sep 2011 17:58:09 +0000 (17:58 +0000)]
Fix crash caused by recently added assert about if string was set properly.
Memory Estimate is actually 31 characters length, str[31] is a null-terminator.
Return length of 31 for memory estimate property. Returning proper length
would lead to slowdown because of 2x iteration through vertices.
Sergey Sharybin [Fri, 2 Sep 2011 15:19:30 +0000 (15:19 +0000)]
Fix #28280: Insert Hook wrong index
Use quite easy and stupid approach like it used for shape keys:
re-make editmesh (editcurve or editlattice) before creating index array
for hook or storing vertex index in parenting object.
Even if hook was added in "current" edit mode, it should be re-mapped on
loading edit data because topology could be changed after it was created.
Such kind of re-loading edit structures is the easiest way for now to
update keyindexes to relevant state.
Also, fixed bug with not re-mapping indices for vertex-parented objects.
Really old error, not sure why it wasn't noticed yet.
Sergey Sharybin [Fri, 2 Sep 2011 13:23:44 +0000 (13:23 +0000)]
Fix #28467: Crash while deleting objects in outliner too fast
Cleanup tree when handling object delete from outliner.
Prevents handling the same tree item twice when clicking fast.
Joshua Leung [Fri, 2 Sep 2011 12:26:57 +0000 (12:26 +0000)]
Bugfix [#28435] Key Visual transform and Parenting not working
After reviewing this code, it seems that this case can work after all.
However, several things needed to be tweaked:
1) Removed check which stopped parented objects from getting the
visual keying coordinates determined. This actually wasn't doing
anything, given that this case would never occur as...
2) Tweaked the visualkey_can_use() function to also consider parenting
as a cause for visual-keying to be necessary.
Campbell Barton [Fri, 2 Sep 2011 10:43:51 +0000 (10:43 +0000)]
paranoid check that RNA string functions set the string, would have helped solve keymap search bug.
disabled in release mode.
Howard Trickey [Fri, 2 Sep 2011 10:43:16 +0000 (10:43 +0000)]
Bmesh: fix array copies (fixes snapping), from patch #28429 by Andrew Wiggin (ender79
Sergey Sharybin [Fri, 2 Sep 2011 09:39:21 +0000 (09:39 +0000)]
Partial fix for #28441: Tab width in texteditor ignored if used tabs as spaces
Scroll to cursor when displaying text datablock was changed.
This behavior was lost in 2.5x.
Campbell Barton [Fri, 2 Sep 2011 08:35:46 +0000 (08:35 +0000)]
patch [#28473] Outliner Simple Todo
from Julien DUROURE (julien)
---
* right click --> rename, as proposed on http://wiki.blender.org/index.php/Dev:2.5/Source/Development/Todo/Simple_Todos
* implementation of Toggle visibility/rendarability/selectability on right click on Groups ( was in menu, but not implemented )
Campbell Barton [Fri, 2 Sep 2011 08:20:30 +0000 (08:20 +0000)]
fix [#28460] SEGFAULT when trying to make empty display as image
Campbell Barton [Fri, 2 Sep 2011 08:01:01 +0000 (08:01 +0000)]
tweak to WM_operatortype_find to perform better when called with empty strings (as the keymap editor does a lot)
Campbell Barton [Fri, 2 Sep 2011 07:51:19 +0000 (07:51 +0000)]
fix for keymap search, was using uninitialized memory when the keymaps operator couldn't be found.
Campbell Barton [Fri, 2 Sep 2011 06:48:14 +0000 (06:48 +0000)]
patch [#28463] BMesh: fixes for removedoubles and friends
from Andrew Wiggin (ender79)
Campbell Barton [Fri, 2 Sep 2011 04:34:58 +0000 (04:34 +0000)]
fix for error in recent commit, when audaspace is enabled
Mitchell Stokes [Fri, 2 Sep 2011 03:57:37 +0000 (03:57 +0000)]
BGE animations: adding a missing comma.
Campbell Barton [Fri, 2 Sep 2011 03:42:16 +0000 (03:42 +0000)]
Credits generator which cross references with the patch tracker to credit the original authors.
the script has a unix-name <> real-name mapping which is not totally complete since I couldn't find everyones real names.
In this case the commit name is credited.
Also added a link to the credits page in the splash.
Campbell Barton [Fri, 2 Sep 2011 03:32:57 +0000 (03:32 +0000)]
minor warning fixes, also correct some float -> double promotions in shadeoutput.c
Mitchell Stokes [Thu, 1 Sep 2011 21:47:46 +0000 (21:47 +0000)]
BGE animations: This is an attempt to help smooth out some more compatibility issues with the new action actuator. It now has a similar pulse behavior to the old actuator. This has worked well in most of my tests, but YoFrankie still has problems, and it appears to have gotten a little worse.
Mitchell Stokes [Thu, 1 Sep 2011 19:53:14 +0000 (19:53 +0000)]
BGE: Undoing r39729 and applying a simpler fix (ensuring that the viewport is correct for PostRenderScene()). This way both 2d filters and post_draw callbacks with with multiple viewports.
Joshua Leung [Thu, 1 Sep 2011 10:56:16 +0000 (10:56 +0000)]
Feature Request #28449: Pose Library poses can be renamed from
Properties Editor
Campbell Barton [Thu, 1 Sep 2011 09:47:21 +0000 (09:47 +0000)]
use a fixed 32byte buffer for getting an rna string from python. gives a slight speedup when drawing heavy UI's
Campbell Barton [Thu, 1 Sep 2011 09:46:07 +0000 (09:46 +0000)]
fix for building without audaspace, since pepper merge
Campbell Barton [Thu, 1 Sep 2011 09:11:00 +0000 (09:11 +0000)]
ability to create polygons and loops from python (low level mesh creation access, not nice api but functional).
updated:
mesh.from_pydata(vert, edge, polys)
... so it can take polygons rather then faces, this is much better suited for scripter access.
Campbell Barton [Thu, 1 Sep 2011 08:27:35 +0000 (08:27 +0000)]
BKE_mesh_calc_edges() now uses polygons when available.
Campbell Barton [Thu, 1 Sep 2011 07:51:20 +0000 (07:51 +0000)]
copy the remaining files from trunk
Campbell Barton [Thu, 1 Sep 2011 07:47:06 +0000 (07:47 +0000)]
copying from trunk, failed to merge somehow
Campbell Barton [Thu, 1 Sep 2011 07:07:18 +0000 (07:07 +0000)]
wip doc for py api tips and tricks.
Campbell Barton [Thu, 1 Sep 2011 02:12:53 +0000 (02:12 +0000)]
whitespace bge edits
Campbell Barton [Thu, 1 Sep 2011 01:48:50 +0000 (01:48 +0000)]
spaces -> tabs (configure you're editors right!)
Campbell Barton [Thu, 1 Sep 2011 01:28:45 +0000 (01:28 +0000)]
svn merge -r39830:39831 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Thu, 1 Sep 2011 01:13:50 +0000 (01:13 +0000)]
fix for error in patch from r39821.
Campbell Barton [Thu, 1 Sep 2011 00:56:21 +0000 (00:56 +0000)]
svn merge -r39792:39829 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Thu, 1 Sep 2011 00:35:30 +0000 (00:35 +0000)]
svn merge -r39781:39792 https://svn.blender.org/svnroot/bf-blender/trunk/blender, merge pepper, manually merged source/blender/editors/transform/transform_generics.c
Dalai Felinto [Thu, 1 Sep 2011 00:03:20 +0000 (00:03 +0000)]
making carbon to build again (note: NDOF is not working here)
- fix typo
- isolate NDOF callsi in #ifdefs
Mitchell Stokes [Wed, 31 Aug 2011 23:46:31 +0000 (23:46 +0000)]
BGE animations: Updating some constant names. They were still the originally proposed names instead of the ones that are actually used now.
Mitchell Stokes [Wed, 31 Aug 2011 22:32:14 +0000 (22:32 +0000)]
BGE Animations: The return type for KX_GameObject.getActionFrame() was an integer when it should have been a float. I've fixed this and converted the tabs in the new BGE animation docs to space. I have also added more info on return types for KX_GameObject.getActionFrame() and KX_GameObject.isPlayingAction().
Jens Verwiebe [Wed, 31 Aug 2011 14:46:27 +0000 (14:46 +0000)]
set OSX default python to static
Jens Verwiebe [Wed, 31 Aug 2011 14:15:14 +0000 (14:15 +0000)]
OSX/scons: fix compile with static python, my patch was a bit outdates, sorry
Campbell Barton [Wed, 31 Aug 2011 11:21:54 +0000 (11:21 +0000)]
rna polygon access to loop vertex indicies.
Campbell Barton [Wed, 31 Aug 2011 10:43:22 +0000 (10:43 +0000)]
patch [#28218] During-render callback functionality
from Jesse Kaukonen (gekko)
--- text from the patch.
Recently Campbell Barton added callback functionality for Python's usage, but this only includes pre- and post-render callbacks. There are no callbacks for the duration of the render. This patch adds the few lines required for executing a callback while Blender Render is working. The callback resides in the rendering pipeline stats function, so whenever statistics are printed, the callback is executed. This functionality is required if one wants to:
1) Observe what is happening while Blender is rendering via the command line
2) Add custom statistics that Blender prints while the renderer works
3) The user wants to continue executing his Python script without the code halting at bpy.ops.render.render()
Personally I'm currently using this for printing out more detailed progress reports at Renderfarm.fi (such as CPU time, time spent rendering, total progress in regards to the entire rendering process). Tested on Windows, Linux and OS X.
Example on how to use the callback:
def statscall(context): print("Thanks for calling!")
bpy.app.handlers.render_stats.append(statscall)
bpy.ops.render.render(animation=False, write_still=True)
Nathan Letwory [Wed, 31 Aug 2011 09:37:14 +0000 (09:37 +0000)]
COLLADA: Take parent bone length and direction instead of using bone pointing up with length 1. Looks much nicer and less confusing on larger armatures now.
Mitchell Stokes [Wed, 31 Aug 2011 05:51:51 +0000 (05:51 +0000)]
BGE: Adding two new functions to bge.render to allow users to change the anisotropic filtering level used by textures:
* setAnisotropicFiltering(level)
* getAnisotropicFiltering()
Campbell Barton [Wed, 31 Aug 2011 05:13:21 +0000 (05:13 +0000)]
initial support for rna wrapping polygons, no loop support though.
Campbell Barton [Wed, 31 Aug 2011 05:11:12 +0000 (05:11 +0000)]
quiet warnings
Campbell Barton [Wed, 31 Aug 2011 01:07:55 +0000 (01:07 +0000)]
typo fix: end of lines ;; --> ;
Campbell Barton [Wed, 31 Aug 2011 01:05:40 +0000 (01:05 +0000)]
fix [#28430] Image with Stampinfo does not get saved correctly with alpha
Jens Verwiebe [Tue, 30 Aug 2011 23:52:12 +0000 (23:52 +0000)]
OSX: additionally choice to link against python-framework again
Campbell Barton [Tue, 30 Aug 2011 23:37:46 +0000 (23:37 +0000)]
fix for error in my recent change to image save.
- relative path wasn't being made absolute.
- saving renders was always defaulting to multilayer exr, now use the output format set.
Campbell Barton [Tue, 30 Aug 2011 23:08:38 +0000 (23:08 +0000)]
catch exception and report an error when failing to write exr files - was crashing with debug builds.
Guillermo S. Romero [Tue, 30 Aug 2011 19:38:32 +0000 (19:38 +0000)]
SVN maintenance.
Mitchell Stokes [Tue, 30 Aug 2011 17:30:35 +0000 (17:30 +0000)]
When creating a multisample window for Win32, the first context created, which checks for multisample support, was never being deleted.
Nathan Letwory [Tue, 30 Aug 2011 15:43:00 +0000 (15:43 +0000)]
Check for potential crasher.
Reported and suggested in [#27687] by Dean Giberson. Couldn't redo crash myself, but better safe than sorry :)
Sergey Sharybin [Tue, 30 Aug 2011 15:30:38 +0000 (15:30 +0000)]
Fix #28427: smooth faces flash momentarily when extruded using "extrude and move on normals" tool (E key)
Update normals just after extrude -- topology is changing when extruding
and normals for non-extruded faces should be recalculated after this.
Thomas Dinges [Tue, 30 Aug 2011 14:41:23 +0000 (14:41 +0000)]
Fix for [#28425] when user prefs -> editing -> align to == "view" newly inserted objects do not show the applied rotation in the tools panel
Patch by Andrew Wiggin, thanks! :)
Thomas Dinges [Tue, 30 Aug 2011 12:45:56 +0000 (12:45 +0000)]
2.5 Game UI:
*Fix for clutter after pepper merge, 3 booleans in one row, is 1 too much here ;-)
Nathan Letwory [Tue, 30 Aug 2011 12:40:15 +0000 (12:40 +0000)]
Enable libsndfile by default on win32 too.
Thomas Dinges [Tue, 30 Aug 2011 11:31:48 +0000 (11:31 +0000)]
Fix for my last commit.
Campbell Barton [Tue, 30 Aug 2011 10:49:58 +0000 (10:49 +0000)]
minor edits, pep8 - also correct float -> double promotion for blf.
Thomas Dinges [Tue, 30 Aug 2011 10:44:02 +0000 (10:44 +0000)]
2.5 UI Files:
* Code cleanup after Pepper merge.
Joerg Mueller [Tue, 30 Aug 2011 10:09:10 +0000 (10:09 +0000)]
Fix for [#25062] Sound Actuator - Positional Audio.
Now all sounds that are not mono but have 3D checked automatically get reduced to mono during BGE conversion time.
Also removed the now unneeded function sound_get_channels and added a missing header file to audaspace's CMakeLists.txt.
Brecht Van Lommel [Tue, 30 Aug 2011 10:07:50 +0000 (10:07 +0000)]
Fixes for snprintf usage:
* replace by BLI_snprintf in various places, note _snprintf on windows
does not properly null terminate the string.
* fix overflow in sequencer proxy code due to buffer being smaller than
specified size.
* fix some usage of snprintf as strcpy, this is will go wrong if the
string contains % characters.
* remove BLI_dynstr_printf function in gpu module, use BLI_dynstr_appendf
Campbell Barton [Tue, 30 Aug 2011 09:50:31 +0000 (09:50 +0000)]
fix for some warnings with the recent merge, also tag unused args.
Joerg Mueller [Tue, 30 Aug 2011 09:26:59 +0000 (09:26 +0000)]
Removing outdated files.
Joerg Mueller [Tue, 30 Aug 2011 09:15:55 +0000 (09:15 +0000)]
Merging pepper to trunk at revision 39791.
Important note: I used rsync to do the local merge, as "svn merge --reintegrate ^/branches/soc-2011-pepper" doesn't work with our svn server right now!
Joerg Mueller [Tue, 30 Aug 2011 08:22:03 +0000 (08:22 +0000)]
* Merge trunk up to r39790.
* Subversion bump (also for init_userdef_do_versions).
* Minor fix for compilation without ffmpeg.
Joerg Mueller [Tue, 30 Aug 2011 07:57:55 +0000 (07:57 +0000)]
Last bunch of minor fixes before merge.
* Use NULL in AUD_Reference.h
* Use SETLOOPER in sound.c
* Move flags to the end of Speaker struct.
Campbell Barton [Tue, 30 Aug 2011 04:13:48 +0000 (04:13 +0000)]
fix [#28413] bpy.ops.nla.bake can't bake from frame 0
Joseph Eagar [Tue, 30 Aug 2011 02:57:35 +0000 (02:57 +0000)]
=bmesh= fixed uv unwrap tool
Joseph Eagar [Tue, 30 Aug 2011 02:33:27 +0000 (02:33 +0000)]
=bmesh= sculpt without multires updates properly now. not sure I did this correctly, though.
Joseph Eagar [Tue, 30 Aug 2011 02:11:19 +0000 (02:11 +0000)]
=bmesh= fixed loop select for wire edges
Joseph Eagar [Tue, 30 Aug 2011 01:59:33 +0000 (01:59 +0000)]
=bmesh= knife tool applies to modifier cage now, also fixed some bugs in it
Joseph Eagar [Tue, 30 Aug 2011 00:54:07 +0000 (00:54 +0000)]
=bmesh= fixed bridge tool
Campbell Barton [Tue, 30 Aug 2011 00:23:11 +0000 (00:23 +0000)]
svn merge -r39765:39781 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Sergey Sharybin [Mon, 29 Aug 2011 17:46:07 +0000 (17:46 +0000)]
Fix #28295 Outliner, mouse button on menu's pass through.
It was introduced in rev33603 with not good patch -- release event
was catching by outliner after clicking on menu item.
Use KM_CLICK instead of KM_RELEASE to deal with icon drag/drop.
This not changes drag/drop behavior, but prevents unneeded event be handled.
Also make consistent behavior of activating and extending selection.
Sergey Sharybin [Mon, 29 Aug 2011 16:07:44 +0000 (16:07 +0000)]
Fix #28347: VBO's highlights wrong faces when Mirror modifier is in use
Added callback to drawMappedFaces which checks if two faces have got equal draw options.
After discussion with Brecht we found it's nicest solution for now:
- Disabling VBOs in edit mode for this case wouldn't be nicer for this case -
some additional flag stored in DM should be added in this case.
- Adding new callback in DM isn't nicer that this solution.
- Handling face selection in drawobject would lead to duplicated code
which is also not nice.
Hopefully, this callback could handle all cases in the future.
Also, Brecht mentioned current VBO implementation isn't perfect, so maybe
when we'll redesign this area dealing with edit mode wouldn't be so tricky.
Joerg Mueller [Mon, 29 Aug 2011 15:01:55 +0000 (15:01 +0000)]
* Reverting Titlecard commit r37537
* Reverting update recent files commit r37155
* Turning reference counts into unsigned ints
* Minor things
Howard Trickey [Mon, 29 Aug 2011 14:13:14 +0000 (14:13 +0000)]
fixed crash on loop cut of wire edge
Part of fix was to make edgering walker work when initial
edge is a wire edge (has no faces attached): it will just
walk that one edge and quit now. I checked other uses
of the edgering walker and this won't hurt them. Had
to add a new wireedge variable to the edge ring walker state.
Brecht Van Lommel [Mon, 29 Aug 2011 12:57:46 +0000 (12:57 +0000)]
Fix player build error after envmap commit.
Mitchell Stokes [Mon, 29 Aug 2011 06:19:55 +0000 (06:19 +0000)]
BGE Animations: Various changes to make code reviewers happy:
* Naming/style changes
* Taking advantage of switch statements
* Removing unneeded NULL checks
* etc
Dalai Felinto [Mon, 29 Aug 2011 03:20:15 +0000 (03:20 +0000)]
bge bugfix: [#28362] Controllers names appear incorrectly with a python query
the uniquename was never fully implemented for sensors and actuators, only for controllers.
at some point we either get rid of all of them, or bring them all on.
For now removing the "unique name" of controllers
Campbell Barton [Mon, 29 Aug 2011 01:08:34 +0000 (01:08 +0000)]
svn merge -r39763:39765 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Campbell Barton [Mon, 29 Aug 2011 01:05:35 +0000 (01:05 +0000)]
remove unused args
Campbell Barton [Mon, 29 Aug 2011 01:00:14 +0000 (01:00 +0000)]
clear some warnings with new proxy code.
Campbell Barton [Mon, 29 Aug 2011 00:46:56 +0000 (00:46 +0000)]
svn merge -r39664:39762 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Guillermo S. Romero [Sun, 28 Aug 2011 23:44:43 +0000 (23:44 +0000)]
SVN maintenance.
Campbell Barton [Sun, 28 Aug 2011 23:24:34 +0000 (23:24 +0000)]
patch [#28355] Better Environment Map scripting
from Tom Edwards (artfunkel), with minor edits.
This patch makes the following improvements to environment map scripting:
* Adds a "is_valid" RNA property to envmaps. True if the map is ready for use, False if it needs rendering.
* Adds a "clear" RNA function to envmaps. Deletes any envmap image data.
* Adds a "save" RNA function to envmaps. Writes the envmap to disc with a configurable layout. (Defaults to the current hard-coded layout.)
* Updates bpy.ops.texture.envmap_save with configurable layout support as above.
These changes, particularly configurable layouts, make exporting envmaps to other software much easier.
Guillermo S. Romero [Sun, 28 Aug 2011 21:48:52 +0000 (21:48 +0000)]
SVN maintenance.
Howard Trickey [Sun, 28 Aug 2011 21:20:10 +0000 (21:20 +0000)]
brought back some unused variables removed from previous commit, commented out, in case need their values later
Campbell Barton [Sun, 28 Aug 2011 21:13:03 +0000 (21:13 +0000)]
fix [#28401] OpenGL render option disables border clipping
Peter Schlaile [Sun, 28 Aug 2011 19:58:33 +0000 (19:58 +0000)]
== Sequencer / proxies ==
fixed crash pointed out by blendervse:
100%-proxy could lead to a segfault under certain conditions.
Sergey Sharybin [Sun, 28 Aug 2011 18:54:02 +0000 (18:54 +0000)]
Missed notifier was found when looking at #28393