Commit: 009dacd3176af49de6eb7a2156d0a104862ae55d
Author: Martin Felke
Date: Sat Oct 1 18:06:52 2016 +0200
Branches: fracture_modifier
https://developer.blender.org/rB009dacd3176af49de6eb7a2156d0a104862ae55d
fixed some warning issues (const vs non const, wrong variable type in format
string)
===================================================================
M source/blender/makesrna/intern/rna_modifier.c
===================================================================
diff --git a/source/blender/makesrna/intern/rna_modifier.c
b/source/blender/makesrna/intern/rna_modifier.c
index e1226b2..15896ba 100644
--- a/source/blender/makesrna/intern/rna_modifier.c
+++ b/source/blender/makesrna/intern/rna_modifier.c
@@ -1256,7 +1256,7 @@ static void rna_FractureModifier_mesh_island_remove(ID
*id, FractureModifierData
MeshIsland *mi = mi_ptr->data;
if (BLI_findindex(&fmd->meshIslands, mi) == -1) {
- BKE_reportf(reports, RPT_ERROR, "MeshIsland '%s' not in this
fracture modifier", mi->id);
+ BKE_reportf(reports, RPT_ERROR, "MeshIsland '%s' not in this
fracture modifier", mi->name);
return;
}
@@ -1377,14 +1377,14 @@ static void
rna_MeshCon_breaking_threshold_set(PointerRNA *ptr, float value)
#endif
}
-static void rna_MeshCon_position_set(PointerRNA *ptr, float value[3])
+static void rna_MeshCon_position_set(PointerRNA *ptr, const float value[3])
{
RigidBodyShardCon *rbc = (RigidBodyShardCon *)ptr->data;
copy_v3_v3(rbc->pos, value);
rbc->flag |= RBC_FLAG_NEEDS_VALIDATE;
}
-static void rna_MeshCon_orientation_set(PointerRNA *ptr, float value[4])
+static void rna_MeshCon_orientation_set(PointerRNA *ptr, const float value[4])
{
RigidBodyShardCon *rbc = (RigidBodyShardCon *)ptr->data;
copy_qt_qt(rbc->orn, value);
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs