added option to not animate the model as having propeller '_no_propeller'

This commit is contained in:
Alexsandro Percy 2024-10-05 13:50:51 -03:00
parent 99f0b94cd9
commit dbc03948c4

View file

@ -712,7 +712,9 @@ function airutils.engine_set_sound_and_animation(self)
if self._engine_running then
if self._last_applied_power ~= self._power_lever and not self._autopilot then
self._last_applied_power = self._power_lever
self.object:set_animation_frame_speed(60 + self._power_lever)
if not self._no_propeller then
self.object:set_animation_frame_speed(60 + self._power_lever)
end
airutils.engineSoundPlay(self)
end
else