fix 0 update props case

This commit is contained in:
HifiExperiments 2024-03-23 20:39:40 -07:00
parent b97378d4cd
commit 0538284492
4 changed files with 5 additions and 5 deletions

View file

@ -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;
}

View file

@ -55,7 +55,7 @@ private:
bool _transparent { false };
std::array<FramebufferPointer, 2> _particleBuffers;
bool _evenPass{ true };
bool _evenPass { true };
};
} } // namespace

View file

@ -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;
}

View file

@ -1403,7 +1403,7 @@ const GROUPS = [
label: "Update Props",
type: "number-draggable",
propertyID: "numUpdateProps",
min: 1,
min: 0,
max: 5
},
{