diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-05 20:28:10 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2009-11-05 20:28:10 +0300 |
commit | aec5fb98041a369d30c4f3c07981169a2e12a5ae (patch) | |
tree | d161a6ce6796ca6dc250247ddbe7ec1912276573 /source/blender/makesrna | |
parent | 93b2ed382259f6dd43839ae9331c2f13191dd81e (diff) |
Fix warnings in RNA, one being an actual bug in setting an object's layer.
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 2 | ||||
-rw-r--r-- | source/blender/makesrna/intern/rna_particle.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index c7a1284e35e..a5ec30bd624 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -739,7 +739,7 @@ static PointerRNA rna_Object_game_settings_get(PointerRNA *ptr) static unsigned int rna_Object_layer_validate__internal(const int *values, unsigned int lay) { - int i, tot; + int i, tot= 0; /* ensure we always have some layer selected */ for(i=0; i<20; i++) diff --git a/source/blender/makesrna/intern/rna_particle.c b/source/blender/makesrna/intern/rna_particle.c index a70a5572ef0..ad73f279b45 100644 --- a/source/blender/makesrna/intern/rna_particle.c +++ b/source/blender/makesrna/intern/rna_particle.c @@ -593,7 +593,7 @@ static void psys_vg_name_set__internal(PointerRNA *ptr, const char *value, int i psys->vgroup[index]= 0; } else { - int vgroup_num = get_named_vertexgroup_num(ob, value); + int vgroup_num = get_named_vertexgroup_num(ob, (char*)value); if(vgroup_num == -1) return; |