forked from bartvdbraak/blender
Second trial to get an OK menu work to allow people to decide whether
or not to use a 2.5+ saved file in 2.49. Apparently the msvc linker was choking on it?
This commit is contained in:
parent
81ea467091
commit
de2cc4d14d
@ -92,6 +92,7 @@ int pytype_is_pynode(struct PyObject *pyob);
|
||||
struct Oops;
|
||||
void free_oops(struct Oops *oops);
|
||||
void error(char *str, ...);
|
||||
int okee(char *str, ...);
|
||||
|
||||
/* anim.c */
|
||||
extern struct ListBase editNurb;
|
||||
|
@ -160,6 +160,7 @@ void BPY_pyconstraint_target(struct bPythonConstraint *con, struct bConstraintTa
|
||||
void free_oops(struct Oops *oops){}
|
||||
void exit_posemode(int freedata){}
|
||||
void error(char *str, ...){}
|
||||
int okee(char *str, ...){}
|
||||
|
||||
/* anim.c */
|
||||
ListBase editNurb;
|
||||
|
@ -431,14 +431,14 @@ static int handle_subversion_warning(Main *main)
|
||||
|
||||
char str[128];
|
||||
|
||||
/* XXX DO NOT PORT OVER TO 2.5 BRANCH! */
|
||||
if(main->minversionfile >= 250) {
|
||||
sprintf(str, "You have opened a %d file, key information will get lost, like animation data. Continue?", main->minversionfile);
|
||||
|
||||
if(G.background) {
|
||||
printf("ERROR: cannot render %d file\n", main->versionfile);
|
||||
}
|
||||
error(str);
|
||||
return 0;
|
||||
return okee(str);
|
||||
}
|
||||
else {
|
||||
sprintf(str, "File written by newer Blender binary: %d.%d , expect loss of data!", main->minversionfile, main->minsubversionfile);
|
||||
|
Loading…
Reference in New Issue
Block a user