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:
authorTon Roosendaal <ton@blender.org>2006-11-04 14:22:22 +0300
committerTon Roosendaal <ton@blender.org>2006-11-04 14:22:22 +0300
commit1b125eba3892d3b74937cfed2769c5c505e39970 (patch)
treef3b0fe8d9ffa62dce6d5a6bfb49a01cacf7606ea /source/blender/src/editobject.c
parent1ab71b223340d1ea643027d4515c0cca7e0464e5 (diff)
Bugfix #5146
Copy modifiers menu should be available for Lattice and Surface objects. Note it does not support copying between different object types, that is being indicated with a notice popup now. I rather not code copying to other object types for now, this is something which fits better in the modifiers API first. Right now the buttons code handles this.
Diffstat (limited to 'source/blender/src/editobject.c')
-rw-r--r--source/blender/src/editobject.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/source/blender/src/editobject.c b/source/blender/src/editobject.c
index 5e970a161ef..e264f18ff24 100644
--- a/source/blender/src/editobject.c
+++ b/source/blender/src/editobject.c
@@ -2738,9 +2738,10 @@ static void copymenu_logicbricks(Object *ob)
static void copymenu_modifiers(Object *ob)
{
- char str[512];
- int i, event;
Base *base;
+ int i, event;
+ char str[512];
+ char *errorstr= NULL;
strcpy(str, "Copy Modifiers %t");
@@ -2804,10 +2805,14 @@ static void copymenu_modifiers(Object *ob)
}
}
}
+ else
+ errorstr= "Did not copy modifiers to other Object types";
}
}
}
-
+
+ if(errorstr) notice(errorstr);
+
allqueue(REDRAWVIEW3D, 0);
allqueue(REDRAWBUTSOBJECT, 0);
DAG_scene_sort(G.scene);
@@ -3179,7 +3184,7 @@ void copy_attr_menu()
if(ob->soft) strcat(str, "|Soft Body Settings%x23");
- if(ob->type==OB_MESH || ob->type==OB_CURVE){
+ if(ob->type==OB_MESH || ob->type==OB_CURVE || ob->type==OB_LATTICE || ob->type==OB_SURF){
strcat(str, "|Modifiers ...%x24");
}