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()
|
||||
.into(),
|
||||
};
|
||||
|
||||
if pathObj.exists() {
|
||||
model.load_model(path, diff_texture, cache);
|
||||
} else {
|
||||
warn!("{} does not exist, returning empty model", path);
|
||||
}
|
||||
|
||||
model
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue