many menu items would crash blender if there was no 3d view. added checks.

This commit is contained in:
2007-03-14 09:08:41 +00:00
parent 5d234230bf
commit 6b584a6504
6 changed files with 89 additions and 56 deletions

View File

@@ -5148,6 +5148,11 @@ void set_ob_ipoflags(void)
Base *base;
int set= 1;
if (!G.vd) {
error("Can't do this! Open a 3D window");
return;
}
base= FIRSTBASE;
while(base) {
if TESTBASE(base) {
@@ -5189,6 +5194,11 @@ void select_select_keys(void)
BezTriple *bezt;
int a;
if (!G.vd) {
error("Can't do this! Open a 3D window");
return;
}
if(G.scene->id.lib) return;
if(okee("Show and select all keys")==0) return;