mirror of https://github.com/Leinnan/doppler.git
Detect wrong path for model
This commit is contained in:
parent
3a33c372af
commit
e7c29754a6
|
|
@ -31,7 +31,13 @@ impl Model {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
.into(),
|
.into(),
|
||||||
};
|
};
|
||||||
model.load_model(path, diff_texture, cache);
|
|
||||||
|
if pathObj.exists() {
|
||||||
|
model.load_model(path, diff_texture, cache);
|
||||||
|
} else {
|
||||||
|
warn!("{} does not exist, returning empty model", path);
|
||||||
|
}
|
||||||
|
|
||||||
model
|
model
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue