Bugfix #6931:
I-Key on Fields not working for Empty Object. Was wrongly only checking for Meshes.
This commit is contained in:
@@ -2659,11 +2659,14 @@ void common_insertkey(void)
|
||||
}
|
||||
else if(G.buts->mainb==CONTEXT_OBJECT) {
|
||||
ob= OBACT;
|
||||
if(ob && ob->type==OB_MESH) {
|
||||
if(ob) {
|
||||
id= (ID *) (ob);
|
||||
if(id) {
|
||||
event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4");
|
||||
if(event== -1) return;
|
||||
if(ob->type==OB_MESH)
|
||||
event= pupmenu("Insert Key %t|Surface Damping%x0|Random Damping%x1|Permeability%x2|Force Strength%x3|Force Falloff%x4");
|
||||
else
|
||||
event= pupmenu("Insert Key %t|Force Strength%x3|Force Falloff%x4");
|
||||
if(event == -1) return;
|
||||
|
||||
if(event==0) {
|
||||
insertkey(id, ID_OB, NULL, NULL, OB_PD_SDAMP);
|
||||
|
||||
Reference in New Issue
Block a user