cstratak / rpms / blender

Forked from rpms/blender 3 years ago
Clone
Blob Blame History Raw
diff -Naur blender-2.49b/extern/bullet2/src/BulletSoftBody/btSoftBody.h blender-2.49b-new/extern/bullet2/src/BulletSoftBody/btSoftBody.h
--- blender-2.49b/extern/bullet2/src/BulletSoftBody/btSoftBody.h	2009-09-01 12:23:19.000000000 -0300
+++ blender-2.49b-new/extern/bullet2/src/BulletSoftBody/btSoftBody.h	2011-02-28 16:44:55.438864576 -0300
@@ -177,6 +177,7 @@
 	/* Material		*/ 
 	struct	Material : Element
 	{
+                Material (){}
 		btScalar				m_kLST;			// Linear stiffness coefficient [0,1]
 		btScalar				m_kAST;			// Area/Angular stiffness coefficient [0,1]
 		btScalar				m_kVST;			// Volume stiffness coefficient [0,1]
@@ -191,6 +192,7 @@
 	/* Node			*/ 
 	struct	Node : Feature
 	{
+                Node (){}
 		btVector3				m_x;			// Position
 		btVector3				m_q;			// Previous step position
 		btVector3				m_v;			// Velocity
@@ -204,6 +206,7 @@
 	/* Link			*/ 
 	struct	Link : Feature
 	{
+                Link (){}
 		Node*					m_n[2];			// Node pointers
 		btScalar				m_rl;			// Rest length		
 		int						m_bbending:1;	// Bending link
@@ -215,6 +218,7 @@
 	/* Face			*/ 
 	struct	Face : Feature
 	{
+                Face (){}
 		Node*					m_n[3];			// Node pointers
 		btVector3				m_normal;		// Normal
 		btScalar				m_ra;			// Rest area
@@ -255,6 +259,7 @@
 	/* Note			*/ 
 	struct	Note : Element
 	{
+                Note (){}
 		const char*				m_text;			// Text
 		btVector3				m_offset;		// Offset
 		int						m_rank;			// Rank
diff -Naur blender-2.49b/extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h blender-2.49b-new/extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h
--- blender-2.49b/extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h	2009-09-01 12:23:19.000000000 -0300
+++ blender-2.49b-new/extern/bullet2/src/BulletSoftBody/btSoftBodyInternals.h	2011-02-28 16:46:09.816208038 -0300
@@ -171,8 +171,12 @@
 template <typename T>
 static inline void			ZeroInitialize(T& value)
 {
+#if 1
 	static const T	zerodummy;
 	value=zerodummy;
+#else
+        memset(&value,0,sizeof(T));
+#endif
 }
 //
 template <typename T>
diff -Naur blender-2.49b/intern/memutil/MEM_Allocator.h blender-2.49b-new/intern/memutil/MEM_Allocator.h
--- blender-2.49b/intern/memutil/MEM_Allocator.h	2009-09-01 12:20:41.000000000 -0300
+++ blender-2.49b-new/intern/memutil/MEM_Allocator.h	2011-02-28 16:41:28.968962712 -0300
@@ -26,6 +26,7 @@
 
 #include "guardedalloc/MEM_guardedalloc.h"
 #include "guardedalloc/BLO_sys_types.h"
+#include <cstddef>
 
 #ifdef _MSC_VER
 #if _MSC_VER < 1300 // 1200 == VC++ 6.0 according to boost
diff -Naur blender-2.49b/source/gameengine/Expressions/PyObjectPlus.h blender-2.49b-new/source/gameengine/Expressions/PyObjectPlus.h
--- blender-2.49b/source/gameengine/Expressions/PyObjectPlus.h	2009-09-01 12:20:45.000000000 -0300
+++ blender-2.49b-new/source/gameengine/Expressions/PyObjectPlus.h	2011-02-28 16:41:28.969962609 -0300
@@ -40,6 +40,7 @@
 #include "STR_String.h"
 #include "MT_Vector3.h"
 #include "SG_QList.h"
+#include <cstddef>
 
 /*------------------------------
  * Python defines
diff -Naur blender-2.49b/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp blender-2.49b-new/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp
--- blender-2.49b/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp	2009-09-01 12:20:46.000000000 -0300
+++ blender-2.49b-new/source/gameengine/Physics/Dummy/DummyPhysicsEnvironment.cpp	2011-02-28 16:41:28.969962609 -0300
@@ -28,6 +28,7 @@
  */
 #include "DummyPhysicsEnvironment.h"
 #include "PHY_IMotionState.h"
+#include <cstddef>
 
 #ifdef HAVE_CONFIG_H
 #include <config.h>