Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Tönne <lukas.toenne@gmail.com>2014-06-01 17:54:58 +0400
committerLukas Tönne <lukas.toenne@gmail.com>2014-06-01 17:58:24 +0400
commit7674ebf3407b4ac8dcf1ba88a9a240b619c13ae5 (patch)
tree2841b901b10227348314bb3a3586a60f88dfe3aa /source/blender/editors
parent682b949d0fb0bc4f1bc70a400702893481a79537 (diff)
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).
Diffstat (limited to 'source/blender/editors')
-rw-r--r--source/blender/editors/physics/rigidbody_object.c4
1 files changed, 0 insertions, 4 deletions
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) {