[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16649] branches/fluidcontrol: svn merge -r 16593:16648 https://svn.blender.org/svnroot/bf-blender/trunk/ blender
Daniel Genrich
daniel.genrich at gmx.net
Sun Sep 21 15:03:39 CEST 2008
Revision: 16649
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16649
Author: genscher
Date: 2008-09-21 15:03:39 +0200 (Sun, 21 Sep 2008)
Log Message:
-----------
svn merge -r 16593:16648 https://svn.blender.org/svnroot/bf-blender/trunk/blender
Modified Paths:
--------------
branches/fluidcontrol/SConstruct
branches/fluidcontrol/bin/.blender/locale/fr/LC_MESSAGES/blender.mo
branches/fluidcontrol/bin/.blender/locale/kr/LC_MESSAGES/blender.mo
branches/fluidcontrol/extern/bullet2/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp
branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.h
branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp
branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp
branches/fluidcontrol/intern/SoundSystem/SConscript
branches/fluidcontrol/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
branches/fluidcontrol/po/fr.po
branches/fluidcontrol/po/kr.po
branches/fluidcontrol/release/plugins/sequence/dnr.c
branches/fluidcontrol/release/scripts/animation_bake_constraints.py
branches/fluidcontrol/release/scripts/bpymodules/colladaImEx/collada.py
branches/fluidcontrol/release/scripts/bpymodules/colladaImEx/translator.py
branches/fluidcontrol/release/scripts/console.py
branches/fluidcontrol/source/blender/blenkernel/BKE_bad_level_calls.h
branches/fluidcontrol/source/blender/blenkernel/BKE_blender.h
branches/fluidcontrol/source/blender/blenkernel/BKE_property.h
branches/fluidcontrol/source/blender/blenkernel/BKE_utildefines.h
branches/fluidcontrol/source/blender/blenkernel/SConscript
branches/fluidcontrol/source/blender/blenkernel/bad_level_call_stubs/stubs.c
branches/fluidcontrol/source/blender/blenkernel/intern/action.c
branches/fluidcontrol/source/blender/blenkernel/intern/brush.c
branches/fluidcontrol/source/blender/blenkernel/intern/colortools.c
branches/fluidcontrol/source/blender/blenkernel/intern/constraint.c
branches/fluidcontrol/source/blender/blenkernel/intern/curve.c
branches/fluidcontrol/source/blender/blenkernel/intern/depsgraph.c
branches/fluidcontrol/source/blender/blenkernel/intern/displist.c
branches/fluidcontrol/source/blender/blenkernel/intern/particle_system.c
branches/fluidcontrol/source/blender/blenkernel/intern/property.c
branches/fluidcontrol/source/blender/blenkernel/intern/scene.c
branches/fluidcontrol/source/blender/blenlib/BLI_arithb.h
branches/fluidcontrol/source/blender/blenlib/BLI_blenlib.h
branches/fluidcontrol/source/blender/blenlib/intern/arithb.c
branches/fluidcontrol/source/blender/blenlib/intern/dynlib.c
branches/fluidcontrol/source/blender/blenlib/intern/edgehash.c
branches/fluidcontrol/source/blender/blenlib/intern/freetypefont.c
branches/fluidcontrol/source/blender/blenlib/intern/util.c
branches/fluidcontrol/source/blender/blenloader/intern/readfile.c
branches/fluidcontrol/source/blender/gpu/GPU_extensions.h
branches/fluidcontrol/source/blender/gpu/intern/gpu_codegen.c
branches/fluidcontrol/source/blender/gpu/intern/gpu_extensions.c
branches/fluidcontrol/source/blender/imbuf/intern/divers.c
branches/fluidcontrol/source/blender/imbuf/intern/rectop.c
branches/fluidcontrol/source/blender/include/BIF_editseq.h
branches/fluidcontrol/source/blender/include/BIF_outliner.h
branches/fluidcontrol/source/blender/include/blendef.h
branches/fluidcontrol/source/blender/makesdna/DNA_curve_types.h
branches/fluidcontrol/source/blender/makesdna/DNA_ipo_types.h
branches/fluidcontrol/source/blender/makesdna/DNA_lamp_types.h
branches/fluidcontrol/source/blender/makesdna/DNA_scene_types.h
branches/fluidcontrol/source/blender/makesdna/DNA_space_types.h
branches/fluidcontrol/source/blender/python/BPY_extern.h
branches/fluidcontrol/source/blender/python/BPY_interface.c
branches/fluidcontrol/source/blender/python/api2_2x/Camera.c
branches/fluidcontrol/source/blender/python/api2_2x/Ipocurve.h
branches/fluidcontrol/source/blender/python/api2_2x/Lamp.c
branches/fluidcontrol/source/blender/python/api2_2x/Material.c
branches/fluidcontrol/source/blender/python/api2_2x/Object.c
branches/fluidcontrol/source/blender/python/api2_2x/Pose.c
branches/fluidcontrol/source/blender/python/api2_2x/Scene.c
branches/fluidcontrol/source/blender/python/api2_2x/Text.c
branches/fluidcontrol/source/blender/python/api2_2x/World.c
branches/fluidcontrol/source/blender/python/api2_2x/doc/API_intro.py
branches/fluidcontrol/source/blender/python/api2_2x/doc/API_related.py
branches/fluidcontrol/source/blender/python/api2_2x/doc/Blender.py
branches/fluidcontrol/source/blender/python/api2_2x/doc/Object.py
branches/fluidcontrol/source/blender/python/api2_2x/sceneRender.c
branches/fluidcontrol/source/blender/render/extern/include/RE_pipeline.h
branches/fluidcontrol/source/blender/render/intern/include/render_types.h
branches/fluidcontrol/source/blender/render/intern/include/texture.h
branches/fluidcontrol/source/blender/render/intern/source/convertblender.c
branches/fluidcontrol/source/blender/render/intern/source/pipeline.c
branches/fluidcontrol/source/blender/render/intern/source/pixelshading.c
branches/fluidcontrol/source/blender/render/intern/source/rendercore.c
branches/fluidcontrol/source/blender/render/intern/source/shadeoutput.c
branches/fluidcontrol/source/blender/render/intern/source/texture.c
branches/fluidcontrol/source/blender/src/SConscript
branches/fluidcontrol/source/blender/src/buttons_logic.c
branches/fluidcontrol/source/blender/src/buttons_scene.c
branches/fluidcontrol/source/blender/src/buttons_shading.c
branches/fluidcontrol/source/blender/src/drawipo.c
branches/fluidcontrol/source/blender/src/drawmesh.c
branches/fluidcontrol/source/blender/src/drawobject.c
branches/fluidcontrol/source/blender/src/drawview.c
branches/fluidcontrol/source/blender/src/editaction.c
branches/fluidcontrol/source/blender/src/editcurve.c
branches/fluidcontrol/source/blender/src/editipo.c
branches/fluidcontrol/source/blender/src/editipo_mods.c
branches/fluidcontrol/source/blender/src/editmesh_loop.c
branches/fluidcontrol/source/blender/src/editobject.c
branches/fluidcontrol/source/blender/src/editseq.c
branches/fluidcontrol/source/blender/src/glutil.c
branches/fluidcontrol/source/blender/src/header_oops.c
branches/fluidcontrol/source/blender/src/header_view3d.c
branches/fluidcontrol/source/blender/src/outliner.c
branches/fluidcontrol/source/blender/src/renderwin.c
branches/fluidcontrol/source/blender/src/retopo.c
branches/fluidcontrol/source/blender/src/seqaudio.c
branches/fluidcontrol/source/blender/src/seqscopes.c
branches/fluidcontrol/source/blender/src/space.c
branches/fluidcontrol/source/blender/src/toolbox.c
branches/fluidcontrol/source/blender/src/transform.c
branches/fluidcontrol/source/blender/src/transform_conversions.c
branches/fluidcontrol/source/blender/src/writeimage.c
branches/fluidcontrol/source/blender/yafray/intern/export_File.cpp
branches/fluidcontrol/source/blender/yafray/intern/export_Plugin.cpp
branches/fluidcontrol/source/creator/creator.c
branches/fluidcontrol/source/gameengine/Converter/BL_ActionActuator.cpp
branches/fluidcontrol/source/gameengine/Converter/BL_BlenderDataConversion.cpp
branches/fluidcontrol/source/gameengine/Converter/BL_ShapeActionActuator.cpp
branches/fluidcontrol/source/gameengine/Expressions/PyObjectPlus.h
branches/fluidcontrol/source/gameengine/GameLogic/Joystick/SCA_Joystick.cpp
branches/fluidcontrol/source/gameengine/GameLogic/Joystick/SCA_Joystick.h
branches/fluidcontrol/source/gameengine/GameLogic/Joystick/SCA_JoystickEvents.cpp
branches/fluidcontrol/source/gameengine/GameLogic/Joystick/SCA_JoystickPrivate.h
branches/fluidcontrol/source/gameengine/GameLogic/SCA_ActuatorSensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_DelaySensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_ISensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_JoystickManager.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_JoystickSensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_MouseSensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_PropertyActuator.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_PropertySensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_PythonController.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_PythonController.h
branches/fluidcontrol/source/gameengine/GameLogic/SCA_RandomActuator.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SCA_RandomSensor.cpp
branches/fluidcontrol/source/gameengine/GameLogic/SConscript
branches/fluidcontrol/source/gameengine/GamePlayer/common/GPC_RawImage.cpp
branches/fluidcontrol/source/gameengine/GamePlayer/common/GPC_RawImage.h
branches/fluidcontrol/source/gameengine/GamePlayer/ghost/GPG_ghost.cpp
branches/fluidcontrol/source/gameengine/Ketsji/BL_Shader.cpp
branches/fluidcontrol/source/gameengine/Ketsji/BL_Shader.h
branches/fluidcontrol/source/gameengine/Ketsji/KXNetwork/KX_NetworkMessageSensor.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_CameraActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_ConstraintActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_ConstraintActuator.h
branches/fluidcontrol/source/gameengine/Ketsji/KX_ConvertPhysicsObjects.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_GameActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_GameObject.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_IpoActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_MouseFocusSensor.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_ParentActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_RadarSensor.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_RaySensor.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_SCA_AddObjectActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_SCA_ReplaceMeshActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_Scene.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_SceneActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_StateActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_TouchSensor.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_TrackToActuator.cpp
branches/fluidcontrol/source/gameengine/Ketsji/KX_VisibilityActuator.cpp
branches/fluidcontrol/source/gameengine/Physics/BlOde/OdePhysicsEnvironment.cpp
branches/fluidcontrol/source/gameengine/Physics/Bullet/CcdPhysicsController.cpp
branches/fluidcontrol/source/gameengine/Physics/Bullet/CcdPhysicsController.h
branches/fluidcontrol/source/gameengine/Physics/Bullet/CcdPhysicsEnvironment.cpp
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_2DFilterManager.cpp
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_2DFilterManager.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Blur2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Dilation2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Erosion2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_GrayScale2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Invert2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Laplacian2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Prewitt2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sepia2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sharpen2DFilter.h
branches/fluidcontrol/source/gameengine/Rasterizer/RAS_OpenGLFilters/RAS_Sobel2DFilter.h
branches/fluidcontrol/tools/Blender.py
branches/fluidcontrol/tools/btools.py
Modified: branches/fluidcontrol/SConstruct
===================================================================
--- branches/fluidcontrol/SConstruct 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/SConstruct 2008-09-21 13:03:39 UTC (rev 16649)
@@ -267,7 +267,19 @@
env['WITH_BF_YAFRAY'] = False
env['WITH_BF_REDCODE'] = False
env['WITH_BF_FTGL'] = False
+ env['WITH_BF_DDS'] = False
+ env['WITH_BF_ZLIB'] = False
+ env['WITH_BF_SDL'] = False
+ env['WITH_BF_JPEG'] = False
+ env['WITH_BF_PNG'] = False
+ env['WITH_BF_ODE'] = False
+ env['WITH_BF_BULLET'] = False
+ env['WITH_BF_BINRELOC'] = False
+ env['BF_BUILDINFO'] = False
+ env['BF_NO_ELBEEM'] = True
+
+
# lastly we check for root_build_dir ( we should not do before, otherwise we might do wrong builddir
#B.root_build_dir = B.arguments.get('BF_BUILDDIR', '..'+os.sep+'build'+os.sep+platform+os.sep)
B.root_build_dir = env['BF_BUILDDIR']
@@ -410,6 +422,26 @@
source=[dp+os.sep+f for f in df]
scriptinstall.append(env.Install(dir=dir,source=source))
+#-- icons
+if env['OURPLATFORM']=='linux2':
+ iconlist = []
+ icontargetlist = []
+
+ for tp, tn, tf in os.walk('release/freedesktop/icons'):
+ if 'CVS' in tn:
+ tn.remove('CVS')
+ if '.svn' in tn:
+ tn.remove('.svn')
+ for f in tf:
+ print ">>>", env['BF_INSTALLDIR'], tp, f
+ iconlist.append(tp+os.sep+f)
+ icontargetlist.append(env['BF_INSTALLDIR']+tp[19:]+os.sep+f)
+
+ iconinstall = []
+ for targetdir,srcfile in zip(icontargetlist, iconlist):
+ td, tf = os.path.split(targetdir)
+ iconinstall.append(env.Install(dir=td, source=srcfile))
+
#-- plugins
pluglist = []
plugtargetlist = []
@@ -458,6 +490,8 @@
if env['OURPLATFORM']=='darwin':
allinstall = [blenderinstall, plugininstall, textinstall]
+elif env['OURPLATFORM']=='linux2':
+ allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall, iconinstall]
else:
allinstall = [blenderinstall, dotblenderinstall, scriptinstall, plugininstall, textinstall]
Modified: branches/fluidcontrol/bin/.blender/locale/fr/LC_MESSAGES/blender.mo
===================================================================
(Binary files differ)
Modified: branches/fluidcontrol/bin/.blender/locale/kr/LC_MESSAGES/blender.mo
===================================================================
(Binary files differ)
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/BroadphaseCollision/btDbvtBroadphase.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -119,7 +119,7 @@
//
btDbvtBroadphase::btDbvtBroadphase(btOverlappingPairCache* paircache)
{
-m_deferedcollide = false;
+m_deferedcollide = true;//false;
m_needcleanup = true;
m_releasepaircache = (paircache!=0)?false:true;
m_prediction = 1/(btScalar)2;
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionDispatch/btSphereSphereCollisionAlgorithm.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -56,11 +56,16 @@
btScalar radius0 = sphere0->getRadius();
btScalar radius1 = sphere1->getRadius();
- //m_manifoldPtr->clearManifold(); //don't do this, it disables warmstarting
+#ifdef CLEAR_MANIFOLD
+ m_manifoldPtr->clearManifold(); //don't do this, it disables warmstarting
+#endif
///iff distance positive, don't generate a new contact
if ( len > (radius0+radius1))
{
+#ifndef CLEAR_MANIFOLD
+ resultOut->refreshContactPoints();
+#endif //CLEAR_MANIFOLD
return;
}
///distance (negative means penetration)
@@ -82,7 +87,9 @@
resultOut->addContactPoint(normalOnSurfaceB,pos1,dist);
- //no resultOut->refreshContactPoints(); needed, because of clearManifold (all points are new)
+#ifndef CLEAR_MANIFOLD
+ resultOut->refreshContactPoints();
+#endif //CLEAR_MANIFOLD
}
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -36,6 +36,13 @@
}
+
+void btConvexHullShape::setLocalScaling(const btVector3& scaling)
+{
+ m_localScaling = scaling;
+ recalcLocalAabb();
+}
+
void btConvexHullShape::addPoint(const btPoint3& point)
{
m_points.push_back(point);
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.h
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.h 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexHullShape.h 2008-09-21 13:03:39 UTC (rev 16649)
@@ -71,8 +71,9 @@
virtual void getPlane(btVector3& planeNormal,btPoint3& planeSupport,int i ) const;
virtual bool isInside(const btPoint3& pt,btScalar tolerance) const;
+ ///in case we receive negative scaling
+ virtual void setLocalScaling(const btVector3& scaling);
-
};
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btConvexInternalShape.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -26,7 +26,7 @@
void btConvexInternalShape::setLocalScaling(const btVector3& scaling)
{
- m_localScaling = scaling;
+ m_localScaling = scaling.absolute();
}
Modified: branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp
===================================================================
--- branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/extern/bullet2/src/BulletCollision/CollisionShapes/btScaledBvhTriangleMeshShape.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -56,8 +56,18 @@
btScaledTriangleCallback scaledCallback(callback,m_localScaling);
btVector3 invLocalScaling(1.f/m_localScaling.getX(),1.f/m_localScaling.getY(),1.f/m_localScaling.getZ());
- btVector3 scaledAabbMin = aabbMin * invLocalScaling;
- btVector3 scaledAabbMax = aabbMax * invLocalScaling;
+ btVector3 scaledAabbMin,scaledAabbMax;
+
+ ///support negative scaling
+ scaledAabbMin[0] = m_localScaling.getX() >= 0. ? aabbMin[0] * invLocalScaling[0] : aabbMax[0] * invLocalScaling[0];
+ scaledAabbMin[1] = m_localScaling.getY() >= 0. ? aabbMin[1] * invLocalScaling[1] : aabbMax[1] * invLocalScaling[1];
+ scaledAabbMin[2] = m_localScaling.getZ() >= 0. ? aabbMin[2] * invLocalScaling[2] : aabbMax[2] * invLocalScaling[2];
+
+ scaledAabbMax[0] = m_localScaling.getX() <= 0. ? aabbMin[0] * invLocalScaling[0] : aabbMax[0] * invLocalScaling[0];
+ scaledAabbMax[1] = m_localScaling.getY() <= 0. ? aabbMin[1] * invLocalScaling[1] : aabbMax[1] * invLocalScaling[1];
+ scaledAabbMax[2] = m_localScaling.getZ() <= 0. ? aabbMin[2] * invLocalScaling[2] : aabbMax[2] * invLocalScaling[2];
+
+
m_bvhTriMeshShape->processAllTriangles(&scaledCallback,scaledAabbMin,scaledAabbMax);
}
@@ -66,9 +76,17 @@
{
btVector3 localAabbMin = m_bvhTriMeshShape->getLocalAabbMin();
btVector3 localAabbMax = m_bvhTriMeshShape->getLocalAabbMax();
- localAabbMin *= m_localScaling;
- localAabbMax *= m_localScaling;
+ btVector3 tmpLocalAabbMin = localAabbMin * m_localScaling;
+ btVector3 tmpLocalAabbMax = localAabbMax * m_localScaling;
+
+ localAabbMin[0] = (m_localScaling.getX() >= 0.) ? tmpLocalAabbMin[0] : tmpLocalAabbMax[0];
+ localAabbMin[1] = (m_localScaling.getY() >= 0.) ? tmpLocalAabbMin[1] : tmpLocalAabbMax[1];
+ localAabbMin[2] = (m_localScaling.getZ() >= 0.) ? tmpLocalAabbMin[2] : tmpLocalAabbMax[2];
+ localAabbMax[0] = (m_localScaling.getX() <= 0.) ? tmpLocalAabbMin[0] : tmpLocalAabbMax[0];
+ localAabbMax[1] = (m_localScaling.getY() <= 0.) ? tmpLocalAabbMin[1] : tmpLocalAabbMax[1];
+ localAabbMax[2] = (m_localScaling.getZ() <= 0.) ? tmpLocalAabbMin[2] : tmpLocalAabbMax[2];
+
btVector3 localHalfExtents = btScalar(0.5)*(localAabbMax-localAabbMin);
btScalar margin = m_bvhTriMeshShape->getMargin();
localHalfExtents += btVector3(margin,margin,margin);
Modified: branches/fluidcontrol/intern/SoundSystem/SConscript
===================================================================
--- branches/fluidcontrol/intern/SoundSystem/SConscript 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/intern/SoundSystem/SConscript 2008-09-21 13:03:39 UTC (rev 16649)
@@ -14,4 +14,7 @@
else:
defs = 'NO_SOUND'
+if not env['WITH_BF_SDL']:
+ defs += ' DISABLE_SDL'
+
env.BlenderLib ('bf_soundsystem', sources, Split(incs), Split(defs), libtype=['core','player'], priority = [20,140] )
Modified: branches/fluidcontrol/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp
===================================================================
--- branches/fluidcontrol/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp 2008-09-21 12:03:41 UTC (rev 16648)
+++ branches/fluidcontrol/intern/SoundSystem/sdl/SND_SDLCDDevice.cpp 2008-09-21 13:03:39 UTC (rev 16649)
@@ -55,6 +55,10 @@
void SND_SDLCDDevice::init()
{
+#ifdef DISABLE_SDL
+ fprintf(stderr, "Blender compiled without SDL, no CDROM support\n");
+ return;
+#else
if (SDL_InitSubSystem(SDL_INIT_CDROM))
{
fprintf(stderr, "Error initializing CDROM\n");
@@ -75,19 +79,23 @@
/* Did if open? Check if cdrom is NULL */
if(!m_cdrom)
{
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list