many menu items would crash blender if there was no 3d view. added checks.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user