Bug fix #1758
Using ImageSelect window for background pic in 3d window, assigned it to wrong window... this because the image-select window wasn't pushed before it used the callback to set the image.
This commit is contained in:
@@ -1039,6 +1039,7 @@ static void load_bgpic_image(char *name)
|
||||
Image *ima;
|
||||
View3D *vd;
|
||||
|
||||
areawinset(curarea->win);
|
||||
vd= G.vd;
|
||||
if(vd==0 || vd->bgpic==0) return;
|
||||
|
||||
|
||||
@@ -199,8 +199,8 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
char name[256];
|
||||
strcpy(name, simasel->dir);
|
||||
strcat(name, simasel->file);
|
||||
simasel->returnfunc(name);
|
||||
filesel_prevspace();
|
||||
simasel->returnfunc(name);
|
||||
}
|
||||
break;
|
||||
case 6:
|
||||
@@ -242,8 +242,8 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
|
||||
if(simasel->mode & IMS_STRINGCODE) BLI_makestringcode(G.sce, name);
|
||||
|
||||
simasel->returnfunc(name);
|
||||
filesel_prevspace();
|
||||
simasel->returnfunc(name);
|
||||
}
|
||||
queredraw = 1;
|
||||
}
|
||||
@@ -411,8 +411,8 @@ void winqreadimaselspace(ScrArea *sa, void *spacedata, BWinEvent *evt)
|
||||
if (simasel->returnfunc){
|
||||
strcpy(name, simasel->dir);
|
||||
strcat(name, simasel->file);
|
||||
simasel->returnfunc(name);
|
||||
filesel_prevspace();
|
||||
simasel->returnfunc(name);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user