mirror of
https://github.com/Relintai/props.git
synced 2024-11-14 10:17:30 +01:00
Actually queue up the job in prop instance merger.
This commit is contained in:
parent
a364f91bd5
commit
688499cca0
@ -49,6 +49,10 @@ typedef class RenderingServer VS;
|
|||||||
#include "./singleton/prop_texture_cache.h"
|
#include "./singleton/prop_texture_cache.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if THREAD_POOL_PRESENT
|
||||||
|
#include "../thread_pool/thread_pool.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
Ref<PropInstanceJob> PropInstanceMerger::get_job() {
|
Ref<PropInstanceJob> PropInstanceMerger::get_job() {
|
||||||
return _job;
|
return _job;
|
||||||
}
|
}
|
||||||
@ -243,6 +247,12 @@ void PropInstanceMerger::_build() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
prop_preprocess(Transform(), _prop_data);
|
prop_preprocess(Transform(), _prop_data);
|
||||||
|
|
||||||
|
#if THREAD_POOL_PRESENT
|
||||||
|
ThreadPool::get_singleton()->add_job(_job);
|
||||||
|
#else
|
||||||
|
_job->execute();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void PropInstanceMerger::_build_finished() {
|
void PropInstanceMerger::_build_finished() {
|
||||||
|
Loading…
Reference in New Issue
Block a user