1
0
Fork 0

Fix chyby pri nacitani konfiguracie

master
Dušan Poizl 8 years ago
parent bd71205a05
commit 52d808e8f6
  1. 2
      tracer.cpp
  2. 2
      tracerconfig.cpp

@ -287,7 +287,7 @@ void Tracer::initWithSceneConfig(TracerConfig &_config)
delete [] minDistance;
frames = new float[framesLenght()];
minDistance = new float[framesLenght()];
minDistance = new float[imgLength()];
memset(frames, 0, framesLenght()*sizeof(float));
for(uint i=0;i<imgLength();i++)
minDistance[i] = INFINITY;

@ -91,7 +91,7 @@ TracerConfig TracerConfig::loadFromFile(const QString &path)
}
else if(elem.tagName()=="frames")
{
config.numFrames = elem.attribute("number", "250").toInt();
config.numFrames = elem.attribute("count", "250").toInt();
config.frameStep = elem.attribute("step", "0.1").toFloat();
}

Loading…
Cancel
Save