Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2008-10-28merge 17122:17206Martin Poirier
2008-10-27face transp option CLIP wasnt added to the py api.Campbell Barton
added gameObject.replaceMesh(meshname) - needed this for an automatically generated scene where 100's of objects would have needed logic bricks automatically added. Quicker to run replace mesh on all of them from 1 script.
2008-10-22make sure BPY_Err_Handle clears python errors, even if the exception cant be ↵Campbell Barton
printed. Added PyErr_Clear() incase there are other references to exception data (sys.exc_info() from python)
2008-10-22fix for [#17878] Scripts operating on blender objects don't clear memory ↵Campbell Barton
after a crash This is an interesting bug since it is likely the cause of many other suspicious python crashes in blender. sys.last_traceback would store references to PyObjects at the point of the crash. it would only free these when sys.last_traceback was set again or on exit. This caused many crashes in the BGE while testing since python would end up freeing invalid game objects - When running scripts with errors, Blender would crash every 2-5 runs - in my test just now it crashed after 4 trys. It could also segfault blender, when (for eg) you run a script that has objects referenced. then load a new file and run another script that raises an error. In this case all the invalid Blender-Object's user counts would be decremented, even though none of the pointers were still valid.
2008-10-21renamed WITH_BF_BPYDOC to WITH_BF_DOCS, added SConscript for building BGE ↵Campbell Barton
docs too.
2008-10-20merge 16951:17122Martin Poirier
2008-10-19source/blender/blenloader/intern/readfile.c - use memmove rather then ↵Campbell Barton
strncpy for overlapping strings. source/blender/blenlib/intern/fileops.c - zero length strings would check for a slash before the strings first char. source/gameengine/GameLogic/SCA_JoystickSensor.cpp - m_istrig_prev was not initialized source/blender/src/editmesh.c - active face pointer was not set to NULL in free_editMesh()
2008-10-18Added joystick epydocs, only changed incorrect docstrings in ↵Campbell Barton
SCA_JoystickSensor.cpp patch [#17857] HotKeys Update by dfelinto - SmoothStroke and Anchored. Made own edits, removed videoscape and added curve and armature specials.
2008-10-17BGE bug fix (continuation of previous bug fix): Benoit Bolsee
- Forgot to make SCA_ISensor::UnregisterToManager() virtual to intercept active-inactive transition on collision sensor to clear colliders reference. - Don't record collision on inactive sensor. This situation occurs when an object with an inactive collision sensor collides with an object with an active collision sensor: the collision handler triggers both sensors. The result of this bug was pending references that eventually cause temporary memory leak (until the sensor is reactivated).
2008-10-17BGE showstopper bug fix: Benoit Bolsee
- Reset hit object pointer at end of frame of touch sensor to avoid returning invalid pointer to getHitObject(). - Clear all references in KX_TouchSensor::m_colliders when the sensor is disabled to avoid loose references. - Test GetSGNode() systematically for all KX_GameObject functions that can be called from python in case a python controller keeps a reference in GameLogic (bad practice anyway).
2008-10-15cleanup epydoc errorsCampbell Barton
2008-10-12Fix for two more game engine issues:Brecht Van Lommel
* 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!
2008-10-12Fix crash in game engine IPO code, got out of sync after IPO cleanup, ↵Brecht Van Lommel
removed the duplicated function declarations.
2008-10-12Last (hopefully) soft body fixes: Erwin Coumans
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)
2008-10-11Fix for a relative paths issue in the game engine. G.sce was beingBrecht Van Lommel
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.
2008-10-10Missing include, apparently only scons+mingw suffers this, strange.Ton Roosendaal
2008-10-10BGE bug #17789 fixed: Lock Active Camera and Layer to Scene doesn't work in ↵Benoit Bolsee
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.
2008-10-10fix: leave default behaviour the same to be backward compatible with ↵Erwin Coumans
previous rigid body constraints: No Collision between linked objects if button is pressed.
2008-10-10Fix bug in rigid body constraint buttons drawing, and while we are at it, ↵Erwin Coumans
add 'Collision' button to disable collisions between bodies, linked between constraint.
2008-10-09BGE bug fix: fix several bugs and inconsistencies in sound actuator:Benoit Bolsee
- 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
2008-10-08my changes broke the "level" option for joystick keys being held between statesCampbell Barton
2008-10-08* Joystick sensor is now only triggered from events of the selected type.Campbell Barton
* Keyboard sensor - added (back?) support for qualifiers (Hold buttons in the UI)
2008-10-07joystick updateCampbell Barton
* 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.
2008-10-06merge runk 16887:16950Martin Poirier
2008-10-04Bugfix: modified game material settings in blender didn't getBrecht Van Lommel
taken into account when loading a new .blend.
2008-10-04Game player: preserve material, debug settings, between .blend files.Brecht Van Lommel
2008-10-04fix conflict in merged file. weird, it compiled ok wednesday.Martin Poirier
2008-10-03 interpreted request from Carsten - make message sensor work.Campbell Barton
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
2008-10-03Blender works with python 2.6, our own import functions that replace pythons ↵Campbell Barton
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)
2008-10-03error with GameLogic.globalDict loading. It would replace the dictionary ↵Campbell Barton
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
2008-10-03merge trunk 16118 -> 116886Martin Poirier
2008-10-02Python 2.4 should build with the game engine now, no thanks to python for ↵Campbell Barton
switching from char to const char
2008-10-02BGE patch: add frameProp to Ipo actuator (Carsten's request).Benoit Bolsee
2008-10-01BGE patch: new force field constraint actuatorBenoit Bolsee
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.
2008-10-01BGE bug #17688 fixed: Near Sensor Reset not working (for Gamekit)Benoit Bolsee
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
2008-10-01+ hook up a few more parameters, that can be useful for Bullet soft bodiesErwin Coumans
+ work-in-progress to hook up cluster constraints (they are better than node/vertex pinning, because they maintain a proper world coordinate system)
2008-10-01add support for Bullet soft body constraints against a Bullet rigid body, as ↵Erwin Coumans
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.
2008-09-29BGE patch: fix force application on soft body. Force is applied on each ↵Benoit Bolsee
node, it must be reduced by the same extend.
2008-09-29don't crash when trying to make a soft body 'fh' objectErwin Coumans
2008-09-29Add Fh/Rot Fh to Bullet.Erwin Coumans
2008-09-29Update the Bullet/game buttons_bullet, to better reflect usage. Erwin Coumans
1) Anisotropic friction works for static and dynamic objects 2) For soft bodies, assume triangle mesh if no bounds a chosen 3) Form factor == inertia scaling factor, it was actually hooked up in Bullet 4) Only show 'radius' if sphere is chosen, or no bounds+dynamics (== sphere bounds)
2008-09-29added anisotropic friction support for Bullet. Both for static and dynamic ↵Erwin Coumans
objects
2008-09-28make gui backwards compatible with this weeks softbody blend filesErwin Coumans
2008-09-28enable -noaudio option, so it actually works (and doesn't get overwritten by ↵Erwin Coumans
a game flag). audio initialization delays startup of game engine 2 seconds add -nojoystick commandline option: it takes 5 seconds everytime to start the game engine, while there IS no joystick. In other words: blender -noaudio -nojoystick improves workflow turnaround times for P - ESC from 7 seconds to 1 second! Improved Bullet soft body advanced options, still work-in-progress. Make sure to create game Bullet soft bodies from scratch, it is not compatible with last weeks builds.
2008-09-28BGE patch: create new BulletSoftBody data block to store bullet soft body ↵Benoit Bolsee
specific parameters. Previously we tried to share the parameters with the blender render soft body but there were too many differences. MSVC project files updated.
2008-09-26BGE patch: local/global flag to distance contraint actuator.Benoit Bolsee
Previously the distance constraint actuator was always working in local axis. The local flag allows to cast the ray along a world axis (when the flag is not selected). The N flag works differently in this case: only the object orientation is changed to be parallel to the normal at the hit point. The linear velocity is now changed so that the speed along the ray axis is null. This eliminates the need to compensate the gravity when casting along the Z axis.
2008-09-26Bugfix: the game player did not initialize tiff and quicktime, so loadingBrecht Van Lommel
those file formats did not work. Also made sure G.order is initialized as otherwise some reading tiff goes wrong.
2008-09-26support concave soft bodies, preliminary. could be used for cloth too. need ↵Erwin Coumans
vertex pinning/constraint attach to other objects.
2008-09-26Allow Bullet soft bodies to be created using a AddObject actuator. Added a ↵Erwin Coumans
fake world coordinate system to game soft bodies, although the vertices are already in world space. Added Bullet/Gimpact concave collision detection to Blender. If your build system isn't updated yet, please add extern/bullet2/src/BulletCollision/Gimpact/* This allows moving/dynamic concave triangle meshes (decomposing meshes into compound convex shapes, and using 'compound' shapes is still preferred)
2008-09-26don't apply vertex transformation for deformable game soft bodies.Erwin Coumans
set a fake world transform for game soft bodies, based on center of the AABB, so visiblity and some game logic works. note: this world transform is not smooth.