Browse Source

Don't export plOmniSqApplicator to PotS or ABM

This is unimplemented and causes the game to crash when dereferencing a
null controller.
pull/82/head
Adam Johnson 7 years ago
parent
commit
740da9c92b
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 3
      korman/exporter/animation.py

3
korman/exporter/animation.py

@ -188,6 +188,7 @@ class AnimationConverter:
applicator.channel = channel
yield applicator
elif falloff == "INVERSE_SQUARE":
if self._mgr.getVer() >= pvMoul:
def convert_quadratic_atten(distance, energy):
intens = abs(energy[0])
atten_end = distance[0] if lamp.use_sphere else distance[0] * 2
@ -202,6 +203,8 @@ class AnimationConverter:
applicator.channelName = name
applicator.channel = channel
yield applicator
else:
self._exporter().report.port("Lamp Falloff '{}' animations only partially supported for this version of Plasma", falloff, indent=3)
else:
self._exporter().report.warn("Lamp Falloff '{}' animations are not supported".format(falloff), ident=3)

Loading…
Cancel
Save