Commit: 7674ebf3407b4ac8dcf1ba88a9a240b619c13ae5
Author: Lukas Tönne
Date: Sun Jun 1 15:54:58 2014 +0200
https://developer.blender.org/rB7674ebf3407b4ac8dcf1ba88a9a240b619c13ae5
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).
===================================================================
M 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 7ba37bb..b46d79f 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) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs