Optics - Don't modify camera for ThreeDen Editor

Fix broken ThreeDen Camera when returning to editor from preview.
PIP will still work in preview.
Will have to take a look at 1.56 RC to see if command exists and
eventually cleanup.
This commit is contained in:
PabstMirror 2015-12-16 11:28:43 -06:00
parent 9833a543b0
commit 360bdcb50e

View File

@ -6,6 +6,12 @@ if (!hasInterface) exitWith {};
GVAR(camera) = objNull;
0 = 0 spawn {
// Workarround for the ThreeDen Editor Camera
//ToDo: verify if command will exist in 1.56 release
if (((productVersion select 2) >= 155) && {is3DEN}) exitWith {
ACE_LOGINFO("Eden detected: disabling Optics PIP Camera");
};
waituntil {!isNull ACE_player};
waituntil {sleep 1; {_x != GVAR(camera)} count allMissionObjects "camera" == 0 && {isNull curatorCamera}};