Fixed all gcc 4 warnings in blenkernel. Found 2 potentially harmful
[blender.git] / source / blender / blenkernel / intern / verse_object_node.c
index 9e6de928ef047238a44d69b6791895bd2310a800..985bf30a2798a7843f0d7ada279fe42573a6897e 100644 (file)
@@ -129,8 +129,8 @@ void send_verse_object_position(VNode *vnode)
  */
 void send_verse_object_rotation(VNode *vnode)
 {
-       float quat[4];
-/*     float bvec[3], vvec[3];*/
+/*     float quat[4];
+       float bvec[3], vvec[3];*/
        VNQuat32 rot;
 
        rot.x = ((VObjectData*)vnode->data)->rot[0];
@@ -360,6 +360,11 @@ static void cb_o_transform_pos_real32(
                vec[1] = pos[1];
                vec[2] = pos[2];
        }
+       else {
+               vec[0] = 0.0f;
+               vec[1] = 0.0f;
+               vec[2] = 0.0f;
+       }
 
        if(speed) {
                vec[0] += speed[0]*dt;