Rigidity only for meshes
authorJens Ole Wund <bjornmose@gmx.net>
Tue, 26 Sep 2006 17:16:23 +0000 (17:16 +0000)
committerJens Ole Wund <bjornmose@gmx.net>
Tue, 26 Sep 2006 17:16:23 +0000 (17:16 +0000)
source/blender/src/buttons_object.c

index eb125b8f10508e2ad0ad97196d20cacbdb2b4371..983c6335407e7f50788bc84043aebab1cc4900b2 100644 (file)
@@ -2314,7 +2314,9 @@ static void object_softbodies(Object *ob)
                        uiDefButF(block, NUM, B_DIFF, "Grav:",                  10,150,150,20, &sb->grav , 0.0, 10.0, 10, 0, "Apply gravitation to point movement");
                        uiDefButF(block, NUM, B_DIFF, "Speed:",                 160,150,150,20, &sb->physics_speed , 0.01, 100.0, 10, 0, "Tweak timing for physics to control frequency and speed");
                        uiDefButF(block, NUM, B_DIFF, "Error Limit:",   10,130,150,20, &sb->rklimit , 0.01, 10.0, 10, 0, "The Runge-Kutta ODE solver error limit, low value gives more precision");
-                       uiDefButF(block, NUM, B_SOFTBODY_CHANGE, "Rigidity:", 160,130,150,20, &sb->secondspring, 0.0,  10.0, 10, 0, "Strenght of Springs over 2 Edges");
+                       if(ob->type==OB_MESH) {
+                               uiDefButF(block, NUM, B_SOFTBODY_CHANGE, "Rigidity:", 160,130,150,20, &sb->secondspring, 0.0,  10.0, 10, 0, "Strenght of Springs over 2 Edges");
+                       }
                        uiBlockEndAlign(block);
                        
                        /* GOAL STUFF */