mirror of
https://github.com/scp-fs2open/fs2open.github.com.git
synced 2026-11-10 17:46:53 -10:00
This regression was introduced with the new model draw list which separates collecting the drawing information and actually drawing the objects. Previously, the scripting hook was always executed and the override condition was used to determine if the normal rendering should happen. Since 3.7.4, the scripting code is only executed if the condition was overridden by Lua and if that override is active then the model isn't rendered at all. This executes the scripting hook in all cases and then checks if the scripting system specified if rendering of that object should be skipped. This introduces some slight changes in behavior since, when the scripting hook is executed, the object isn't actually being rendered but instead it's added to the draw list. IMO, that is not a major issue for any existing application or else we would have heard about that until now. This fixes Mantis 3175.