Merge pull request #3041 from acemod/fixThreeDenCam

Optics - Don't modify camera for ThreeDen Editor
This commit is contained in:
PabstMirror 2015-12-17 16:28:36 -06:00
commit d8d3c146d3

View File

@ -6,6 +6,11 @@ if (!hasInterface) exitWith {};
GVAR(camera) = objNull;
0 = 0 spawn {
// Workarround for the ThreeDen Editor Camera
if ((!isNil {is3DEN}) && {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}};