mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 19:59:28 +02:00
CR feedback
This commit is contained in:
parent
e16961c958
commit
b9671f3f9b
1 changed files with 5 additions and 6 deletions
|
@ -1845,14 +1845,13 @@ bool Octree::readFromSVOFile(const char* fileName) {
|
||||||
bool fileOk = false;
|
bool fileOk = false;
|
||||||
|
|
||||||
QFile file(fileName);
|
QFile file(fileName);
|
||||||
QFileInfo fileInfo(fileName);
|
fileOk = file.open(QIODevice::ReadOnly);
|
||||||
bool isOpen = file.open(QIODevice::ReadOnly);
|
|
||||||
QDataStream fileInputStream(&file); // read the data serialized from the file
|
|
||||||
|
|
||||||
// get file length....
|
if(fileOk) {
|
||||||
unsigned long fileLength = fileInfo.size();
|
QDataStream fileInputStream(&file);
|
||||||
|
QFileInfo fileInfo(fileName);
|
||||||
|
unsigned long fileLength = fileInfo.size();
|
||||||
|
|
||||||
if(isOpen) {
|
|
||||||
emit importSize(1.0f, 1.0f, 1.0f);
|
emit importSize(1.0f, 1.0f, 1.0f);
|
||||||
emit importProgress(0);
|
emit importProgress(0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue