mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +02:00
fix 0 update props case
This commit is contained in:
parent
b97378d4cd
commit
0538284492
4 changed files with 5 additions and 5 deletions
|
@ -200,7 +200,7 @@ void ProceduralParticleEffectEntityRenderer::doRender(RenderArgs* args) {
|
|||
Q_ASSERT(args->_batch);
|
||||
gpu::Batch& batch = *args->_batch;
|
||||
|
||||
if (!_visible || (_numUpdateProps > 0 && !_updateProcedural.isReady()) || !_renderProcedural.isReady()) {
|
||||
if (!_visible || _numParticles == 0 || (_numUpdateProps > 0 && !_updateProcedural.isReady()) || !_renderProcedural.isReady()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,7 @@ private:
|
|||
bool _transparent { false };
|
||||
|
||||
std::array<FramebufferPointer, 2> _particleBuffers;
|
||||
bool _evenPass{ true };
|
||||
bool _evenPass { true };
|
||||
};
|
||||
|
||||
} } // namespace
|
||||
|
|
|
@ -20,8 +20,8 @@ namespace particle {
|
|||
static const uint8_t DEFAULT_NUM_TRIS_PER = 1;
|
||||
static const uint8_t MINIMUM_TRIS_PER = 1;
|
||||
static const uint8_t MAXIMUM_TRIS_PER = 15;
|
||||
static const uint8_t DEFAULT_NUM_UPDATE_PROPS = 1;
|
||||
static const uint8_t MINIMUM_NUM_UPDATE_PROPS = 1;
|
||||
static const uint8_t DEFAULT_NUM_UPDATE_PROPS = 0;
|
||||
static const uint8_t MINIMUM_NUM_UPDATE_PROPS = 0;
|
||||
static const uint8_t MAXIMUM_NUM_UPDATE_PROPS = 5;
|
||||
}
|
||||
|
||||
|
|
|
@ -1403,7 +1403,7 @@ const GROUPS = [
|
|||
label: "Update Props",
|
||||
type: "number-draggable",
|
||||
propertyID: "numUpdateProps",
|
||||
min: 1,
|
||||
min: 0,
|
||||
max: 5
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue