diff options
author | Campbell Barton <ideasman42@gmail.com> | 2007-12-24 20:07:52 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2007-12-24 20:07:52 +0300 |
commit | 052a0551e49da2a1b07a42c3e67579d9ead4c1fe (patch) | |
tree | 0a06ed4edda3967364d8a00af33ce5c67357a191 /source/blender/src/header_info.c | |
parent | 8a07e665c28a94ffd188daa431a4fd0c5a460eba (diff) |
Added 'File->External Data->Make all files Absolute'
OpenGL stamp also wasnt checking correctly (own error)
Diffstat (limited to 'source/blender/src/header_info.c')
-rw-r--r-- | source/blender/src/header_info.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/source/blender/src/header_info.c b/source/blender/src/header_info.c index 174a5c683f0..beb3eb52820 100644 --- a/source/blender/src/header_info.c +++ b/source/blender/src/header_info.c @@ -963,7 +963,16 @@ static void do_info_externalfiles(void *arg, int event) pupmenu("Can't set relative paths with an unsaved blend file"); } break; - case 11: /* check images exist */ + case 11: /* make all paths relative */ + { + int tot,changed,failed,linked; + char str[512]; + makeFilesAbsolute(&tot, &changed, &failed, &linked); + sprintf(str, "Make Absolute%%t|Total files %i|Changed %i|Failed %i|Linked %i", tot, changed, failed, linked); + pupmenu(str); + } + break; + case 12: /* check images exist */ { /* Its really text but only care about the name */ ID *btxt = (ID *)checkMissingFiles(); @@ -977,7 +986,7 @@ static void do_info_externalfiles(void *arg, int event) } } break; - case 12: /* search for referenced files that are not available */ + case 13: /* search for referenced files that are not available */ activate_fileselect(FILE_SPECIAL, "Find Missing Files", "", findMissingFiles); break; } @@ -1002,8 +1011,9 @@ static uiBlock *info_externalfiles(void *arg_unused) uiDefBut(block, SEPR, 0, "", 0, yco-=6, menuwidth, 6, NULL, 0.0, 0.0, 0, 0, ""); uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Make all Paths Relative", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 10, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Report Missing Files", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 11, ""); - uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Find Missing Files", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 12, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Make all Paths Absolute", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 11, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Report Missing Files", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 12, ""); + uiDefIconTextBut(block, BUTM, 1, ICON_BLANK1, "Find Missing Files", 0, yco-=20, 160, 19, NULL, 0.0, 0.0, 1, 13, ""); uiBlockSetDirection(block, UI_RIGHT); uiTextBoundsBlock(block, 60); |