1
0
mirror of synced 2025-01-18 22:24:04 +01:00

Ignore PLACE_CAMERA tags in renderer for the time being.

This commit is contained in:
Jennifer Taylor 2021-05-17 03:55:41 +00:00
parent f2be6d2bb8
commit 1da2ac8397

View File

@ -2,7 +2,7 @@ from typing import Dict, List, Tuple, Optional, Union
from PIL import Image # type: ignore
from .blend import affine_composite
from .swf import SWF, Frame, Tag, AP2ShapeTag, AP2DefineSpriteTag, AP2PlaceObjectTag, AP2RemoveObjectTag, AP2DoActionTag, AP2DefineFontTag, AP2DefineEditTextTag
from .swf import SWF, Frame, Tag, AP2ShapeTag, AP2DefineSpriteTag, AP2PlaceObjectTag, AP2RemoveObjectTag, AP2DoActionTag, AP2DefineFontTag, AP2DefineEditTextTag, AP2PlaceCameraTag
from .types import Color, Matrix, Point
from .geo import Shape, DrawParams
from .util import VerboseOutput
@ -351,6 +351,12 @@ class AFPRenderer(VerboseOutput):
# Didn't place a new clip.
return None, False
elif isinstance(tag, AP2PlaceCameraTag):
print("WARNING: Unhandled PLACE_CAMERA tag!")
# Didn't place a new clip.
return None, False
else:
raise Exception(f"Failed to process tag: {tag}")