From d2c2b10aeb47e27a8f7f50187d05f4c89c9e391e Mon Sep 17 00:00:00 2001 From: Ines Almeida Date: Sun, 17 Aug 2014 19:55:57 +0200 Subject: gameengine physics: removing triangle mesh collision option for character controllers --- source/blender/makesrna/intern/rna_object.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source') diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index 18d506a3503..db3b39116b4 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -508,7 +508,9 @@ static EnumPropertyItem *rna_Object_collision_bounds_itemf(bContext *UNUSED(C), EnumPropertyItem *item = NULL; int totitem = 0; - RNA_enum_items_add_value(&item, &totitem, collision_bounds_items, OB_BOUND_TRIANGLE_MESH); + if (ob->body_type != OB_BODY_TYPE_CHARACTER) { + RNA_enum_items_add_value(&item, &totitem, collision_bounds_items, OB_BOUND_TRIANGLE_MESH); + } RNA_enum_items_add_value(&item, &totitem, collision_bounds_items, OB_BOUND_CONVEX_HULL); if (ob->body_type != OB_BODY_TYPE_SOFT) { -- cgit v1.2.3