This commit is contained in:
2026-06-04 03:37:27 +01:00
parent be9fd42231
commit 7fd622b331

View File

@ -103,7 +103,7 @@ class Camera:
def _newPicture(self, _, timeGap: float): def _newPicture(self, _, timeGap: float):
if self._multiPictureOngoing: if self._multiPictureOngoing:
return return
# Don't perform multishot in print mode # Don't perform multishot in print mode
if self._lastMode == 5: if self._lastMode == 5:
return return
@ -128,7 +128,7 @@ class Camera:
Gets called every time the camera mode changes in VRChat. Gets called every time the camera mode changes in VRChat.
""" """
enabledFlag = self._lastMode = 0 and newMode != 0 enabledFlag = self._lastMode == 0 and newMode != 0
self._lastMode = newMode self._lastMode = newMode
if enabledFlag: if enabledFlag:
self._onCameraEnabled() self._onCameraEnabled()