mirror of
https://github.com/Relintai/props.git
synced 2024-11-12 10:15:25 +01:00
Make sure PropInstancePropJob generates mesh when the prop only has tiled walls.
This commit is contained in:
parent
0bfe718d03
commit
4cc187303b
@ -169,7 +169,7 @@ void PropInstancePropJob::_execute_phase() {
|
||||
}
|
||||
|
||||
#ifdef MESH_DATA_RESOURCE_PRESENT
|
||||
if (_prop_mesh_datas.size() == 0) {
|
||||
if (_prop_mesh_datas.size() == 0 && _prop_tiled_wall_datas.size() == 0) {
|
||||
//reset_meshes();
|
||||
set_complete(true);
|
||||
finished();
|
||||
@ -296,7 +296,7 @@ void PropInstancePropJob::phase_prop() {
|
||||
}
|
||||
|
||||
if (should_do()) {
|
||||
if (_prop_mesh_datas.size() == 0) {
|
||||
if (_prop_mesh_datas.size() == 0 && _prop_tiled_wall_datas.size() == 0) {
|
||||
//reset_meshes();
|
||||
reset_stages();
|
||||
set_complete(true); //So threadpool knows it's done
|
||||
|
Loading…
Reference in New Issue
Block a user