mirror of
https://github.com/Relintai/props.git
synced 2025-02-04 16:05:54 +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
|
#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();
|
//reset_meshes();
|
||||||
set_complete(true);
|
set_complete(true);
|
||||||
finished();
|
finished();
|
||||||
@ -296,7 +296,7 @@ void PropInstancePropJob::phase_prop() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (should_do()) {
|
if (should_do()) {
|
||||||
if (_prop_mesh_datas.size() == 0) {
|
if (_prop_mesh_datas.size() == 0 && _prop_tiled_wall_datas.size() == 0) {
|
||||||
//reset_meshes();
|
//reset_meshes();
|
||||||
reset_stages();
|
reset_stages();
|
||||||
set_complete(true); //So threadpool knows it's done
|
set_complete(true); //So threadpool knows it's done
|
||||||
|
Loading…
Reference in New Issue
Block a user