Skip to content

Commit

Permalink
Fix for #35
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbian committed Jul 12, 2019
1 parent dec5bc9 commit 9147ed3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ModelMultiShurikenPersistFX.cs
@@ -1,4 +1,4 @@
/*
/*
* Copyright (c) 2017, Sébastien GAGGINI AKA Sarbian, France
* All rights reserved.
*
Expand Down Expand Up @@ -576,6 +576,11 @@ public void Update()
// LateUpdate is called after physics calculations too, so the newly emitted plume particles are right where they should be.
public void LateUpdate ()
{
if (persistentEmitters == null || hostPart == null || hostPart.Rigidbody == null)
{
return;
}

for (int i = 0; i < persistentEmitters.Count; i++)
{
PersistentKSPShurikenEmitter emitter = persistentEmitters[i];
Expand Down

0 comments on commit 9147ed3

Please sign in to comment.