Merge pull request #71925 from clayjohn/RD-particles-view

Ensure that Particles have fully initialized before doing view axis pass in RD renderers
This commit is contained in:
Rémi Verschelde 2023-01-23 20:09:45 +01:00
commit 738e96529e
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1145,7 +1145,7 @@ void ParticlesStorage::particles_set_view_axis(RID p_particles, const Vector3 &p
return; return;
} }
if (particles->particle_buffer.is_null()) { if (particles->particle_buffer.is_null() || particles->trail_bind_pose_uniform_set.is_null()) {
return; //particles have not processed yet return; //particles have not processed yet
} }