Ignore PLACE_CAMERA tags in renderer for the time being.
This commit is contained in:
parent
f2be6d2bb8
commit
1da2ac8397
@ -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}")
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user