mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
restart PFH on optic reload. Fixes #812
This commit is contained in:
parent
1d108f42a7
commit
d63de3a09e
@ -33,7 +33,8 @@ uiNameSpace setVariable [QGVAR(arguments),
|
||||
|
||||
|
||||
_pfh_handle = uiNamespace getVariable ["ACE_RscOptics_javelin_PFH", nil];
|
||||
if(isNil "_pfh_handle") then {
|
||||
_pfh_handle = [FUNC(onOpticDraw), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
uiNamespace setVariable["ACE_RscOptics_javelin_PFH", _pfh_handle];
|
||||
};
|
||||
if(!isNil "_pfh_handle") then {
|
||||
[] call FUNC(onOpticUnload); // Unload optic if it was already loaded
|
||||
};
|
||||
_pfh_handle = [FUNC(onOpticDraw), 0, []] call CBA_fnc_addPerFrameHandler;
|
||||
uiNamespace setVariable["ACE_RscOptics_javelin_PFH", _pfh_handle];
|
||||
|
Loading…
Reference in New Issue
Block a user