Many buttons assumed G.vd existed. found all? buttons that cheashed Blender and made them test for G.vd

This commit is contained in:
2006-06-25 13:58:42 +00:00
parent 223ec5074d
commit a966a72cd6
6 changed files with 20 additions and 4 deletions

View File

@@ -3860,6 +3860,11 @@ void RE_make_sticky(void)
float ho[4], mat[4][4];
int a;
if(G.vd==NULL) {
printf("Need a 3d view to make sticky\n");
return;
}
if(G.scene->camera==NULL) {
printf("Need camera to make sticky\n");
return;