From f5b79dff412f61a2aa453a6ce50804e3425463a1 Mon Sep 17 00:00:00 2001 From: Mitchell Stokes Date: Sun, 30 Mar 2014 13:55:10 -0700 Subject: [PATCH] Fix T39490: BGE: Text to Mesh, then MouseOver does not work Non-mesh objects default to no collisions. lordloki provided a patch that sets the collision properties for a mesh converted from a curve/meta/surf/text to the default collision properties for a mesh. --- source/blender/editors/object/object_add.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/blender/editors/object/object_add.c b/source/blender/editors/object/object_add.c index b29fafea90d..182a9f70968 100644 --- a/source/blender/editors/object/object_add.c +++ b/source/blender/editors/object/object_add.c @@ -1478,8 +1478,13 @@ static void curvetomesh(Main *bmain, Scene *scene, Object *ob) convert_ensure_curve_cache(bmain, scene, ob); BKE_mesh_from_nurbs(ob); /* also does users */ - if (ob->type == OB_MESH) + if (ob->type == OB_MESH) { BKE_object_free_modifiers(ob); + + /* Game engine defaults for mesh objects */ + ob->body_type = OB_BODY_TYPE_STATIC; + ob->gameflag = OB_PROP | OB_COLLISION; + } } static int convert_poll(bContext *C)