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
2013-12-09Game Engine: Option to record static objects animationJames Yonan
2013-12-03Cleanup: Internal degrees removal.Bastien Montagne
This patch changes most of the reamining degrees usage in internal code into radians. I let a few which I know off asside, for reasons explained below - and I'm not sure to have found out all of them. WARNING: this introduces forward incompatibility, which means files saved from this version won't open 100% correctly in previous versions (a few angle properties would use radians values as degrees...). Details: - Data: -- Lamp.spotsize: Game engine exposed this setting in degrees, to not break the API here I kept it as such (using getter/setter functions), still using radians internally. -- Mesh.smoothresh: Didn't touch to this one, as we will hopefully replace it completely by loop normals currently in dev. - Modifiers: -- EdgeSplitModifierData.split_angle, BevelModifierData.bevel_angle: Done. - Postprocessing: -- WipeVars.angle (sequencer's effect), NodeBokehImage.angle, NodeBoxMask.rotation, NodeEllipseMask.rotation: Done. - BGE: -- bConstraintActuator: Orientation type done (the minloc[0] & maxloc[0] cases). Did not touch to 'limit location' type, it can also limit rotation, but it exposes through RNA the same limit_min/limit_max, which hence can be either distance or angle values, depending on the mode. Will leave this to BGE team. -- bSoundActuator.cone_outer_angle_3d, bSoundActuator.cone_inner_angle_3d: Done (note I kept degrees in BGE itself, as it seems this is the expected value here...). -- bRadarSensor.angle: Done. Reviewers: brecht, campbellbarton, sergey, gaiaclary, dfelinto, moguri, jbakker, lukastoenne, howardt Reviewed By: brecht, campbellbarton, sergey, gaiaclary, moguri, jbakker, lukastoenne, howardt Thanks to all! Differential Revision: http://developer.blender.org/D59
2013-11-30Fix T36804: the property sensor when set to interval was causing a memory leakMitchell Stokes
The property sensor was using CValue::FindIdentifier(), which does an AddRef(). However, the property sensor was not calling Release() when it was done with the value. This could cause more leaks when used in conjunction with the copy property actuator since it would really throw off ref counts.
2013-11-30Fix T37566: KX_GameObject.resumeDynamics() was not properly restoring ↵Mitchell Stokes
collision groups and masks.
2013-11-27Fix T37636: double added pyattr_get_lightsHG1
2013-11-24Code Cleanup: whitespace / formattingCampbell Barton
2013-11-22Code Cleanup: warningsCampbell Barton
2013-11-19Fix: Game Engine regression drawing text from recent cleanupCampbell Barton
2013-11-19Fix T37171: Camera parented to a bone doesn't move with the bone, unless ↵Mitchell Stokes
another object is parented too Armatures used to check if any of their meshes were culled to see if they needed to be updated. However, this meant armatures with no meshes would never update, since non-mesh objects are always considered culled. Instead, if a non-culled child was not found, we now check to see if the armature contained only non-mesh objects. If this is the case, always update the armature. If this becomes a problem, we can look into being able to cull non-mesh objects.
2013-11-18Fix T37040: Removing vehicles in BGE causes a crashMitchell Stokes
The vehicle constraint is now properly removed if bge.constraints.removeConstraint() is used or the object is deleted. This also fixes a memory leak with the vehicle wrapper.
2013-11-18Fix T37488: Crash with --debug reading userpref.blendSergey Sharybin
Issue was in fact caused by wrong DNA storage, which apparently was considering unsigned long as just 4 bytes here. Now use uint64_t to be sure timestamp does fit into storage on all the platforms. Thanks Campbell for help looking in the issue.
2013-11-18Fix T37289: ID User decrement error for Shapes on Bones when playing in BGESergey Sharybin
GE was copying the pose channels without increasing user counter for a custom bone shape object. Freeing copied pose will for give decrement errors. The same increment issue seems to happen in BKE_pose_copy_data, which is also solved now.
2013-11-18Fix T37325: applyRotation() wasn't working correctly on rigid bodies in the ↵Mitchell Stokes
game engine. During the physics cleanup/refactor, the rotation matrix in CcdPhysicsController::RelativeRotate() became transposed.
2013-11-17python api internals: no need to set the stop-iter exception string.Campbell Barton
2013-11-06BGE: Fix for #37335 "Moving the camera with a key (after the recent BGE ↵Mitchell Stokes
cleanup commits) now crashes the game" reported by Ace Dragon. CcdPhysicsEnvironment->GetCharacterController(); was missing a NULL check.
2013-11-06code cleanup: typo and warning when openmp's disabled.Campbell Barton
2013-11-06OSX/player: Remove some very old code ( 11 years+ ), was commented anywayJens Verwiebe
2013-11-05Scons: Fix BGE compile after cleanupJens Verwiebe
2013-11-05bge builds again without bullet.Campbell Barton
2013-11-05* More fixes to make scons / Windows happy. :) Thomas Dinges
2013-11-05Fix for recent BGE commits, when building with c++ guardedalloc.Bastien Montagne
2013-11-05* Fix blenfont scons include after recent GE changes.Thomas Dinges
Mitchell: Please check if these includes also need to be added in scons: https://projects.blender.org/scm/viewvc.php/trunk/blender/source/gameengine/Rasterizer/RAS_OpenGLRasterizer/CMakeLists.txt?root=bf-blender&r1=61087&r2=61086&pathrev=61087
2013-11-04BGE Physics Cleanup: Fixing an error that GCC didn't catch.Mitchell Stokes
2013-11-04BGE: Fixing up a small issue from merging Rasterizer cleanup code.Mitchell Stokes
2013-11-04BGE: The recent physics cleanup was using KX_GameObject::GetParent() with ↵Mitchell Stokes
out calling parent->Release(). Since GetParent() does an AddRef(), this was causing a leak, which resulted in Zombie Object errors.
2013-11-04BGE: Cleaning up the BGE's physics code and removing KX_IPhysicsController ↵Mitchell Stokes
and KX_BulletPhysicsController. Instead, we just use PHY_IPhysicsController, which removes a lot of duplicate code. This is a squashed commit of the following: BGE Physics Cleanup: Fix crashes with LibLoading and replication. Also fixing some memory leaks. BGE Physics Cleanup: Removing KX_IPhysicsController and KX_BulletPhysicsController. BGE Physics Cleanup: Moving the replication code outside of KX_BlenderBulletController and switching KX_ConvertPhysicsObjects to create a CcdPhysicsController instead of a KX_BlenderBulletController. BGE Physics Cleanup: Getting rid of an unsued KX_BulletPhysicsController.h include in KX_Scene.cpp. BGE Physics Cleanup: Removing unused KX_IPhysicsController and KX_BulletPhysicsController includes. BGE Physics Cleanup: Removing m_pPhysicsController1 and GetPhysicsController1() from KX_GameObject. BGE Physics Cleanup: Remove SetRigidBody() from KX_IPhysicsController and remove GetName() from CcdPhysicsController. BGE Physics Cleanup: Moving Add/RemoveCompoundChild() from KX_IPhysicsController to PHY_IPhysicsController. BGE Physics Cleanup: Removing GetLocalInertia() from KX_IPhysicsController. BGE Physics Cleanup: Making BlenderBulletCharacterController derive from PHY_ICharacter and removing CharacterWrapper from CcdPhysicsEnvironment.cpp. Also removing the character functions from KX_IPhysicsController. BGE Physics Cleanup: Removing GetOrientation(), SetOrientation(), SetPosition(), SetScaling(), and GetRadius() from KX_IPhysicsController. BGE Physics Cleanup: Removing GetReactionForce() since all implementations returned (0, 0, 0). The Python interface for KX_GameObject still has reaction force code, but it still also returns (0, 0, 0). This can probably be removed as well, but removing it can break scripts, so I'll leave it for now. BGE Physics Cleanup: Removing Get/SetLinVelocityMin() and Get/SetLinVelocityMax() from KX_IPhysicsController. BGE Physics Cleanup: Removing SetMargin(), RelativeTranslate(), and RelativeRotate() from KX_IPhysicsController. BGE Physics Cleanup: Using constant references for function arguments in PHY_IPhysicsController where appropriate. BGE Physics Cleanup: Removing ApplyImpulse() from KX_IPhysicsController. BGE Physics Cleanup: Removing ResolveCombinedVelocities() from KX_IPhysicsController. BGE Physics Cleanup: Accidently removed a return when cleaning up KX_GameObject::PyGetVelocity(). BGE Physics Cleanup: Remove GetLinearVelocity(), GetAngularVelocity() and GetVelocity() from KX_IPhysicsController. The corresponding PHY_IPhysicsController functions now also take Moto types instead of scalars to match the KX_IPhysicsController interface. BGE Physics Cleanup: Moving SuspendDynamics, RestoreDynamics, SetMass, GetMass, and SetTransform from KX_IPhysicsController to PHY_IPhysicsController. BGE Physics Cleanup: PHY_IPhysicsEnvironment and derived classes now use the same naming scheme as PHY_IController. BGE Physics Cleanup: PHY_IMotionState and derived classes now use the same naming convention as PHY_IController. BGE Phsyics Cleanup: Making PHY_IController and its derived classes follow a consistent naming scheme for member functions. They now all start with capital letters (e.g., setWorldOrientation becomes SetWorldOrientation). BGE Physics Cleanup: Getting rid of KX_GameObject::SuspendDynamics() and KX_GameObject::RestoreDynamics(). Instead, use the functions from the physics controller. BGE: Some first steps in trying to cleanup the KX_IPhysicsController mess. KX_GameObject now has a GetPhysicsController() and a GetPhysicsController1(). The former returns a PHY_IPhysicsController* while the latter returns a KX_IPhysicsController. The goal is to get everything using GetPhysicsController() instead of GetPhysicsController1().
2013-11-04BGE Rasterizer Cleanup: The Blenderplayer now loads the monospace font so it ↵Mitchell Stokes
can properly draw the framerate and profile display.
2013-11-04BGE Rasterizer Cleanup: Cleaning up some includes.Mitchell Stokes
2013-11-04BGE Rasterizer Cleanup: Removing the Singletexture material mode. More ↵Mitchell Stokes
conversion code will probably be needed.
2013-11-04BGE Rasterizer Cleanup: Moving the RAS_OpenGLRasterizer::ApplyLights() code ↵Mitchell Stokes
into RAS_OpenGLRasterizer::ProcessLighting().
2013-11-04BGE Rasterizer Cleanup: Removing the need to reference KX_BlenderMaterial or ↵Mitchell Stokes
KX_PolygonMaterial in RAS_OpenGLRasterizer.
2013-11-04BGE Rasterizer Cleanup: Getting rid of the BL_Material.h include in ↵Mitchell Stokes
RAS_OpenGLRasterizer.cpp.
2013-11-04BGE Rasterizer Cleanup: Getting rid of RAS_IRasterizer::RenderText(), and ↵Mitchell Stokes
just adding the code to IndexPrimitives_3DText(), which is the only function that uses RenderText().
2013-11-04BGE Rasterizer Cleanup: Removing KX_BlenderGL since it was mostly one-line ↵Mitchell Stokes
functions used by KX_BlenderCanvas. KX_BlenderCanvas now just calls those functions directly.
2013-11-04BGE Rasterizer Cleanup: Removing RAS_IRenderTools and moving the ↵Mitchell Stokes
functionality to RAS_IRasterizer. RAS_OpenGLRasterizer is a bit of a mess now with references to Ketsji and other modules it shouldn't be accessing.
2013-11-02fix for possible leak in the expression controller find identifier.Campbell Barton
2013-11-02fix memory leak with navmeshCampbell Barton
2013-10-25Remove duplicate cmake enries in game engine and compositorSergej Reich
2013-10-11fix [#37032] Blener crashes when parent to new objectCampbell Barton
2013-10-11code cleanup: use const's for static arraysCampbell Barton
2013-10-07fix for casting shadows of scaled objects was made to ↵Campbell Barton
X_BlenderRenderTools.cpp but not to GPC_RenderTools.cpp.
2013-10-07remove minor differences between these 2 files which are almost exact ↵Campbell Barton
duplicates (tsk tsk!)
2013-10-07revert r58693. patch [#36233], caused regression (bug report [#36959]).Campbell Barton
2013-10-03set mempool debug in the game-engine-player too. also remove redundant ↵Campbell Barton
mempool includes.
2013-09-23Fix related to #36319: restore SDL_VIDEODRIVER=dummy environment variable, itBrecht Van Lommel
seems that somehow not having this is causing keyboard events to be caught by SDL. This was removed because it broke addons that could use SDL, now set the environment variable only temporary during SDL initialization. This may have been causing issues with keyboard events getting missed in the game engine, but I couldn't confirm the issue here.
2013-09-18BGE: Fixing a typo in the collision API that was found by agoose77.Mitchell Stokes
2013-09-14BGE: Adding a Python collision API. The initial patch was provided by ↵Mitchell Stokes
agoose77, with some edits by me. KX_GameObject now has a collisionCallbacks list which is a list of callables that are called when a collision occurs. The callables will be called with an argument that contains a reference to the other object involved in the collision (i.e., not self).
2013-09-12BGE: Potential fix for [#35522] Broken game engine compatibility since 2.66a ↵Daniel Stokes
on some ATI cards? Disabling display lists for legacy ATI cards since they don't support display lists well. Also removing an unused variable from the display list rasterizer.
2013-09-09code cleanup: warnings and redundant checks.Campbell Barton
2013-09-06Fixing a problem with variance shadow maps blurring out on transparent ↵Daniel Stokes
receivers in the Game Engine reported by Sam Cameron on the IRC. Also correcting some slight blurring over time by making sure the color buffer is cleared for shadows.