|
|
|
@ -262,7 +262,7 @@ namespace NLQT
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//updateAnimation(_AnimationDialog->getTime());
|
|
|
|
|
|
|
|
|
|
updateAnimatePS();
|
|
|
|
|
// 10. Update Camera (depends on entities)
|
|
|
|
|
// ...
|
|
|
|
|
|
|
|
|
@ -719,6 +719,19 @@ namespace NLQT
|
|
|
|
|
//CFile::deleteFile(filename);
|
|
|
|
|
return icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void CObjectViewerWidget::updateAnimatePS(uint64 deltaTime)
|
|
|
|
|
{
|
|
|
|
|
static sint64 firstTime = NLMISC::CTime::getLocalTime();
|
|
|
|
|
static sint64 lastTime = NLMISC::CTime::getLocalTime();
|
|
|
|
|
if (deltaTime == 0)
|
|
|
|
|
{
|
|
|
|
|
deltaTime = NLMISC::CTime::getLocalTime() - lastTime;
|
|
|
|
|
}
|
|
|
|
|
lastTime += deltaTime;
|
|
|
|
|
float fdelta = 0.001f * (float) (lastTime - firstTime);
|
|
|
|
|
_Scene->animate ( fdelta);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#if defined(NL_OS_WINDOWS)
|
|
|
|
|
|
|
|
|
|