hairparticle fade fix
This commit is contained in:
@@ -76,9 +76,6 @@ void MainComponent::Initialize()
|
||||
|
||||
|
||||
wiInitializer::InitializeComponentsAsync();
|
||||
|
||||
wiLua::GetGlobal()->RegisterObject(MainComponent_BindLua::className, "main", new MainComponent_BindLua(this));
|
||||
wiLua::GetGlobal()->RunFile("startup.lua");
|
||||
}
|
||||
|
||||
void MainComponent::ActivatePath(RenderPath* component, float fadeSeconds, wiColor fadeColor)
|
||||
@@ -122,6 +119,14 @@ void MainComponent::Run()
|
||||
return;
|
||||
}
|
||||
|
||||
static bool startup_script = false;
|
||||
if (!startup_script)
|
||||
{
|
||||
startup_script = true;
|
||||
wiLua::GetGlobal()->RegisterObject(MainComponent_BindLua::className, "main", new MainComponent_BindLua(this));
|
||||
wiLua::GetGlobal()->RunFile("startup.lua");
|
||||
}
|
||||
|
||||
wiProfiler::BeginFrame();
|
||||
|
||||
deltaTime = float(std::max(0.0, timer.elapsed() / 1000.0));
|
||||
|
||||
Reference in New Issue
Block a user