[Bf-blender-cvs] [038b73bab1f] master: Fix compilation error with strict cflags after recent const changes

Sergey Sharybin noreply at git.blender.org
Thu Jun 15 10:15:25 CEST 2017


Commit: 038b73bab1f6ed3aa2360e1f4946234110a5cf2c
Author: Sergey Sharybin
Date:   Thu Jun 15 10:14:56 2017 +0200
Branches: master
https://developer.blender.org/rB038b73bab1f6ed3aa2360e1f4946234110a5cf2c

Fix compilation error with strict cflags after recent const changes

===================================================================

M	source/blender/blenkernel/intern/rigidbody.c

===================================================================

diff --git a/source/blender/blenkernel/intern/rigidbody.c b/source/blender/blenkernel/intern/rigidbody.c
index 79f37cdd6db..390e6dedc3f 100644
--- a/source/blender/blenkernel/intern/rigidbody.c
+++ b/source/blender/blenkernel/intern/rigidbody.c
@@ -1622,8 +1622,8 @@ void BKE_rigidbody_do_simulation(Scene *scene, float ctime)
 #  pragma GCC diagnostic ignored "-Wunused-parameter"
 #endif
 
-struct RigidBodyOb *BKE_rigidbody_copy_object(Object *ob) { return NULL; }
-struct RigidBodyCon *BKE_rigidbody_copy_constraint(Object *ob) { return NULL; }
+struct RigidBodyOb *BKE_rigidbody_copy_object(const Object *ob) { return NULL; }
+struct RigidBodyCon *BKE_rigidbody_copy_constraint(const Object *ob) { return NULL; }
 void BKE_rigidbody_validate_sim_world(Scene *scene, RigidBodyWorld *rbw, bool rebuild) {}
 void BKE_rigidbody_calc_volume(Object *ob, float *r_vol) { if (r_vol) *r_vol = 0.0f; }
 void BKE_rigidbody_calc_center_of_mass(Object *ob, float r_center[3]) { zero_v3(r_center); }




More information about the Bf-blender-cvs mailing list