- fixed bug #384

browsing new texture for lamp in texturebuttons (f6) only gave 'add new'
  option.
- saving images in texturepaint mode saves in same format only. this is
  far from an easy fix to use the scene settings, so it indicates with
  saving clearly its in the same type now
This commit is contained in:
Ton Roosendaal
2003-11-08 10:02:30 +00:00
parent c11eb86112
commit 9caa2fee8e
2 changed files with 2 additions and 3 deletions

View File

@@ -342,8 +342,7 @@ void do_image_buttons(unsigned short event)
if (ima) {
strcpy(name, ima->name);
if (ima->ibuf) {
save_image_filesel_str(str);
activate_fileselect(FILE_SPECIAL, str, name, save_paint);
activate_fileselect(FILE_SPECIAL, "Save in same type", name, save_paint);
}
}
break;

View File

@@ -288,7 +288,7 @@ int std_libbuttons(uiBlock *block, short xco, short yco,
if(browse==B_WORLDBROWSE) {
id= G.main->world.first;
}
else if(ob && ob->type && (ob->type<OB_LAMP)) {
else if(ob && ob->type && (ob->type<=OB_LAMP)) {
if(G.buts->mainb==CONTEXT_SHADING) {
int tab= G.buts->tab[CONTEXT_SHADING];