From 7674ebf3407b4ac8dcf1ba88a9a240b619c13ae5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20T=C3=B6nne?= Date: Sun, 1 Jun 2014 15:54:58 +0200 Subject: Fix T40447: Creating Rigid Bodies is rejected for meshes without polys. This check prevents using empty (no faces) meshes as rigid bodies. While the idea makes sense, it also prevents using modifier-constructed meshes, where faces are added only by the modifiers. Further the check is very easy to circumvent, by removing faces after making the rigid body, or by assigning a different mesh datablock afterward. Suggested by Fabian Emmes (@der_fab). --- source/blender/editors/physics/rigidbody_object.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source/blender/editors/physics/rigidbody_object.c') diff --git a/source/blender/editors/physics/rigidbody_object.c b/source/blender/editors/physics/rigidbody_object.c index 7ba37bbb76b..b46d79fc82e 100644 --- a/source/blender/editors/physics/rigidbody_object.c +++ b/source/blender/editors/physics/rigidbody_object.c @@ -100,10 +100,6 @@ bool ED_rigidbody_object_add(Scene *scene, Object *ob, int type, ReportList *rep BKE_report(reports, RPT_ERROR, "Can't add Rigid Body to non mesh object"); return false; } - if (((Mesh *)ob->data)->totpoly == 0) { - BKE_report(reports, RPT_ERROR, "Can't create Rigid Body from mesh with no polygons"); - return false; - } /* Add rigid body world and group if they don't exist for convenience */ if (rbw == NULL) { -- cgit v1.2.3