11 years agoBugfix #17830
Ton Roosendaal [Tue, 14 Oct 2008 10:44:22 +0000 (10:44 +0000)]
Bugfix #17830

Index OB pass didn't support FSA for Ztransp.
Also made buttons to set black/white for non-RGBA images hide in Image Window,
the Curves color code only supports 4 channels atm.

11 years agoAction Editor - Grease Pencil Bugfix:
Joshua Leung [Tue, 14 Oct 2008 10:11:01 +0000 (10:11 +0000)]
Action Editor - Grease Pencil Bugfix:

When Action Editor was maximised, Grease Pencil data disappeared. This was due to the screen-swapping that went on. Now, it uses the old-screen that was stored in the maximised Action Editor's screen (should be safe...)

11 years agoGrease Pencil Bugfixes:
Joshua Leung [Tue, 14 Oct 2008 09:36:08 +0000 (09:36 +0000)]
Grease Pencil Bugfixes:
* Onion-skinning with GStep > 0 was not showing enough of a noticable difference between ghosts. Improved method of calculating this.

* Clicking in a Grease-Pencil datablock channel in the Action Editor would crash

11 years agobugfix: copy/paste bug merged from Bullet main repo into Blender, hope it still can...
Erwin Coumans [Tue, 14 Oct 2008 06:14:25 +0000 (06:14 +0000)]
bugfix: copy/paste bug merged from Bullet main repo into Blender, hope it still can make 2.48

11 years agoPart two of the 2.48 release preparation!
Ton Roosendaal [Mon, 13 Oct 2008 10:03:17 +0000 (10:03 +0000)]
Part two of the 2.48 release preparation!
(After this svn tag)

11 years agoPart one of the release 2.48 commit.
Ton Roosendaal [Mon, 13 Oct 2008 10:01:52 +0000 (10:01 +0000)]
Part one of the release 2.48 commit.

11 years agomissing calls to countall() on switching scenes in the outliner.
Campbell Barton [Mon, 13 Oct 2008 03:55:59 +0000 (03:55 +0000)]
missing calls to countall() on switching scenes in the outliner.

11 years agoAdded a -noglsl option to disable GLSL from the command line.
Brecht Van Lommel [Sun, 12 Oct 2008 18:32:26 +0000 (18:32 +0000)]
Added a -noglsl option to disable GLSL from the command line.

11 years agohard limit in for bpy material was wrong
Campbell Barton [Sun, 12 Oct 2008 15:35:17 +0000 (15:35 +0000)]
hard limit in for bpy material was wrong

11 years agocorrection to epydoc
Campbell Barton [Sun, 12 Oct 2008 14:27:30 +0000 (14:27 +0000)]
correction to epydoc

11 years ago- Fix for bug #17825: baking SSS is not supported, but it didn't give
Brecht Van Lommel [Sun, 12 Oct 2008 13:32:28 +0000 (13:32 +0000)]
- Fix for bug #17825: baking SSS is not supported, but it didn't give
  proper results, should bake as if SSS was disabled.
- Fix for GLSL to handle failing shadow buffer creation better.
- Fix for sky/atmosphere version patch, was not doing files from 2.46
  and newer.

11 years agoBugfix, studio report by Pablo Venomgfx
Ton Roosendaal [Sun, 12 Oct 2008 13:16:23 +0000 (13:16 +0000)]
Bugfix, studio report by Pablo Venomgfx

- insert key crashed when object ipo was in action, but action got unlinked
  from object

11 years ago== Sequencer ==
Peter Schlaile [Sun, 12 Oct 2008 12:00:26 +0000 (12:00 +0000)]
== Sequencer ==

This fixes (works around):
[#13598] LOAD / SAVE: Segfault after attempting to load surround encoded file

11 years agoin rare cases the screen cant be found for BPy's file/image selector
Campbell Barton [Sun, 12 Oct 2008 11:31:11 +0000 (11:31 +0000)]
in rare cases the screen cant be found for BPy's file/image selector

11 years agoSmall fix, ancient issue:
Ton Roosendaal [Sun, 12 Oct 2008 11:13:35 +0000 (11:13 +0000)]
Small fix, ancient issue:
drawing object names in 3d window, zbuffered mode, didn't show up.

11 years agoc3d_import needed encoding defined for python 2.5+ to run.
Campbell Barton [Sun, 12 Oct 2008 10:39:45 +0000 (10:39 +0000)]
c3d_import needed encoding defined for python 2.5+ to run.
wav file reading minor fix checking array bounds.

11 years agoread wave files block align value, rather then assuming 2 or 4.
Campbell Barton [Sun, 12 Oct 2008 07:58:05 +0000 (07:58 +0000)]
read wave files block align value, rather then assuming 2 or 4.

11 years ago* Patch #17729 from Dalai Felinto
Matt Ebb [Sun, 12 Oct 2008 06:39:47 +0000 (06:39 +0000)]
* Patch #17729 from Dalai Felinto

Additional sculpt mode hotkeys to toggle Smooth stroke (Shift S) and Anchored brush (Shift A) . Menus are updated with hotkeys too. This is a real last minute one, but it was given the ok previously, and I've just had time to commit this for him.

11 years agoBugfix:
Joshua Leung [Sun, 12 Oct 2008 00:59:58 +0000 (00:59 +0000)]

Grease Pencil panel in Sequencer and Nodes were not able to be minimised.

11 years agofix for [#17783] problem when packing wav
Campbell Barton [Sun, 12 Oct 2008 00:51:55 +0000 (00:51 +0000)]
fix for [#17783] problem when packing wav
"data" is aligned differently in this wave file and the buffer was read past its allocated length.

Fix this by searching for the buffer in increments of 2 (this finds the "data" for the wav file)
added a check not to allow the search to go past the buffer length, so corrupt wave files should not crash.

11 years agoFix for opengl errors being thrown when creating textures, it was
Brecht Van Lommel [Sun, 12 Oct 2008 00:41:28 +0000 (00:41 +0000)]
Fix for opengl errors being thrown when creating textures, it was
setting the magnification to GL_LINEAR_MIPMAP_NEAREST but that is
only valid for minifaction, should be GL_LINEAR instead. OpenGL
driver should refuse setting this so should be harmless, but better
to fix it anyway.

11 years agoGrease Pencil Bugfixs:
Joshua Leung [Sun, 12 Oct 2008 00:13:25 +0000 (00:13 +0000)]
Grease Pencil Bugfixs:

- Eraser now works in Sequence Editor. Cleaned up the code that handles Sequencer coordinate-conversions so that it should be a bit faster (doesn't need to recalculate offsets+scaling for every point that is made).

- Fixed mistake made in previous commit that made the pressure value (for tablets) an integer instead or a float. This should solve some of the reports of bits of strokes being missed on tablets.

11 years agoFix for two more game engine issues:
Brecht Van Lommel [Sat, 11 Oct 2008 23:48:37 +0000 (23:48 +0000)]
Fix for two more game engine issues:
* Debug text drawing didn't disable textures correct leaving
  texture state invalid, quite old issue.
* Multitexture materials didn't get enabled correct, recent bug.

Both pointed out by José Ignacio Romero, thanks!

11 years agoFix crash in game engine IPO code, got out of sync after IPO cleanup, removed the...
Brecht Van Lommel [Sat, 11 Oct 2008 22:29:50 +0000 (22:29 +0000)]
Fix crash in game engine IPO code, got out of sync after IPO cleanup, removed the duplicated function declarations.

11 years agoActual fix for bug #17819, that doesn't disable the functionality, crash with tiled...
Brecht Van Lommel [Sat, 11 Oct 2008 22:16:39 +0000 (22:16 +0000)]
Actual fix for bug #17819, that doesn't disable the functionality, crash with tiled image textures in the game engine.

11 years agoprevent crash in gpu_draw.c, so tilemode might not have GLSL/GPU features
Erwin Coumans [Sat, 11 Oct 2008 20:54:18 +0000 (20:54 +0000)]
prevent crash in gpu_draw.c, so tilemode might not have GLSL/GPU features

/* for tiles, copy only part of image into buffer */
if (GTS.tilemode) {
return 0; //disabled for now, it causes crashes

See tracker issue here:

11 years agoLast (hopefully) soft body fixes:
Erwin Coumans [Sat, 11 Oct 2008 20:19:04 +0000 (20:19 +0000)]
Last (hopefully) soft body fixes:
Enable soft body collision clusters by default.
Add option to 'disable collision' button between soft body and rigid body connected by constraint (option was already available between two rigid bodies)

11 years agoFix for bug #17794: GLSL didn't take into account normal maps
Brecht Van Lommel [Sat, 11 Oct 2008 19:34:48 +0000 (19:34 +0000)]
Fix for bug #17794: GLSL didn't take into account normal maps
for Nor texture inputs.

11 years agoremove constraints from world, if not done yet
Erwin Coumans [Sat, 11 Oct 2008 19:32:53 +0000 (19:32 +0000)]
remove constraints from world, if not done yet

11 years agoFix for recent commit, should only do glFinish() on Windows.
Brecht Van Lommel [Sat, 11 Oct 2008 18:58:07 +0000 (18:58 +0000)]
Fix for recent commit, should only do glFinish() on Windows.

11 years agoFix for bug #17809: crash with glsl materials and nodes refresh,
Brecht Van Lommel [Sat, 11 Oct 2008 18:52:36 +0000 (18:52 +0000)]
Fix for bug #17809: crash with glsl materials and nodes refresh,
didn't attach to the right materials to the lamp.

11 years agoFix for bug #17793: the glFinish() call in ghost that was disabled in a previous...
Brecht Van Lommel [Sat, 11 Oct 2008 16:03:17 +0000 (16:03 +0000)]
Fix for bug #17793: the glFinish() call in ghost that was disabled in a previous commit, because it was causing performance issues for the game engine, apparently still is needed to solved issues with FSAA. Now instead it will still call this for blender but not anymore for blenderplayer.

11 years agoUpdated python license, this is compatible with current 2.5 and older.
Ton Roosendaal [Sat, 11 Oct 2008 15:55:22 +0000 (15:55 +0000)]
Updated python license, this is compatible with current 2.5 and older.

11 years agoBugfix #17810: Blender crashes when constraint-keys are moved in NLA
Joshua Leung [Sat, 11 Oct 2008 12:23:56 +0000 (12:23 +0000)]
Bugfix #17810: Blender crashes when constraint-keys are moved in NLA

Copy and paste error. Was using ob-ipo instead of conchan->ipo

11 years agoQuick PyAPI patch:
Joshua Leung [Sat, 11 Oct 2008 12:17:16 +0000 (12:17 +0000)]
Quick PyAPI patch:

Now it is possible to clean IPO-curves using the call:
There's an optional value to specify the threshold to use for cleaning.

This just wraps the internal clean_ipo_curve() function.

11 years agoGrease Pencil Bugfixes:
Joshua Leung [Sat, 11 Oct 2008 11:07:25 +0000 (11:07 +0000)]
Grease Pencil Bugfixes:

* Fix for #17808: Can't compile using SunCC - gpencil.c uses DOS line endings.
Added some svn-properties on gpencil files and also keyframing ones that I added, so that this shouldn't be a problem anymore.

* In Node Editor, it is now possible to close an open Grease Pencil panel when there is no node-tree being shown (i.e. after switching between node editing modes)

11 years agoremoved warning in fluidsim.c
Campbell Barton [Sat, 11 Oct 2008 04:30:09 +0000 (04:30 +0000)]
removed warning in fluidsim.c
fixed tooltip for delay sensor - delay is in tics not frames

11 years agoFix for a relative paths issue in the game engine. G.sce was being
Brecht Van Lommel [Sat, 11 Oct 2008 00:56:49 +0000 (00:56 +0000)]
Fix for a relative paths issue in the game engine. G.sce was being
kept as the original file, but that can't work correct for solving
relative paths once a .blend in another directory is loaded. The
reason it went OK with the apricot tech demo is that the images there
were lib linked into the level file, which still worked.

Now it sets G.sce to the current loaded .blend file. Note that the
python config file path still uses the first loaded .blend file so it
looks in the same location each time.

Also added some NULL pointer checks in the joystick code because it
was crashing there on Mac, there's similar checks in related functions
so I'm assuming this was just a missed case.

11 years agoBugfix #17802: Grease Pencil still draws when not shown in Image Editor
Joshua Leung [Fri, 10 Oct 2008 22:49:17 +0000 (22:49 +0000)]
Bugfix #17802: Grease Pencil still draws when not shown in Image Editor

Added missing check for this case.

11 years agoThis commit fixes bug: [#17770] Texture Plugins do not work. (on windows)
Kent Mein [Fri, 10 Oct 2008 17:52:25 +0000 (17:52 +0000)]
This commit fixes bug: [#17770] Texture Plugins do not work. (on windows)
Thanks to Lguillaume for helping with this one.

Had to go back to bug: [#17631] PIL_dynlib_get_error_as_string() returns NULL, causes crash

and revert the fix and make some new updates.
function needs to return NULL so fix the functions that were assuming it
always returns a string.


11 years agoMissing include, apparently only scons+mingw suffers this, strange.
Ton Roosendaal [Fri, 10 Oct 2008 14:22:54 +0000 (14:22 +0000)]
Missing include, apparently only scons+mingw suffers this, strange.

11 years agoBGE bug #17789 fixed: Lock Active Camera and Layer to Scene doesn't work in BGE....
Benoit Bolsee [Fri, 10 Oct 2008 07:20:42 +0000 (07:20 +0000)]
BGE bug #17789 fixed: Lock Active Camera and Layer to Scene doesn't work in BGE. This bug fix applies only to games started from the 3D view. Now the BGE will use the layer and camera selected in the 3d viewport under the mouse when the user presses P. Note that there is still a problem with the restart game actuator but that's another bug.

11 years agofix: leave default behaviour the same to be backward compatible with previous rigid...
Erwin Coumans [Fri, 10 Oct 2008 05:32:04 +0000 (05:32 +0000)]
fix: leave default behaviour the same to be backward compatible with previous rigid body constraints: No Collision between linked objects if button is pressed.

11 years agouse BLI_strcasecmp instead of strcasecmp so it actually links under Windows
Erwin Coumans [Fri, 10 Oct 2008 05:17:47 +0000 (05:17 +0000)]
use BLI_strcasecmp instead of strcasecmp so it actually links under Windows

11 years agoFix bug in rigid body constraint buttons drawing, and while we are at it, add 'Collis...
Erwin Coumans [Fri, 10 Oct 2008 05:12:57 +0000 (05:12 +0000)]
Fix bug in rigid body constraint buttons drawing, and while we are at it, add 'Collision' button to disable collisions between bodies, linked between constraint.

11 years agofix for [#12255] Rename the File at File Window,the file is deleted
Campbell Barton [Thu, 9 Oct 2008 22:44:52 +0000 (22:44 +0000)]
fix for [#12255] Rename the File at File Window,the file is deleted

renaming a file on win32 would delete it because it didnt test if the 2 filenames were the same (case insensitive), and remove the 'to' file to make way for the 'from' file.

11 years ago== Python ==
Willian Padovani Germano [Thu, 9 Oct 2008 22:28:44 +0000 (22:28 +0000)]
== Python  ==

Bug: [#17734] Loading a python script's help dosn't work

reported by Rian Tut (thanks).

Actual problem: scripts with spaces in their filenames were not supported by the code that registers scripts in menus and runs them. Added support w/o breaking eventual, rare scripts that parse the Bpymenus file. They will still need an update to support filenames with spaces, like done here for these scripts: Scripts Help Browser and Scripts Config Editor.

PS: tested on Linux. Please test on other platforms: just make sure scripts still appear in menus (the File->Export, for example), even after re-registering them (Scripts window -> Scripts Menu -> Update Menus) and that the Scripts Help Browser still works.

11 years agoReverted bugfix #17709
Ton Roosendaal [Thu, 9 Oct 2008 17:18:33 +0000 (17:18 +0000)]
Reverted bugfix #17709

I misread report, didn't know vertex bevel weights existed even!

11 years agobugfix #17709
Ton Roosendaal [Thu, 9 Oct 2008 17:00:53 +0000 (17:00 +0000)]
bugfix #17709

SHIFT+CTRL+E 'bevel weight' didn't support vertex selection mode yet.

11 years agoBugfix #11712
Ton Roosendaal [Thu, 9 Oct 2008 14:28:17 +0000 (14:28 +0000)]
Bugfix #11712

Definitely one of the oldest bugs ever (1995 or so).
Case is a path (child on path, or deformer, or motion modifier) where the
child is far away from path (300 units or so). In that case you can see
the path jumping to another position a bit after a few frames.

For interpolating path positions, I was using bspline code still having a
very ancient constant 0.1666f.
Floats have higher precision, like 0.16666666. That solved it :)

11 years agoBugfix for [#17333] Fluid bake memory issues provided by Andre Pinto
Daniel Genrich [Thu, 9 Oct 2008 12:19:16 +0000 (12:19 +0000)]
Bugfix for [#17333] Fluid bake memory issues provided by Andre Pinto

11 years agoBugfix #8911
Ton Roosendaal [Thu, 9 Oct 2008 10:59:48 +0000 (10:59 +0000)]
Bugfix #8911

Image counter can be set to zero when unlinking images, whilst they can
be in use for texture. This is a temporary solution to prevent errors!

(Now image unlinking doesn't set zero users anymore)

11 years agoBGE bug fix: fix several bugs and inconsistencies in sound actuator:
Benoit Bolsee [Thu, 9 Oct 2008 06:06:11 +0000 (06:06 +0000)]
BGE bug fix: fix several bugs and inconsistencies in sound actuator:

- support stopping of loop sound
- support stopping by python
- keep state of actuator in sync with audio device.
  The lack of state sync was causing several other problems:
  - actuator stop playing the sound
  - sound chopped before the end
  - not possible to pause sound

11 years agoThis is patch [#17773] seq plugin crash -> use not converted to float with ibuf1...
Kent Mein [Thu, 9 Oct 2008 04:11:33 +0000 (04:11 +0000)]
This is patch [#17773] seq plugin crash -> use not converted to float with ibuf1 & ibuf2

Submitted by Rob Hausauer (paprmh)

See the link for details:


11 years agoGrease Pencil:
Joshua Leung [Wed, 8 Oct 2008 23:42:00 +0000 (23:42 +0000)]
Grease Pencil:

Added comments a few + stroke simplification code (hidden behind rt and userpref, adapted from theeth's etch-a-ton code). This shouldn't have any other adverse effects.

11 years agoPatch #7065, from Stephane SOPPERA, part two: improvements when using
Chris Want [Wed, 8 Oct 2008 19:58:57 +0000 (19:58 +0000)]
Patch #7065, from Stephane SOPPERA, part two: improvements when using
the commandline 'nmake' to build blender on windows -- please test!

11 years agoPatch #7065, from Stephane SOPPERA, part one: define macro WITH_OPENEXR
Chris Want [Wed, 8 Oct 2008 19:56:41 +0000 (19:56 +0000)]
Patch #7065, from Stephane SOPPERA, part one: define macro WITH_OPENEXR
when the sources are configured with OpenEXR support.

11 years agoBugfix #17784
Ton Roosendaal [Wed, 8 Oct 2008 18:35:41 +0000 (18:35 +0000)]
Bugfix #17784

Playanim now works for:

- tiff, cineon, dpx, hdr, exr

Only multilayer not, that's too much for a bugfix. Multilayer is a totally
different image format, handled separately.

ALso removed redundant printing for dpx/cineon.
And fixed crash in cineon when G.scene doesnt exist. Bad bad, should
not be there!

11 years agoBugfix #17784
Ton Roosendaal [Wed, 8 Oct 2008 18:15:19 +0000 (18:15 +0000)]
Bugfix #17784

libtiff init was missing on "Play anim", causing it to not read tiffs.

11 years agoBugfix #17785
Ton Roosendaal [Wed, 8 Oct 2008 17:34:26 +0000 (17:34 +0000)]
Bugfix #17785

Fixed tooltip for "double sided" so it clearly denotes it's about light. :)

11 years agoown error, bvh import would always miss the last frame.
Campbell Barton [Wed, 8 Oct 2008 17:07:32 +0000 (17:07 +0000)]
own error, bvh import would always miss the last frame.
thanks ppClarity for picking up on this.

11 years agoBugfix #17778
Ton Roosendaal [Wed, 8 Oct 2008 16:50:06 +0000 (16:50 +0000)]
Bugfix #17778

COmpositor: Multilayer images in Image input node could crash on
making icon previews for the browse menu.

11 years agoPython API
Ken Hughes [Wed, 8 Oct 2008 16:37:33 +0000 (16:37 +0000)]
Python API
Add optional string argument to Object.newParticleSystem() method, so that
objects can link to existing particle systems (if the name of the particle
system is known).  Also cleans up some code in Object.c which accesses the
particle sys listbase.

11 years agoBugfix #17767
Ton Roosendaal [Wed, 8 Oct 2008 16:29:09 +0000 (16:29 +0000)]
Bugfix #17767

NULL check missing in particle bvhtree testing.

11 years agoBugfix #17769
Ton Roosendaal [Wed, 8 Oct 2008 15:42:49 +0000 (15:42 +0000)]
Bugfix #17769

Someone managed to write over the protected part of ID name (python???).
This crashes blender in unexpted place, added error print for this.

11 years agomy changes broke the "level" option for joystick keys being held between states
Campbell Barton [Wed, 8 Oct 2008 11:40:39 +0000 (11:40 +0000)]
my changes broke the "level" option for joystick keys being held between states

11 years agofix for a bug where getting ID props would rename the datablock (including its type...
Campbell Barton [Wed, 8 Oct 2008 09:27:26 +0000 (09:27 +0000)]
fix for a bug where getting ID props would rename the datablock (including its type), then crash.

11 years agoFixed a tooltip typo
Kent Mein [Wed, 8 Oct 2008 09:15:16 +0000 (09:15 +0000)]
Fixed a tooltip typo


11 years agoError about "max open floating panels" used wrong math.
Ton Roosendaal [Wed, 8 Oct 2008 08:08:58 +0000 (08:08 +0000)]
Error about "max open floating panels" used wrong math.

11 years ago* Joystick sensor is now only triggered from events of the selected type.
Campbell Barton [Wed, 8 Oct 2008 03:16:19 +0000 (03:16 +0000)]
* Joystick sensor is now only triggered from events of the selected type.
* Keyboard sensor - added (back?) support for qualifiers (Hold buttons in the UI)

11 years agobugfix: missing attributes from shrinkwrap copy function.
Martin Poirier [Wed, 8 Oct 2008 01:04:07 +0000 (01:04 +0000)]
bugfix: missing attributes from shrinkwrap copy function.

Reported by Bassam on IRC

11 years agoDXF-Exporter update
Remigiusz Fiedler [Tue, 7 Oct 2008 20:34:24 +0000 (20:34 +0000)]
DXF-Exporter update
v1.27 - 2008.10.07 by migius
- exclude Stani's DXF-Library to extern module
- add "hidden mode" substitut: back-faces removal
- add support for mesh ->POLYFACE
- optimized code for "Flat" procedure
- modif FACE class for r12
- add mesh-polygon -> Bezier-curve converter (Yorik's code)
- add support for curves ->POLYLINEs
- add "3d-View to Flat" - geometry projection to XY-plane

11 years agoWebPlugin
Enrico Fracasso [Tue, 7 Oct 2008 17:13:35 +0000 (17:13 +0000)]
* web plugin works on opera too

* added AppArmor configuration
* enabled privilege separation for the web plugin: the blender player can run as a lower privileged user, xauth token is generated on the fly .

* web plugin tested on ubuntu 32/64bit, fedora and FreeBSD

Changed only cmake build script: AppArmor is enabled by default, if you want to enable privilege separation instead, you have to change the cmake variable WEBPLUGIN_SANDBOX_MODE to privsep (or none to
disable it).

Warning: source/gameengine/GamePlayer/xembed/blenderplayer-wrapper.c must be setuid root in order to change user successfully

11 years agoFix for bug #13363: ray (qmc) shadows had some light leaking issues,
Brecht Van Lommel [Tue, 7 Oct 2008 15:01:44 +0000 (15:01 +0000)]
Fix for bug #13363: ray (qmc) shadows had some light leaking issues,
due to jittering of the start position for antialiasing in a pixel.

Now it distributes the start position over the fixed osa sample
positions, instead of of random positions in space. The ugly bit is
that a custom ordering was defined for osa 8/11/16 to ensure that the
first 4 are distributed relatively fair for adaptive sampling to decide
if more samples need to be taken.

11 years agoBugreport in irc, alxarch report:
Ton Roosendaal [Tue, 7 Oct 2008 14:24:08 +0000 (14:24 +0000)]
Bugreport in irc, alxarch report:

Fgon flushing for EM_selectmode_flush() should not happen in face select
mode. That prevents 'select swap' or deselecting fgons.

11 years agoown error moving macro to function, double checked and its correct now.
Campbell Barton [Tue, 7 Oct 2008 08:19:48 +0000 (08:19 +0000)]
own error moving macro to function, double checked and its correct now.

11 years agojoystick update
Campbell Barton [Tue, 7 Oct 2008 05:09:24 +0000 (05:09 +0000)]
joystick update
* use SDL events to trigger the sensor, trigger was being forced every tick. removed workaround for this problem.
* added "All Events" option, similar to all keys in the keyboard sensor.
  This means every event from the joystick will trigger the sensor, however only events from the selected type (axis/button/hat) is used to set the positive state of the sensor.
* Added python function sens_joy.GetButtonValues(), returns a list of pressed button indicies.
* Removed pressed/released option for joystick buttons, it was the same as the invert option.

11 years agoComments for text editor functions. More to come tomorrow.
Ian Thompson [Mon, 6 Oct 2008 22:08:14 +0000 (22:08 +0000)]
Comments for text editor functions. More to come tomorrow.

11 years agoGrease Pencil Bugfix
Martin Poirier [Mon, 6 Oct 2008 21:41:20 +0000 (21:41 +0000)]
Grease Pencil Bugfix

When converting to armature, don't flag the first bone of each stroke as connected.

11 years agopatch [#17772] Fluid solver not built with OpenMP in Makefile build system
Kent Mein [Mon, 6 Oct 2008 19:57:42 +0000 (19:57 +0000)]
patch [#17772] Fluid solver not built with OpenMP in Makefile build system
Submitted By: gsr


11 years agoUse xrange() rather than range() for loop iterations.
Chris Want [Mon, 6 Oct 2008 17:11:10 +0000 (17:11 +0000)]
Use xrange() rather than range() for loop iterations.

11 years agoA fix for bug #8814:
Chris Want [Mon, 6 Oct 2008 17:06:13 +0000 (17:06 +0000)]
A fix for bug #8814:

Smarter handling of faces that have a material index that points
to a null material.

11 years agoone-liner fix for id property duplication bug
Joseph Eagar [Mon, 6 Oct 2008 10:24:32 +0000 (10:24 +0000)]
one-liner fix for id property duplication bug

11 years ago* dont change handle types when adjusting the radius or tilt of a curve handel.
Campbell Barton [Mon, 6 Oct 2008 09:17:49 +0000 (09:17 +0000)]
* dont change handle types when adjusting the radius or tilt of a curve handel.
* dont take the handles into account for the manipulator center when they are not drawn.

11 years agoBugfix:
Joshua Leung [Mon, 6 Oct 2008 08:29:15 +0000 (08:29 +0000)]

Grease Pencil sketches in OGL-render should only show up if they were enabled for the original 3d-view.

11 years agofix for [#17560] Error in BPY_run_python_script
Campbell Barton [Mon, 6 Oct 2008 08:02:35 +0000 (08:02 +0000)]
fix for [#17560] Error in BPY_run_python_script
any path starting with a '.' on win32 would be replaced with C:\ (or the default root)
this was added rev 6568 so the file selector would replace "." with C:\. should be moved to fileselector but for now compare with "." rather then checking the first char.

header_view3d.c - prop edit and render were aligning in curve edit mode.

11 years agofix for own bugs in curves.
Campbell Barton [Mon, 6 Oct 2008 06:10:14 +0000 (06:10 +0000)]
fix for own bugs in curves.
- the number of segments was always 1 too many on cyclic curves.
- [#17739] - normals were not being calculated when rendering curves.

Replaced macro DL_SURFINDEX with a function. it that assumes variable names and could break from the loop that called it.

11 years agouse uint8_t and uint32_t rather then Uint8 and Uint32, (mingw didnt know about Uint's)
Campbell Barton [Mon, 6 Oct 2008 01:59:11 +0000 (01:59 +0000)]
use uint8_t and uint32_t rather then Uint8 and Uint32, (mingw didnt know about Uint's)

11 years ago=== SCons ===
Nathan Letwory [Sun, 5 Oct 2008 19:07:09 +0000 (19:07 +0000)]
=== SCons ===

* small doc update

11 years ago== FFMPEG ==
Peter Schlaile [Sun, 5 Oct 2008 17:31:33 +0000 (17:31 +0000)]
== FFMPEG ==

Added optional OGG / theora / vorbis support.
(OGG-format encoding is currently disabled, since the bundled ffmpeg version
is broken here)

Fixed a bug with PTS-encoding, to make theora work.

You have to explicitly enable it and currently only scons is supported.

Otherwise: enjoy! :)

11 years agoPython API
Ken Hughes [Sun, 5 Oct 2008 14:31:40 +0000 (14:31 +0000)]
Python API
Change documentation for Object.getSize(), Object.getEuler(), Object.getLocation() to clear up confusion about 'localspace' parameter.

11 years ago* Grease Pencil - changed defaulted for sensitivity userprefs. Will overwrite old...
Joshua Leung [Sun, 5 Oct 2008 12:06:55 +0000 (12:06 +0000)]
* Grease Pencil - changed defaulted for sensitivity userprefs. Will overwrite old settings too (to keep users less confused about this).

* Removed some unneeded funcs (compiler warnings)

11 years agoBugfix #8908
Ton Roosendaal [Sun, 5 Oct 2008 12:02:36 +0000 (12:02 +0000)]
Bugfix #8908

Using shapekeys, you get corruptions in other shapes when you undo into
a previous editmode session. The "key index" values become invalid.
Now, if you have shape keys, entering editmode will clear the previously
stored undos.

11 years agoGrease Pencil:
Joshua Leung [Sun, 5 Oct 2008 11:49:09 +0000 (11:49 +0000)]
Grease Pencil:

* Separated duplicate methods out into several functions

* Added copy/paste for gp-frames in Action Editor. Only strokes that are appropriate for the spacetype that the destination layer belongs to will be added to avoid wasted memory usage. Otherwise, was impossible to move sketches between views/layers (which was intended for PyAPI access that didn't get done).

Note: there will currently still be an extra gp-frame created, even if the current no strokes got pasted. There's commented out code which would delete it, but somehow that causes errors, so better to be safe for now.

11 years agoBugfix:
Joshua Leung [Sun, 5 Oct 2008 10:48:07 +0000 (10:48 +0000)]

Reordering Grease-Pencil frames in the Action Editor after transforms was not working at all. Seems I forgot to fix this part after changing what the 'Grease Pencil' editing mode in Action Editor showed.

11 years agoFix for [#17758] Particle Caching Problem
Janne Karhu [Sun, 5 Oct 2008 09:44:46 +0000 (09:44 +0000)]
Fix for [#17758] Particle Caching Problem
-A line initializing particles from pre-cache days was still in place causing the wrong behavior.

11 years agoBugfix #17750
Ton Roosendaal [Sun, 5 Oct 2008 09:27:14 +0000 (09:27 +0000)]
Bugfix #17750

Wrap text and moving cursor with a selection still crashed.
Thanks Zanqdo! :)

(Also cleaned code layout to use same convention as it was)

11 years agoFix for bug #17762: id property double type did not get copied correct.
Brecht Van Lommel [Sun, 5 Oct 2008 01:15:58 +0000 (01:15 +0000)]
Fix for bug #17762: id property double type did not get copied correct.

11 years agoFix for bug #17761: small GLSL update tweak, switching ray and
Brecht Van Lommel [Sun, 5 Oct 2008 00:21:43 +0000 (00:21 +0000)]
Fix for bug #17761: small GLSL update tweak, switching ray and
buffer shadow didn't update the viewport correct.

11 years agoFix for bug #17684: GLSL bug with shadows and material nodes,
Brecht Van Lommel [Sat, 4 Oct 2008 22:21:46 +0000 (22:21 +0000)]
Fix for bug #17684: GLSL bug with shadows and material nodes,
missed unbinding a texture giving extremely slow frontbuffer