22/07/2006
SPoG
- Fixed doom3 func_static with model not appearing to move when dragged.
+- Changed ASE model loader to parse material names the same way as DoomEdit.
+- Fixed title of wait-dialog when loading a model.
09/07/2006
Shaderman
{
if(_pico_strnicmp(p, "quake", 5) == 0 || _pico_strnicmp(p, "doom", 4) == 0)
{
- break;
- }
- }
- /* root-relative */
- for(; *p != '\0'; ++p)
- {
- if(*p == '/')
- {
- ++p;
- break;
+ /* root-relative */
+ for(; *p != '\0'; ++p)
+ {
+ if(*p == '/')
+ {
+ ++p;
+ /* game-relative */
+ for(; *p != '\0'; ++p)
+ {
+ if(*p == '/')
+ {
+ ++p;
+ break;
+ }
+ }
+ }
+ }
}
- }
- /* game-relative */
- for(; *p != '\0'; ++p)
- {
- if(*p == '/')
+ /* DoomEdit's ASE loader searches for /base/ */
+ else if(_pico_strnicmp(p, "/base/", 6) == 0)
{
- ++p;
+ p += 6;
break;
}
}
void Sys_Status(const char* status);
-void ScreenUpdates_Disable(const char* message, const char* title = "");
+void ScreenUpdates_Disable(const char* message, const char* title);
void ScreenUpdates_Enable();
bool ScreenUpdates_Enabled();
void ScreenUpdates_process();
class ScopeDisableScreenUpdates
{
public:
- ScopeDisableScreenUpdates(const char* message, const char* title = "")
+ ScopeDisableScreenUpdates(const char* message, const char* title)
{
ScreenUpdates_Disable(message, title);
}
if(!file.failed())
{
globalOutputStream() << "success\n";
- ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(filename));
+ ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(filename), "Loading Map");
ASSERT_NOTNULL(g_entityCreator);
format.readGraph(root, file, *g_entityCreator);
return true;
if(!file.failed())
{
globalOutputStream() << "success\n";
- ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(filename));
+ ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(filename), "Saving Map");
format.writeGraph(root, traverse, file);
return true;
}
NodeSmartReference ModelResource_load(ModelLoader* loader, const char* name)
{
- ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(name));
+ ScopeDisableScreenUpdates disableScreenUpdates(path_get_filename_start(name), "Loading Model");
NodeSmartReference model(g_nullModel);
void RefreshReferences()
{
- ScopeDisableScreenUpdates disableScreenUpdates("Refreshing models");
+ ScopeDisableScreenUpdates disableScreenUpdates("Processing...", "Refreshing Models");
g_referenceCache.refresh();
}