diff options
author | clayjohn <claynjohn@gmail.com> | 2023-01-23 09:37:18 -0800 |
---|---|---|
committer | clayjohn <claynjohn@gmail.com> | 2023-01-23 09:37:18 -0800 |
commit | ce8a2c6dbf4fd160f79c4da186844717c17d0875 (patch) | |
tree | d3d107ce1ae92df09bd8149fb14b3a805519d0ab | |
parent | e6bd9c10fcc3acb8fe47b1c5c4b3e189143f4d33 (diff) |
Ensure that Particles have fully initialized before doing view axis pass in RD renderers
-rw-r--r-- | servers/rendering/renderer_rd/storage_rd/particles_storage.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp b/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp index f4c3e769a8..00fb8acca8 100644 --- a/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp +++ b/servers/rendering/renderer_rd/storage_rd/particles_storage.cpp @@ -1145,7 +1145,7 @@ void ParticlesStorage::particles_set_view_axis(RID p_particles, const Vector3 &p 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 } |