VoxelJob should be a inherited from Reference if ThreadPool is not available.

This commit is contained in:
Relintai 2020-10-24 22:08:39 +02:00
parent b069d38265
commit 4ecc424b84

View File

@ -28,7 +28,7 @@ SOFTWARE.
#if THREAD_POOL_PRESENT #if THREAD_POOL_PRESENT
#include "../../../thread_pool/thread_pool_job.h" #include "../../../thread_pool/thread_pool_job.h"
#else #else
#include "core/resource.h" #include "core/reference.h"
#endif #endif
#include "../../defines.h" #include "../../defines.h"
@ -43,8 +43,8 @@ class VoxelChunk;
class VoxelJob : public ThreadPoolJob { class VoxelJob : public ThreadPoolJob {
GDCLASS(VoxelJob, ThreadPoolJob); GDCLASS(VoxelJob, ThreadPoolJob);
#else #else
class VoxelJob : public Resource { class VoxelJob : public Reference {
GDCLASS(VoxelJob, Resource); GDCLASS(VoxelJob, Reference);
#endif #endif
public: public: