blender.git
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.
http://blenderartists.org/forum/showthread.php?p=1228670#post1228670

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

Kent

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)]
WebPlugin
fix:
* web plugin works on opera too

sandboxing:
* 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 .

testing:
* 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

Kent

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:
http://projects.blender.org/tracker/?func=detail&atid=125&aid=8814&group_id=9

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)]
Bugfix:

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)]
Bugfix:

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

11 years agoFix for part of bug #17759: point cache clearing did too much, also
Brecht Van Lommel [Sat, 4 Oct 2008 21:26:48 +0000 (21:26 +0000)]
Fix for part of bug #17759: point cache clearing did too much, also
clearing other physics systems on the same object.

11 years agoBugfix for [#17748] "Copy and paste under window since rev 16769"
Ian Thompson [Sat, 4 Oct 2008 21:04:16 +0000 (21:04 +0000)]
Bugfix for [#17748] "Copy and paste under window since rev 16769"
Now actually copies to the clipboard on copy/cut when editing UI fields.

11 years agoFix wrong result for GLSL material node with only diffuse output
Brecht Van Lommel [Sat, 4 Oct 2008 20:22:43 +0000 (20:22 +0000)]
Fix wrong result for GLSL material node with only diffuse output
and shadeless material.

11 years agoFix for bug #17752: the particle modifier convert button didn't
Brecht Van Lommel [Sat, 4 Oct 2008 19:58:08 +0000 (19:58 +0000)]
Fix for bug #17752: the particle modifier convert button didn't
do anything for dupli objects and groups, which could already
be converted with ctrl+shift+A, but convert can do it as well.

11 years agoBugfix: modified game material settings in blender didn't get
Brecht Van Lommel [Sat, 4 Oct 2008 17:04:23 +0000 (17:04 +0000)]
Bugfix: modified game material settings in blender didn't get
taken into account when loading a new .blend.

11 years agoGame player: preserve material, debug settings, between .blend files.
Brecht Van Lommel [Sat, 4 Oct 2008 16:42:36 +0000 (16:42 +0000)]
Game player: preserve material, debug settings, between .blend files.

11 years agoBugfix #17753
Ton Roosendaal [Sat, 4 Oct 2008 15:02:40 +0000 (15:02 +0000)]
Bugfix #17753

Fix for rev 16702 commit to better support per-vertex radius in curves.
It caused the directional lines for 3d curves to not draw correct.

11 years agoBugfix #17750
Ton Roosendaal [Sat, 4 Oct 2008 13:42:45 +0000 (13:42 +0000)]
Bugfix #17750

Texteditor misses NULL checks in 'wrap text' code, moving cursur while
text is selected.

11 years agoBugfix #17746
Ton Roosendaal [Sat, 4 Oct 2008 12:31:54 +0000 (12:31 +0000)]
Bugfix #17746

Curve deform did not work yet on Text and Curve objects, this because it
was not providing the entire array of vertices, for a proper detection of
min/max bounds of the full input.

11 years agoBugfix #17720
Ton Roosendaal [Sat, 4 Oct 2008 11:04:09 +0000 (11:04 +0000)]
Bugfix #17720

Retopo crashed on undo-redo, caused by bad copying of data for undo stack.
I solved crash or corruptions, but it still is pretty weak code here.

11 years agoMore cosmetic changes to the bullet buttons: move most common soft body buttons to...
Benoit Bolsee [Fri, 3 Oct 2008 21:50:42 +0000 (21:50 +0000)]
More cosmetic changes to the bullet buttons: move most common soft body buttons to main panel, only leave advanced settings in advanced panel. Reduce size of advance panel.

11 years agobugfix: add Ghost support for soft bodies, so that they don't collide with ghosts...
Erwin Coumans [Fri, 3 Oct 2008 21:42:19 +0000 (21:42 +0000)]
bugfix: add Ghost support for soft bodies, so that they don't collide with ghosts, and can be ghost themselves.

11 years agoMove the Solaris workaround in btScalar behind the sun define, to only make sun and...
Erwin Coumans [Fri, 3 Oct 2008 20:51:56 +0000 (20:51 +0000)]
Move the Solaris workaround in btScalar behind the sun define, to only make sun and apple ppc slower:
#if defined (__sun) || defined (__sun__) || defined (__sparc) || (defined (__APPLE__) && ! defined (__i386__))
Also includes a fix to uninitialized variable (can cause failing collisions).

If possible, report all changes to extern/bullet2 to http://code.google.com/p/bullet/issues/list

11 years agoBGE patch: some cosmetic change in the bullet buttons:
Benoit Bolsee [Fri, 3 Oct 2008 20:17:05 +0000 (20:17 +0000)]
BGE patch: some cosmetic change in the bullet buttons:

- Bring Actor button back in main panel: makes the users
  life easier to identify which object is visible to
  near and radar sensors.
- Give more space to the Advanced Settings panel.
- Display radius control button even for static objects
  if sphere bound shape is selected. Same for displaying
  the radius in the 3D view.

11 years agoFix for part of bug #17464, though not the original issue yet. A GLSL
Brecht Van Lommel [Fri, 3 Oct 2008 19:34:49 +0000 (19:34 +0000)]
Fix for part of bug #17464, though not the original issue yet. A GLSL
shadow drawing fix also affected 3d view opengl render, hiding armatures,
now there's separate flags for it.

11 years agoSmall fix for (harmless) use of uninitialized memory.
Brecht Van Lommel [Fri, 3 Oct 2008 19:30:45 +0000 (19:30 +0000)]
Small fix for (harmless) use of uninitialized memory.

11 years agoSolaris was having problems with sqrtf and friends again.
Kent Mein [Fri, 3 Oct 2008 13:16:10 +0000 (13:16 +0000)]
Solaris was having problems with sqrtf and friends again.
I changed sqrtf to sqrt in elbeem
in bullet2 I added defines found in floatpatch.h eventually
we should make a "floatpatch.h" that all of blender can use.

Kent

11 years agoBugfix for fluidsim UI inconsistencies, please check your settings in old files
Daniel Genrich [Fri, 3 Oct 2008 13:02:34 +0000 (13:02 +0000)]
Bugfix for fluidsim UI inconsistencies, please check your settings in old files

11 years agoMore Grease Pencil touchups:
Joshua Leung [Fri, 3 Oct 2008 11:56:11 +0000 (11:56 +0000)]
More Grease Pencil touchups:

* Eraser size is now UserPref. This way it is more easily tweaked than using layer stroke-thickness squared, but it is less accessible.

* Restored stroke 'smoothing' (post-conversion) option as UserPref option. Off by default.

* Fixed bug with convert tools. Was adding an extra datablock everytime, that wasn't being used (and was subsequently dicarded).

* Moved pressure vars from paint-loop to temp-struct (during painting). Also, moved the macro which tests for converting straight lines.

11 years ago interpreted request from Carsten - make message sensor work.
Campbell Barton [Fri, 3 Oct 2008 09:51:43 +0000 (09:51 +0000)]
 interpreted request from Carsten - make message sensor work.
object message actuators needed the prefix OB when sending a message to a specific object.--This line, and those below, will be ignored--

M    source/gameengine/Converter/KX_ConvertActuators.cpp
M    source/blender/blenkernel/BKE_blender.h
M    source/blender/src/buttons_logic.c
M    source/blender/blenloader/intern/readfile.c

11 years agoGrease Pencil bugfix:
Joshua Leung [Fri, 3 Oct 2008 09:40:48 +0000 (09:40 +0000)]
Grease Pencil bugfix:

Disabled fancy 'dot' drawing for Image Editor. This is still just a quick-fix (like for fancy strokes), and it would be nice to get the scaling right someday.

11 years agoBlender works with python 2.6, our own import functions that replace pythons internal...
Campbell Barton [Fri, 3 Oct 2008 06:27:41 +0000 (06:27 +0000)]
Blender works with python 2.6, our own import functions that replace pythons internal function needed updating for an extra in argument in 2.6.

if importing is not working blender should not crash (was crashing on exit)

11 years agoerror with GameLogic.globalDict loading. It would replace the dictionary rather then...
Campbell Barton [Fri, 3 Oct 2008 04:41:02 +0000 (04:41 +0000)]
error with GameLogic.globalDict loading. It would replace the dictionary rather then updating it.
This meant the BGE would load in an old dictonary replacing the loaded dict, loosing settings.

was also missing a decref for marshal data

11 years agoAdded back a few lines that were accidentally chopped out when fixing pad0 view featu...
Joshua Leung [Fri, 3 Oct 2008 03:29:34 +0000 (03:29 +0000)]
Added back a few lines that were accidentally chopped out when fixing pad0 view feature. This means that the grid is drawn correctly (i.e. not shown) when the view is rotated using the numpad up/down/left/right keys.

11 years agoFix for bug #17722: sun light in the texture viewmode was broken.
Brecht Van Lommel [Thu, 2 Oct 2008 23:04:28 +0000 (23:04 +0000)]
Fix for bug #17722: sun light in the texture viewmode was broken.

11 years agoFix for bug #17735: vertex color render layer got invalid value
Brecht Van Lommel [Thu, 2 Oct 2008 22:55:25 +0000 (22:55 +0000)]
Fix for bug #17735: vertex color render layer got invalid value
when switching to weight paint mode.

11 years agotransform snap bugfix: correctly ignore hidden elements when snapping to edit mode...
Martin Poirier [Thu, 2 Oct 2008 17:20:58 +0000 (17:20 +0000)]
transform snap bugfix: correctly ignore hidden elements when snapping to edit mode mesh

11 years agomissing ; in last commit
Campbell Barton [Thu, 2 Oct 2008 17:11:49 +0000 (17:11 +0000)]
missing ; in last commit
radius was not being calculated on curves that had a bevel object

11 years agoblender would crash if the "sys" module didnt import, now just give a warning and...
Campbell Barton [Thu, 2 Oct 2008 16:59:08 +0000 (16:59 +0000)]
blender would crash if the "sys" module didnt import, now just give a warning and continue.

11 years agoMaybe not needed, I was running into some problems though
Kent Mein [Thu, 2 Oct 2008 16:52:39 +0000 (16:52 +0000)]
Maybe not needed, I was running into some problems though
and noticed dos line endings in a bunch of files so ran
dos2unix on everything in bullet2.

Erwin,  I noticed there are a few files that do not have
license info in them, couple of quick examples are: btDefaultMotionState.h
btHashMap.h btQuickprof.cpp
could you take a look at add where needed?   If you want I can give a list
of files I think should get it added  and or just add the standard one
say the one in src/btBulletCollisionCommon.h

Kent

11 years agoBugfix #17723
Ton Roosendaal [Thu, 2 Oct 2008 12:29:45 +0000 (12:29 +0000)]
Bugfix #17723

Clipboard copy/paste error, missing NULL check caused crashes.

11 years ago* return the right error code
Nathan Letwory [Thu, 2 Oct 2008 08:46:04 +0000 (08:46 +0000)]
* return the right error code
* print error message when something goes wrong with nsis installer creation

11 years agoKeyframe Checking (i.e. does given frame have a keyframe) is now implemented in the...
Joshua Leung [Thu, 2 Oct 2008 08:39:30 +0000 (08:39 +0000)]
Keyframe Checking (i.e. does given frame have a keyframe) is now implemented in the keyframing api.

Replaced the method used in to check if there's a keyframe on the current frame, when drawing the active object name / frame number info with this new code.
- It should in theory be faster than the previous code, as it doesn't have to build an entire list everytime of all keyframes, and also uses more efficient search method.
- Added some settings to control what sources of animation data are used (per 3d-view). Can be found in the View Properties panel.

This should be stable... release builders should ignore this commit for now (to avoid having differences between release candidates).

11 years ago* use release flags as default, except for openmp support
Nathan Letwory [Thu, 2 Oct 2008 06:22:36 +0000 (06:22 +0000)]
* use release flags as default, except for openmp support

11 years ago* make sure we link against proper openmp library when using msvc
Nathan Letwory [Thu, 2 Oct 2008 06:11:47 +0000 (06:11 +0000)]
* make sure we link against proper openmp library when using msvc
* return error code from makensis process instead of 0

11 years agoonly paint onto selected faces when painting mask is enabled. (request from Carsten)
Campbell Barton [Thu, 2 Oct 2008 01:12:37 +0000 (01:12 +0000)]
only paint onto selected faces when painting mask is enabled. (request from Carsten)

11 years agoPython 2.4 should build with the game engine now, no thanks to python for switching...
Campbell Barton [Thu, 2 Oct 2008 00:22:28 +0000 (00:22 +0000)]
Python 2.4 should build with the game engine now, no thanks to python for switching from char to const char

11 years agoBGE patch: add frameProp to Ipo actuator (Carsten's request).
Benoit Bolsee [Wed, 1 Oct 2008 21:17:00 +0000 (21:17 +0000)]
BGE patch: add frameProp to Ipo actuator (Carsten's request).

11 years agoBGE patch: new force field constraint actuator
Benoit Bolsee [Wed, 1 Oct 2008 19:16:13 +0000 (19:16 +0000)]
BGE patch: new force field constraint actuator

A new type of constraint actuator is available: Force field.
It provides a very similar service to the Fh material feature
but with some specificities:
- It is defined at the object level: each object can have
  different settings and you don't need to use material.
- It can be applied in all 6 directions and not just -Z.
- It can be enabled/disabled easily (it's an actuator).
- You can have multiple force fields active at the same time
  on the same object in different direction (think of a
  space ship in a tunnel with a repulsive force field
  on each wall).
- You can have a different damping for the rotation.

Besides that it provides the same dynamic behavior and the
parameters are self explanatory.
It works by adapting the linear and angular velocity: the
dynamic is independent of the mass. It is compatible with
all other motion actuators.

Note: linear and anysotropic friction is not yet implemented,
the only friction will come from the object damping parameters.
Support for friction will be added in a future revision.

11 years agoDisable building of fftw
Daniel Genrich [Wed, 1 Oct 2008 17:02:38 +0000 (17:02 +0000)]
Disable building of fftw

11 years agoGeneral tidying of Grease Pencil code...
Joshua Leung [Wed, 1 Oct 2008 08:23:08 +0000 (08:23 +0000)]
General tidying of Grease Pencil code...

11 years agoBGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)
Benoit Bolsee [Wed, 1 Oct 2008 07:55:02 +0000 (07:55 +0000)]
BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)

Implementation of the PHY_IPhysicsController::SetMargin(),
GetMargin(), SetRadius() and GetRadius() for Bullet and Sumo
to allow resetting the Near sensor radius. For bullet use
the new setUnscaledRadius() function to change sphere radius.

In pPreparation of a Fh constraint actuator:
- Add KX_IPhysicsController::GetRadius()
- Fix implementation of KX_BulletPhysicsController::GetVelocity()
  (velocity at a point in geometric coordinate)
- Don't try to set velocity on static object (Bullet will assert)
- Add KX_GameObject::GetVelocity() for C access to local velocity

11 years agoUpdate MSVC project file for Bullet soft body. Strange, I though I already fixed...
Benoit Bolsee [Wed, 1 Oct 2008 07:04:10 +0000 (07:04 +0000)]
Update MSVC project file for Bullet soft body. Strange, I though I already fixed them.

11 years ago+ hook up a few more parameters, that can be useful for Bullet soft bodies
Erwin Coumans [Wed, 1 Oct 2008 06:36:17 +0000 (06:36 +0000)]
+ hook up a few more parameters, that can be useful for Bullet soft bodies
+ work-in-progress to hook up cluster constraints (they are better than node/vertex pinning, because they maintain a proper world coordinate system)

11 years agoBugfix #17721: Action Strips added from scripts don't work properly unless at least...
Joshua Leung [Wed, 1 Oct 2008 00:14:28 +0000 (00:14 +0000)]
Bugfix #17721: Action Strips added from scripts don't work properly unless at least one strip has already been added by hand.

Synced the behaviour of the PyAPI when adding strips with the behaviour of UI.

11 years agoBugfix #17717: IPOs / Sequencer / Markers: deleting an IPO delete also selected markers
Joshua Leung [Wed, 1 Oct 2008 00:02:06 +0000 (00:02 +0000)]
Bugfix #17717: IPOs / Sequencer / Markers: deleting an IPO delete also selected markers

Final attempt at solving this problem. This time I've decided to separate the 'delete markers' from the 'delete keys' hotkeys, as it proved to be too problematic for users.

The new hotkey for deleting markers is "Shift-XKEY". (or Shift-Delkey)
P.S. I know that 'Shift' is usually used for 'add' operations, but this will have to do for now...

----

Also, rearranged button order in Timeline header a bit to group keyframing buttons together more.

11 years agoadd support for Bullet soft body constraints against a Bullet rigid body, as well...
Erwin Coumans [Tue, 30 Sep 2008 23:34:25 +0000 (23:34 +0000)]
add support for Bullet soft body constraints against a Bullet rigid body, as well as 'fixing' it. Just use the existing rigid body joint to use it. For now, it searches the closest node/vertex to the pivot. So you can use multiple constraints/joint to attach a cloth, soft body etc.

11 years agoadd setUnscaledRadius for btSphereShape
Erwin Coumans [Tue, 30 Sep 2008 22:05:12 +0000 (22:05 +0000)]
add setUnscaledRadius for btSphereShape

11 years agoFix for bug #17691: edgesplit was crashing on windows on large meshes
Brecht Van Lommel [Tue, 30 Sep 2008 17:06:41 +0000 (17:06 +0000)]
Fix for bug #17691: edgesplit was crashing on windows on large meshes
due to stack overflow.

11 years agoKeyframing:
Joshua Leung [Tue, 30 Sep 2008 12:30:56 +0000 (12:30 +0000)]
Keyframing:

- More cleanups, to move the return of success from insertkey to take into account results of 'only needed' keying option
- Added a 'better' test for size of area than the previous one (for use with the keyframing buttons in the TimeLine)
- Moved the checks for Action/IPO editors to commonkey_context_get() so that the keyframing buttons in TimeLine could also consider using these editor's keyframing methods too

11 years agoA few cleanups in keyframing.c
Joshua Leung [Tue, 30 Sep 2008 12:03:31 +0000 (12:03 +0000)]
A few cleanups in keyframing.c
- Added missing update calls for buttons window keyframing. This should get rid of all those sporadic update problems (using a different keyingset would result in no curve being added)

11 years agoBugfix:
Joshua Leung [Tue, 30 Sep 2008 11:52:59 +0000 (11:52 +0000)]
Bugfix:

Keyframing from Buttons Window was broken for Materials/Lamps/Worlds due to a mixup regarding the correct adrcodes for texture-slots.

11 years agoAction Editor:
Joshua Leung [Tue, 30 Sep 2008 10:54:12 +0000 (10:54 +0000)]
Action Editor:

* Grease Pencil Mode - now includes the area-ID into the name string. While the numbers currently don't mean much (though they do make it easier to distinguish between views to more than before), they could become handy if/when PyAPI access to Grease Pencil data comes into handy

* Copy + Paste bugfixes
- When there was a collapsed group, it was impossible to get the keyframes in the keyframe summary to be copied too. This fix shouldn't cause any problems with other things...
- Feature to allow pasting to any channel without doing name matching was not working

11 years agoFix for bug #13624: knife cut with vertex snapping was broken.
Brecht Van Lommel [Tue, 30 Sep 2008 07:01:37 +0000 (07:01 +0000)]
Fix for bug #13624: knife cut with vertex snapping was broken.

11 years agoFix for bug #17302: subsurf + particle size vertex groups did not
Brecht Van Lommel [Tue, 30 Sep 2008 06:12:47 +0000 (06:12 +0000)]
Fix for bug #17302: subsurf + particle size vertex groups did not
work correct, also refactored some code here to make it more clear.

11 years agoWITH_ELBEEM diabled wasnt working with cmake
Campbell Barton [Tue, 30 Sep 2008 05:05:50 +0000 (05:05 +0000)]
WITH_ELBEEM diabled wasnt working with cmake

11 years agomodify BLI_convertstringcode so windows paths are converted from C:\foo.jpg to /c...
Campbell Barton [Tue, 30 Sep 2008 04:08:00 +0000 (04:08 +0000)]
modify BLI_convertstringcode so windows paths are converted from C:\foo.jpg to /c/foo.jpg
since there is C:\ prefix cant exist on a unix system this wont break any files.

11 years ago* free bullet-softbody was using free softbody function.
Campbell Barton [Mon, 29 Sep 2008 23:46:01 +0000 (23:46 +0000)]
* free bullet-softbody was using free softbody function.
* mistake from own changes to curves, new curves were being added with too low resolution.
* removed warnings I added recently

11 years agoFix for part of bug #17521: incorrect uv coordinates for particle
Brecht Van Lommel [Mon, 29 Sep 2008 23:33:27 +0000 (23:33 +0000)]
Fix for part of bug #17521: incorrect uv coordinates for particle
density controlled by a texture.

11 years agoFix for bug #17713: touch/no override for rendering was broken.
Brecht Van Lommel [Mon, 29 Sep 2008 22:31:47 +0000 (22:31 +0000)]
Fix for bug #17713: touch/no override for rendering was broken.

11 years agoFix for bug #17712: fluid button activation crash.
Brecht Van Lommel [Mon, 29 Sep 2008 22:07:13 +0000 (22:07 +0000)]
Fix for bug #17712: fluid button activation crash.

11 years agoAdd 2 items to CTL-A menu: Scale to ObData and Rotation to ObData. These options...
Benoit Bolsee [Mon, 29 Sep 2008 20:13:40 +0000 (20:13 +0000)]
Add 2 items to CTL-A menu: Scale to ObData and Rotation to ObData. These options allows to apply separately the scale and the rotation to the object data. Usefull to physics compound objects that do not support scaling.