13 years agoFix for bug #16662: modifiers on lattices were ignored sometimes
Brecht Van Lommel [Fri, 19 Sep 2008 21:52:15 +0000 (21:52 +0000)]
Fix for bug #16662: modifiers on lattices were ignored sometimes
when rendering opengl previews, it unnecessarily cleared lattice
displists when it was really intended for shaded mode colors.

13 years agoLinux platforms
Ken Hughes [Fri, 19 Sep 2008 21:00:45 +0000 (21:00 +0000)]
Linux platforms
Patch to include freedesktop icons in linux release builds, contributed by
Ralf H√∂lzemer (cheleb).

13 years agoBGE patch: new 'Advanced Settings' button to keep special Bullet options away from...
Benoit Bolsee [Fri, 19 Sep 2008 20:41:38 +0000 (20:41 +0000)]
BGE patch: new 'Advanced Settings' button to keep special Bullet options away from main UI.

Three features that were on the main UI interface are now
moved to the Advanced Settings panel:
Margin, Actor (that becomes Sensor Actor) and No sleeping.

Sensor Actor is now a feature: it can be turned on and off
for all types of objects, and not just static objects.
Select the Sensor Actor button to make the object visible
to Near and Radar sensor.
The button is selected by default for dynamic objects
and unselected by default for static objects, to match
previous behavior.

13 years agoPatch #17348 by Roger Wickes
Ton Roosendaal [Fri, 19 Sep 2008 20:22:54 +0000 (20:22 +0000)]
Patch #17348 by Roger Wickes

Fix in Bake Constraints script, better naming for new object.

13 years ago== Python Space Handlers ==
Willian Padovani Germano [Fri, 19 Sep 2008 18:53:05 +0000 (18:53 +0000)]
== Python Space Handlers ==

Patch #9673: "Short patch to make spacehandler event scripts work more like normal python gui script handlers" by Steven Truppe:

This patch adds the Blender.eventValue variable available for space handlers, holding the event value (aka 1 for button and key presses, X or Y coordinate for mousex / mousey movement). Thanks, Steven. PS: this doesn't break existing scripts.

13 years agoFix again for the NVidia driver bug. This time I'm just giving up
Brecht Van Lommel [Fri, 19 Sep 2008 16:09:26 +0000 (16:09 +0000)]
Fix again for the NVidia driver bug. This time I'm just giving up
using linking together the precompiled library shader code and
material code and recompiling it all again for each material even
if it gives a performance hit, since the previous workaround only
worked on some driver versions still.

13 years agoPatch #13422, By Roland Hess, Shadow Color
Ton Roosendaal [Fri, 19 Sep 2008 16:01:22 +0000 (16:01 +0000)]
Patch #13422, By Roland Hess, Shadow Color

Finally, after a long time new render candy for the non-game peoples! :)

Good doc is here: (url splits in two)

Note the colorpicker for shadow is in "Shadow and Spot" panel. A bit
hidden, could get more attention. For later. :)

13 years agoPatch #8213 by Shunichi Fuji
Ton Roosendaal [Fri, 19 Sep 2008 14:18:41 +0000 (14:18 +0000)]
Patch #8213 by Shunichi Fuji

Fixes crash with FT fonts in some cases, just removed unnused line of code.

13 years agoPyConstraints:
Joshua Leung [Fri, 19 Sep 2008 12:43:21 +0000 (12:43 +0000)]

Basic (non-python) target evaluation still occurs when scriptlinks are disabled.

13 years agoBugfix #17643: Action Editor buffer copy/paste not working
Joshua Leung [Fri, 19 Sep 2008 12:41:26 +0000 (12:41 +0000)]
Bugfix #17643: Action Editor buffer copy/paste not working

Removed superfluous check for destination IPO-block/IPO-curve which may not have existed. This meant that pasting keyframes into an "empty" Action Channel sometimes failed.

13 years ago== IPO Defines Cleanup ==
Joshua Leung [Fri, 19 Sep 2008 12:33:17 +0000 (12:33 +0000)]
== IPO Defines Cleanup ==

Just a bit of tidyup for IPO header-files.

Moved IPO Curves + Drivers out of DNA_curve_types.h

13 years agoscons update, BF_NO_ELBEEM wasnt working, WITH_BF_SDL wasnt implimented, WITH_CCGSUBS...
Campbell Barton [Fri, 19 Sep 2008 01:39:34 +0000 (01:39 +0000)]
scons update, BF_NO_ELBEEM wasnt working, WITH_BF_SDL wasnt implimented, WITH_CCGSUBSURF isnt used anymore.

13 years ago== Python Script Links ==
Willian Padovani Germano [Thu, 18 Sep 2008 22:33:49 +0000 (22:33 +0000)]
== Python Script Links ==

Bug #17599:
Summary: Python constraints, good in 2.46 not working anymore in 2.47

Improved my old hack to avoid frame changed scriptlinks from running when rendering stills, should fix this bug. It also causes REDRAW scriptlinks to be executed during renders, but that conforms to how FRAMECHANGED ones work.

BTW: this can still be improved. The current system meant to disable all Python functionality at once needs imo to be replaced by one that allows to enable / disable per feature (scriptlinks, pyconstraints, pynodes, etc.). A better way to inform scriptlinks about what is going on (render, anim, render anim, etc.) would also help. Will discuss with others.

13 years agofixing scons build. needed BoolOption in argument definition
Martin Poirier [Thu, 18 Sep 2008 21:18:53 +0000 (21:18 +0000)]
fixing scons build. needed BoolOption in argument definition

13 years ago[#7297] Fix knife visualization on MacMini Intel w/ Intel gfx
unclezeiv [Thu, 18 Sep 2008 20:37:11 +0000 (20:37 +0000)]
[#7297] Fix knife visualization on MacMini Intel w/ Intel gfx

13 years agoBGE patch: change constraint location actuator to work in local coordinates. It won...
Benoit Bolsee [Thu, 18 Sep 2008 19:28:28 +0000 (19:28 +0000)]
BGE patch: change constraint location actuator to work in local coordinates. It won't change anything for root objects but will be of some use for child objects.

13 years agoA typo in my fix for bug #11740 caused problems with at least grid distributed particles.
Janne Karhu [Thu, 18 Sep 2008 17:42:17 +0000 (17:42 +0000)]
A typo in my fix for bug #11740 caused problems with at least grid distributed particles.

13 years agoReactor particles were born with incorrect timing. Some changes made could effect...
Janne Karhu [Thu, 18 Sep 2008 17:19:40 +0000 (17:19 +0000)]
Reactor particles were born with incorrect timing. Some changes made could effect normal particles too, but after many tests I didn't notice any adverse effects. Be sure to poke me hard if there are some though :)

13 years agoThis file did not compile, but is also not part of the build target...
Ton Roosendaal [Thu, 18 Sep 2008 16:43:31 +0000 (16:43 +0000)]
This file did not compile, but is also not part of the build target...
Fixed neverheless, patch #6258 from Early Ehlinger

13 years agoGrease Pencil - Stroke Sensitivity:
Joshua Leung [Thu, 18 Sep 2008 11:49:57 +0000 (11:49 +0000)]
Grease Pencil - Stroke Sensitivity:

Sensitivity to mouse movement when drawing can now be customised in the User Prefs, under 'Edit Methods'.

13 years agoscons options BF_CXX, WITH_BF_STATICCXX, BF_CXX_LIB_STATIC for static linking to...
Campbell Barton [Thu, 18 Sep 2008 03:05:02 +0000 (03:05 +0000)]
scons options BF_CXX, WITH_BF_STATICCXX, BF_CXX_LIB_STATIC for static linking to stdc++ because of problems running blender on some systems.

13 years agoHopefully fixes crash in particle system with effector enabled
Daniel Genrich [Thu, 18 Sep 2008 01:55:43 +0000 (01:55 +0000)]
Hopefully fixes crash in particle system with effector enabled

13 years agoFix for bug #3858: the game engine mouse focus sensor did not work
Brecht Van Lommel [Thu, 18 Sep 2008 01:46:28 +0000 (01:46 +0000)]
Fix for bug #3858: the game engine mouse focus sensor did not work
correct if there was more than one camera. It shoots rays from the
active camera, but used the viewport from whichever camera was drawn
last, now it uses the correct vieport.

13 years agoThis adds support for the new-ish options:
Matt Ebb [Thu, 18 Sep 2008 00:51:51 +0000 (00:51 +0000)]
This adds support for the new-ish options:

to the bpy armature modifier API.

It also fixes a significant problem - In the docs, it refers to
the 'VERTGROUP' field as being a string value, shared
by lattice, armature, etc, referring to the 'VGroup' field in the
armature modifier that defines a vertex group 'mask'
which the armature's effect is restricted to.

However, previously, for some very mistaken reason, in processing
the getters/setters for the armature modifier, the
VERTGROUP field was pointing to the quite different 'Vert. Groups'
toggle in the armature modifier, that enables or
disables using vertex groups for deformation (as opposed to

I've fixed this, so VERTGROUP points to the VGroup string, as is
already defined in the docs and consistent with other
modifiers like Lattice. A new field: 'VGROUPS' has been added,
which is the analog to the 'Vert Groups' toggle.

13 years agoneeded these changes to get bullet building with cmake and linking with scons
Campbell Barton [Thu, 18 Sep 2008 00:10:12 +0000 (00:10 +0000)]
needed these changes to get bullet building with cmake and linking with scons

13 years agoBGE bug #17578: repair linV actuator in Add+Local mode.
Benoit Bolsee [Wed, 17 Sep 2008 21:47:05 +0000 (21:47 +0000)]
BGE bug #17578: repair linV actuator in Add+Local mode.

13 years agoUpdate MSVC project file to include BulletSoftBody
Benoit Bolsee [Wed, 17 Sep 2008 21:14:48 +0000 (21:14 +0000)]
Update MSVC project file to include BulletSoftBody

13 years agoadded another missing file, btHashMap
Erwin Coumans [Wed, 17 Sep 2008 20:02:20 +0000 (20:02 +0000)]
added another missing file, btHashMap

13 years agoadded src/LinearMath/btConvexHull.cpp
Erwin Coumans [Wed, 17 Sep 2008 19:58:16 +0000 (19:58 +0000)]
added src/LinearMath/btConvexHull.cpp

13 years agoPlease add extern/bullet2/src/LinearMath/btConvexHull.cpp to your build system!
Erwin Coumans [Wed, 17 Sep 2008 19:47:26 +0000 (19:47 +0000)]
Please add extern/bullet2/src/LinearMath/btConvexHull.cpp to your build system!
Reverted back to original Bullet version.

13 years agoFix for [#17642] Particule Hair - Vertex Group lenght don't works without Children
Janne Karhu [Wed, 17 Sep 2008 19:29:44 +0000 (19:29 +0000)]
Fix for [#17642] Particule Hair - Vertex Group lenght don't works without Children
- This feature had been removed from the code! So this is how things work now:
For normal (non-child) hair particles the length vgroup is used if we're not in particle edit mode and if there are no child particles. So for example checking "Parents" in the visualization panel when children are in use will result in full length parent strands, this is a feature so that you can see how the parent's go to predict child behavior better, not a bug :)

13 years agoFix for [#17637] Children from "Faces" in Object without a face leads to crash
Janne Karhu [Wed, 17 Sep 2008 17:59:29 +0000 (17:59 +0000)]
Fix for [#17637] Children from "Faces" in Object without a face leads to crash
- a simple check for psys->child was missing

13 years agoBugfix #14412
Ton Roosendaal [Wed, 17 Sep 2008 17:47:59 +0000 (17:47 +0000)]
Bugfix #14412

Outliner option 'unlink group' didn't remove its members, in case the
group members were local in file, a confusing situation happened. Now
it removes members.

13 years agoFix for bug #17634: crash on automatically removing zero size window.
Brecht Van Lommel [Wed, 17 Sep 2008 16:59:52 +0000 (16:59 +0000)]
Fix for bug #17634: crash on automatically removing zero size window.

13 years agoAdded BulletSoftBody as target for Makefile installing of .h files
Ton Roosendaal [Wed, 17 Sep 2008 11:31:03 +0000 (11:31 +0000)]
Added BulletSoftBody as target for Makefile installing of .h files

13 years agorev 16569 broke building.
Campbell Barton [Wed, 17 Sep 2008 11:23:28 +0000 (11:23 +0000)]
rev 16569 broke building.
Looks like bullets Extras/ConvexDecomposition is missing from blenders source.
comment functions so it builds for now.

13 years ago* Some tweaks to the OBJ importer/exporter after chatting with Campbell
Matt Ebb [Wed, 17 Sep 2008 04:07:58 +0000 (04:07 +0000)]
* Some tweaks to the OBJ importer/exporter after chatting with Campbell
- renamed the 'morph target' option to 'keep vertex order'
- enabled 'keep vertex order' by default

This should improve usability for importing and exporting shape keys, point caches, mdds ,etc.

13 years agoDelete Keyframe Tool:
Joshua Leung [Wed, 17 Sep 2008 04:06:59 +0000 (04:06 +0000)]
Delete Keyframe Tool:

* Changed hotkey to Alt-I. As a result, Remove IK is now Ctrl-Alt-I, though that shouldn't affect many people at all as it appears that hardly anyone uses it.

* Added menu entries for Delete Keyframe

13 years agoTexture_getHFracDim was returning an int rather then a float (thanks zuegs for spotting)
Campbell Barton [Wed, 17 Sep 2008 03:13:15 +0000 (03:13 +0000)]
Texture_getHFracDim was returning an int rather then a float (thanks zuegs for spotting)
removed unused var

13 years agoApplied some fixes from Bullet: issues with btDbvtBroadphase, and btSoftBody, and...
Erwin Coumans [Wed, 17 Sep 2008 02:30:19 +0000 (02:30 +0000)]
Applied some fixes from Bullet: issues with btDbvtBroadphase, and btSoftBody, and better fix for 64-bit issue in btCompoundCollisionAlgorithm.

13 years agoPreparation for real-time soft bodies for the game engine, step 1 out of 3. This...
Erwin Coumans [Wed, 17 Sep 2008 01:49:47 +0000 (01:49 +0000)]
Preparation for real-time soft bodies for the game engine, step 1 out of 3. This should be harmless/non-intrusive.
Please make sure each build system include extern/bullet2/src/BulletSoftBody/* and extern/bullet2/src/LinearMath/btConvexHull.*

13 years agoFix for bug #4192: game engine armatures that are dynamically added
Brecht Van Lommel [Wed, 17 Sep 2008 01:29:54 +0000 (01:29 +0000)]
Fix for bug #4192: game engine armatures that are dynamically added
but don't have an action got the pose of already added armatures, even
though they're not related. This also fixes an issue where the armature
in Blender would end up in the pose from the game after ESC, removes
unneeded copies made during armature evaluation, and also solves the
constraint copying hack.

13 years agoBGE patch: bullet buttons UI change after discussion with Erwin: use a drop down...
Benoit Bolsee [Tue, 16 Sep 2008 22:52:42 +0000 (22:52 +0000)]
BGE patch: bullet buttons UI change after discussion with Erwin: use a drop down instead of a series of buttons. Introduction of soft body option.

13 years ago* make BulletSoftBody own small lib to make sure bullet libs don't grow too large...
Nathan Letwory [Tue, 16 Sep 2008 21:23:56 +0000 (21:23 +0000)]
* make BulletSoftBody own small lib to make sure bullet libs don't grow too large for our beloved scons/mingw users.

13 years agoFix for [#17561] when i try to change the particle to hair I cant choose group or...
Janne Karhu [Tue, 16 Sep 2008 21:16:32 +0000 (21:16 +0000)]
Fix for [#17561] when i try to change the particle to hair I cant choose group or object as viz.
-Partly reverted Genscher's previous fix on the issue and added the idea he had as a special case

13 years agoFix for bug #5413: game engine armature actions and shapes keys
Brecht Van Lommel [Tue, 16 Sep 2008 21:11:38 +0000 (21:11 +0000)]
Fix for bug #5413: game engine armature actions and shapes keys
didn't work correct with scene suspend/resume, now works the same
as IPO's.

13 years agoadd BulletSoftBody to SConscript and Makefile
Erwin Coumans [Tue, 16 Sep 2008 21:09:24 +0000 (21:09 +0000)]
add BulletSoftBody to SConscript and Makefile

13 years agoadd src/BulletSoftBody/* to cmake (other build systems also will need to do this...
Erwin Coumans [Tue, 16 Sep 2008 20:52:38 +0000 (20:52 +0000)]
add src/BulletSoftBody/* to cmake (other build systems also will need to do this soon)

13 years agoFix bug that broke editing vertices through python in the game engine.
Brecht Van Lommel [Tue, 16 Sep 2008 19:28:54 +0000 (19:28 +0000)]
Fix bug that broke editing vertices through python in the game engine.

13 years agoFix (harmless) error print about GameLogic.globalDict being lost. Also
Brecht Van Lommel [Tue, 16 Sep 2008 19:25:35 +0000 (19:25 +0000)]
Fix (harmless) error print about GameLogic.globalDict being lost. Also
fixed some memory leaks in this code and simplified it.

13 years ago== Transform Snap ==
Martin Poirier [Tue, 16 Sep 2008 19:10:58 +0000 (19:10 +0000)]
== Transform Snap ==

Tighten test for excluding objects as snap target.

Now exclude all object that are themselves moving (that includes childs of selected objects) as well as objects with moving geometry (like hooked meshes).

The previous situation would cause unfrequent bugs, but especially present in alignment cases (those concerned will understand).

13 years ago"Fix" for #17636 Crashing bug - won't open a file
Janne Karhu [Tue, 16 Sep 2008 18:40:54 +0000 (18:40 +0000)]
"Fix" for #17636 Crashing bug - won't open a file
- The cause was indeed corrupted particle settings which should have caused a deletion of the whole particle system. However the particle modifier was still left and that led to the crash.
- A "fix" because there's really no way of knowing what caused the corruption of the particle settings. If anyone else gets this and can recreate I'd love to get a .blend. Now that there shouldn't be a crash anymore the symptom will be a missing particle system after file load in an object that had a particle system before.

13 years agoAdded check for failing linking of a ID_PA block.
Ton Roosendaal [Tue, 16 Sep 2008 16:20:51 +0000 (16:20 +0000)]
Added check for failing linking of a ID_PA block.

13 years agoBugfix #17633
Ton Roosendaal [Tue, 16 Sep 2008 15:28:07 +0000 (15:28 +0000)]
Bugfix #17633

Tiny feature: "Flip normals" in editmode also recalculates vertex normals.

13 years agoBugfix #17630: objects are disappearing if you insert a layer key and then change...
Joshua Leung [Tue, 16 Sep 2008 06:55:15 +0000 (06:55 +0000)]
Bugfix #17630: objects are disappearing if you insert a layer key and then change time

Forgot to set type of data for inserting keyframes, so data was probably written as float or so.

13 years agoBugfix #17622: clicking on action IPO in outliner causes crash
Joshua Leung [Tue, 16 Sep 2008 06:33:59 +0000 (06:33 +0000)]
Bugfix #17622: clicking on action IPO in outliner causes crash

In some cases, no action channels existed, but yet the Outliner displayed some that, when clicked on, would cause a crash.

13 years agoadded static openal and openexr options for scons.
Campbell Barton [Tue, 16 Sep 2008 06:31:55 +0000 (06:31 +0000)]
added static openal and openexr options for scons.
also added a target 'blenderlite' - turns almost everything off, compressed binary is ~3.4meg

13 years agoBugfix #17627: Autokeyframe for Visual keying
Joshua Leung [Tue, 16 Sep 2008 06:11:02 +0000 (06:11 +0000)]
Bugfix #17627: Autokeyframe for Visual keying

Several months old typo! 'Visual keying' was not working for autokeyframing, as the test for it didn't even work.

13 years agoFix for bug #12028: background rendering on Mac OS X without
Brecht Van Lommel [Tue, 16 Sep 2008 02:58:33 +0000 (02:58 +0000)]
Fix for bug #12028: background rendering on Mac OS X without
a window manager did not work anymore since 2.46.

13 years agoFix for #17618 Particles: changing RGB sliders snap back
Janne Karhu [Mon, 15 Sep 2008 22:08:30 +0000 (22:08 +0000)]
Fix for #17618 Particles: changing RGB sliders snap back
-particle drawing was reading material ipos in a too invasive way

13 years agoBGE bug #17565 fixed: Constraint Actuator Location: GUI broken. Axis selection was...
Benoit Bolsee [Mon, 15 Sep 2008 21:37:27 +0000 (21:37 +0000)]
BGE bug #17565 fixed: Constraint Actuator Location: GUI broken. Axis selection was not persistent, now it is.

13 years agoBGE bug #17621 fixed: State Actuator GUI Flaw. State actuator didn't behave like...
Benoit Bolsee [Mon, 15 Sep 2008 21:10:51 +0000 (21:10 +0000)]
BGE bug #17621 fixed: State Actuator GUI Flaw. State actuator didn't behave like the object state mask. Now it works the same: LMB select one state, deselects all others, multiple select with SHIFT-LMB

13 years agoSmall fix in GHOST X11 system.
Diego Borghetti [Mon, 15 Sep 2008 18:23:34 +0000 (18:23 +0000)]
Small fix in GHOST X11 system.

* Fix and a little of cleanup to the full screen, minimzed and
  maximized code.

* Fix bad argument in the ClientMessage event to support the
  _NET_ACTIVE_WINDOW property.

* Fix focus problem in some WM (like TWM), this is because Blender
  don't set the WM_PROTOCOLS list, now it does, a very basic list
  but it's what we need now.

13 years agoWorkaround for an Nvidia driver bug on 32 bit linux (maybe windows too).
Brecht Van Lommel [Mon, 15 Sep 2008 18:15:11 +0000 (18:15 +0000)]
Workaround for an Nvidia driver bug on 32 bit linux (maybe windows too).
I reversed the order of attaching shader objects for linking to solve an
issue in the driver before, but now it appears it needs to be the other
way around again? I don't know if these are the same cards that now want
it different again due to changes in the glsl code, but I found another
workaround for the first bug in a forum post (leaving out parameter names
in the declarations), so with some luck both cases work?

13 years agoSmall tweak to get things compiling again.
Kent Mein [Mon, 15 Sep 2008 15:58:50 +0000 (15:58 +0000)]
Small tweak to get things compiling again.


13 years agoAdded -d debug option for blenderplayer, and remove some
Brecht Van Lommel [Mon, 15 Sep 2008 12:40:17 +0000 (12:40 +0000)]
Added -d debug option for blenderplayer, and remove some
invalid/unnecessary opengl calls on shader errors.

13 years agoFix glsl vertex shader string that was not 0 terminated, no idea
Brecht Van Lommel [Mon, 15 Sep 2008 11:39:49 +0000 (11:39 +0000)]
Fix glsl vertex shader string that was not 0 terminated, no idea
if it caused any problems.

13 years agocopy menu didnt copy visible and initial states, physics margin was also missing...
Campbell Barton [Mon, 15 Sep 2008 09:24:54 +0000 (09:24 +0000)]
copy menu didnt copy visible and initial states, physics margin was also missing from "all physical attributes" option

13 years agotooltip improvements from dfelinto, some minor edits
Campbell Barton [Mon, 15 Sep 2008 09:08:36 +0000 (09:08 +0000)]
tooltip improvements from dfelinto, some minor edits

13 years agoDelete Key Tool - Bugfixes:
Joshua Leung [Mon, 15 Sep 2008 04:15:37 +0000 (04:15 +0000)]
Delete Key Tool - Bugfixes:

* Available option would crash
* 'Visual' options are now not available for this tool (are not relevant)

13 years agoreplaced static make_absolute_filename with BLI_convertstringcwd
Campbell Barton [Mon, 15 Sep 2008 02:18:37 +0000 (02:18 +0000)]
replaced static make_absolute_filename with BLI_convertstringcwd

13 years agoadded BLI_convertstringcwd, used so command line blendfiles and python scripts can...
Campbell Barton [Mon, 15 Sep 2008 01:32:53 +0000 (01:32 +0000)]
added BLI_convertstringcwd, used so command line blendfiles and python scripts can be relative to the current path.
- was alredy doing this for blendfiles, but better to have in its own function.

header_text.c - renamed PATH_MAX, was defined by system includes.

13 years agoFix for bug #17620: the motion blur actuator did not work correct
Brecht Van Lommel [Mon, 15 Sep 2008 00:57:11 +0000 (00:57 +0000)]
Fix for bug #17620: the motion blur actuator did not work correct
with an always sensor, it kept resettting the motion blur each frame.

13 years agoFix for bug #4859: once a visibility actuator was set it was not
Brecht Van Lommel [Mon, 15 Sep 2008 00:34:43 +0000 (00:34 +0000)]
Fix for bug #4859: once a visibility actuator was set it was not
possible to change the visibility again through python for example.
This is because the actuator kept setting the visibility again each
frame, as a workaround for there being no separate visible and
viewport culling flag, but that was added some time ago.

13 years agoFix zoom level and clipping to be consistent with the viewport
Brecht Van Lommel [Mon, 15 Sep 2008 00:11:30 +0000 (00:11 +0000)]
Fix zoom level and clipping to be consistent with the viewport
when pressing P without a camera active, now it should match
the view exactly.

Fix an issue when setting a camera with an actuator and being
in orthographic mode in the viewport without an active camera,
it used a strange mix of the set camera and the viewport then.

13 years agoFix for bug #17617: GLSL shaders change vertex color unexpectedly.
Brecht Van Lommel [Sun, 14 Sep 2008 21:31:07 +0000 (21:31 +0000)]
Fix for bug #17617: GLSL shaders change vertex color unexpectedly.

13 years agoBGE patch: new Physics button and margin parameter in Logic panel. Change subversion.
Benoit Bolsee [Sun, 14 Sep 2008 19:34:06 +0000 (19:34 +0000)]
BGE patch: new Physics button and margin parameter in Logic panel. Change subversion.

The Physics button controls the creation of a physics representation
of the object when starting the game. If the button is not selected,
the object is a pure graphical object with no physics representation
and all the other physics buttons are hidden.
Selecting this button gives access to the usual physics buttons.
The physics button is enabled by default to match previous Blender

The margin parameter allows to control the collision margin from
the UI. Previously, this parameter was only accessible through
Python. By default, the collision margin is set to 0.0 on static
objects and 0.06 on dynamic objects.
To maintain compatibility with older games, the collision margin
is set to 0.06 on all objects when loading older blend file.

Note about the collision algorithms in Bullet 2.71
Bullet 2.71 handles the collision margin differently than Bullet 2.53
(the previous Bullet version in Blender). The collision margin is
now kept "inside" the object for box, sphere and cylinder bound
shapes. This means that two objects bound to any of these shape will
come in close contact when colliding.
The static mesh, convex hull and cone shapes still have their
collision margin "outside" the object, which leaves a space of 1
or 2 times the collision margin between objects.

The situation with Bullet 2.53 was more complicated, generally
leading to more space between objects, except for box-box collisions.

This means that running a old game under Bullet 2.71 may cause
visual problems, especially if the objects are small. You can fix
these problems by changing some visual aspect of the objects:
center, shape, size, position of children, etc.

13 years agoUpdate MSVC project and fix compilation problem in VS2003 with keyframing.c
Benoit Bolsee [Sun, 14 Sep 2008 19:07:57 +0000 (19:07 +0000)]
Update MSVC project and fix compilation problem in VS2003 with keyframing.c

13 years agoFix a game engine crash with mesh objects parented to an armature
Brecht Van Lommel [Sun, 14 Sep 2008 17:59:22 +0000 (17:59 +0000)]
Fix a game engine crash with mesh objects parented to an armature
without vertex groups.

13 years agoscons option for linking python statically - useful for building a more compatible...
Campbell Barton [Sun, 14 Sep 2008 17:56:15 +0000 (17:56 +0000)]
scons option for linking python statically - useful for building a more compatible blenderplayer, where most games python scripts only use builtin modules anyway.

13 years agofix for what looks like simple mistake, function wasnt returning any values (compiler...
Campbell Barton [Sun, 14 Sep 2008 17:19:59 +0000 (17:19 +0000)]
fix for what looks like simple mistake, function wasnt returning any values (compiler warning) and the variable being checked to return a value was never assigned.

13 years agoBugfix: avoid crash with too long pathname.
Andrea Weikert [Sun, 14 Sep 2008 16:22:03 +0000 (16:22 +0000)]
Bugfix: avoid crash with too long pathname.

13 years agoPython API
Ken Hughes [Sun, 14 Sep 2008 14:17:44 +0000 (14:17 +0000)]
Python API
Fix C90 mixed declarations and code.

13 years ago== Global 'Delete Key' Tool ==
Joshua Leung [Sun, 14 Sep 2008 12:41:42 +0000 (12:41 +0000)]
== Global 'Delete Key' Tool ==

The 'opposite' of the "Insert Key" tool.
- Use the hotkey Ctrl-Alt-IKEY to activate.
- Only available in 3d-view and buttons window

I've added an extra var to verify_ipo and verify_ipocurve to save having to make another duplicate of that code. Hopefully the gameengine compiles ok with this.

13 years agoBugfix #17608
Ton Roosendaal [Sun, 14 Sep 2008 09:09:10 +0000 (09:09 +0000)]
Bugfix #17608

Fileselect window:
Pressing X to remove a file should not work in databrowse view.

13 years agoMore bugfixes:
Joshua Leung [Sun, 14 Sep 2008 05:52:57 +0000 (05:52 +0000)]
More bugfixes:

* Added missing includes
* Fixed typos in header
* Added code to get ipo for 'Available' keyingsets to work

13 years agogame engine didnt compile with recent keyframing changes
Campbell Barton [Sun, 14 Sep 2008 05:42:05 +0000 (05:42 +0000)]
game engine didnt compile with recent keyframing changes

13 years agorunning scripts in background mode would crash in some cases. (tested all scripts...
Campbell Barton [Sun, 14 Sep 2008 05:10:45 +0000 (05:10 +0000)]
running scripts in background mode would crash in some cases. (tested all scripts, none segfault now)

13 years ago== Keyframing - Cleanup of API ==
Joshua Leung [Sun, 14 Sep 2008 04:32:17 +0000 (04:32 +0000)]
== Keyframing - Cleanup of API ==

* Moved all keyframing functions to their own file (keyframing.c)

* Merged all the different keyframing options (needed, visual, fast) into a single API call. The direct benefit of this is that it allows them to be used in conjunction with each other. Also, this means that when using the IKEY, autokeying settings for these are respected too.

* Implemented 'keyingsets' system (instead of directly calling insertkey on relevant channels), which is easier to maintain and cleaner. A keyingset basically defines all the channels that can be keyframed together. This paves the way for custom keyingsets sometime down the track (and also for quick-insert keyframes for previously used keyingset).

Menus for choosing the keying set to use are generated automatically from the definitions.

13 years agoFix for bug #5758 and #17585: armatures with IK constraint did not
Brecht Van Lommel [Sun, 14 Sep 2008 03:51:51 +0000 (03:51 +0000)]
Fix for bug #5758 and #17585: armatures with IK constraint did not
work in the game player, now the IK lib is linked into the player.

Makefiles/Scons/CMake buildsystems have been updated.

Fix materials nodes to work in the game player.

13 years agoFix for bug #7097: blender multitexture materials in the game engine
Brecht Van Lommel [Sun, 14 Sep 2008 01:10:45 +0000 (01:10 +0000)]
Fix for bug #7097: blender multitexture materials in the game engine
player did not enable mipmapping when falling back to texfaces.

Also commented out code that disabled mipmapping in the player on
Mac OS X. If that is a workaround for a bug it is a really poor one,
and hopefully fixed now since this code is from 2002 or earlier.

13 years agoVarious game engine fixes:
Brecht Van Lommel [Sun, 14 Sep 2008 00:32:18 +0000 (00:32 +0000)]
Various game engine fixes:

* Fix issue with add transparency mode with blender materials.
* Possible fix at frontface flip in the game engine.
* Fix color buffering clearing for multiple viewports, it used
  to clear as if there was one.
* Fix for zoom level in user defined viewports, it was based on
  the full window before, now it is based on the viewport itself.
* For user defined viewports, always use Expose instead of
  Letterbox with bars, the latter doesn't make sense then.

13 years agoFix for #11740 - Reactor particles do not render in animation.
Janne Karhu [Sat, 13 Sep 2008 21:06:22 +0000 (21:06 +0000)]
Fix for #11740 - Reactor particles do not render in animation.
- Particle data was deleted when the current frame was outside the baked range. Reactor particles need this data to store birth and death times.

13 years agoGame engine: added Rasterizer.get/setMaterialMode to set texface,
Brecht Van Lommel [Sat, 13 Sep 2008 19:19:51 +0000 (19:19 +0000)]
Game engine: added Rasterizer.get/setMaterialMode to set texface,
multitexture or glsl materials. This does not affect existing
scenes, only newly created ones.

13 years agoParticle collisions upgrade:
Janne Karhu [Sat, 13 Sep 2008 18:09:41 +0000 (18:09 +0000)]
Particle collisions upgrade:

- Particle now use the deflector objects collision modifier data to collide with deflectors and as a result can now use the velocity of the colliding object for more realistic collisions.
- Dynamic rotations are also quite a bit more realistic and are related to the friction setting of the deflector (to get any dynamic rotations there has to be some friction). This is largely due to the separate handling of rolling friction (approximated to be 1% of normal sliding friction).
- Collisions should be a bit faster on complex deflectors due to the tree structure used by the collision modifier.
- Collision should also generally be a bit more accurate.

To be noted: Only the average velocity of individual deflector faces is used, so collisions with rotating or deforming objects can't be handled accurately - this would require much more complex calculations. Subdividing the deflector object surface to smaller faces can help with this as the individual face velocities become more linear.

13 years agoBGE patch: use new btScaledBvhTriangleMeshShape to allow shape sharing between replic...
Benoit Bolsee [Sat, 13 Sep 2008 16:03:11 +0000 (16:03 +0000)]
BGE patch: use new btScaledBvhTriangleMeshShape to allow shape sharing between replicas and avoid BVH rebuild in case of scaling. This will save memory and speed up greatly the instantiation of static mesh.

13 years agoFix to make blenderplayer compile with makefiles on Mac OS X. It worked
Brecht Van Lommel [Sat, 13 Sep 2008 14:21:06 +0000 (14:21 +0000)]
Fix to make blenderplayer compile with makefiles on Mac OS X. It worked
on Linux already, I think there is a difference in the linker.

13 years agobullet wasnt building on 64bit linux
Campbell Barton [Sat, 13 Sep 2008 12:07:36 +0000 (12:07 +0000)]
bullet wasnt building on 64bit linux

13 years agoBGE patch: fix transform bug on compound shape: child shape didn't take into account...
Benoit Bolsee [Sat, 13 Sep 2008 11:46:07 +0000 (11:46 +0000)]
BGE patch: fix transform bug on compound shape: child shape didn't take into account parent inverse node. Fix scaling bug on instantiation of compound shape: child shape didn't have correct shape. Note: global scaling doesn't work on compound shape (limitation of Bullet); don't set any scale on the top dynamic object.

13 years agoreturn dummy python values when no joystick is present
Campbell Barton [Sat, 13 Sep 2008 11:43:01 +0000 (11:43 +0000)]
return dummy python values when no joystick is present