fix for struct definition building with msvc2008 and some style cleanup.
This commit is contained in:
@@ -54,7 +54,7 @@ typedef enum {
|
|||||||
} eCbEvent;
|
} eCbEvent;
|
||||||
|
|
||||||
|
|
||||||
typedef struct {
|
typedef struct bCallbackFuncStore {
|
||||||
struct bCallbackFuncStore *next, *prev;
|
struct bCallbackFuncStore *next, *prev;
|
||||||
void (*func)(struct Main *, struct ID *, void *arg);
|
void (*func)(struct Main *, struct ID *, void *arg);
|
||||||
void *arg;
|
void *arg;
|
||||||
|
|||||||
@@ -215,8 +215,8 @@ bool KX_ObjectActuator::Update()
|
|||||||
m_previous_error = e;
|
m_previous_error = e;
|
||||||
m_error_accumulator = I;
|
m_error_accumulator = I;
|
||||||
parent->ApplyForce(m_force,(m_bitLocalFlag.LinearVelocity) != 0);
|
parent->ApplyForce(m_force,(m_bitLocalFlag.LinearVelocity) != 0);
|
||||||
} else if(m_bitLocalFlag.CharacterMotion)
|
}
|
||||||
{
|
else if (m_bitLocalFlag.CharacterMotion) {
|
||||||
MT_Vector3 dir = m_dloc;
|
MT_Vector3 dir = m_dloc;
|
||||||
|
|
||||||
if (m_bitLocalFlag.AddOrSetCharLoc) {
|
if (m_bitLocalFlag.AddOrSetCharLoc) {
|
||||||
|
|||||||
@@ -1173,8 +1173,7 @@ void KX_Scene::ReplaceMesh(class CValue* obj,void* meshobj, bool use_gfx, bool u
|
|||||||
}
|
}
|
||||||
newobj->SetDeformer(modifierDeformer);
|
newobj->SetDeformer(modifierDeformer);
|
||||||
}
|
}
|
||||||
else if (bHasShapeKey)
|
else if (bHasShapeKey) {
|
||||||
{
|
|
||||||
BL_ShapeDeformer* shapeDeformer;
|
BL_ShapeDeformer* shapeDeformer;
|
||||||
if (bHasArmature)
|
if (bHasArmature)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user