Skip to content

Commit e5874ce

Browse files
committed
core: Fill Stage's perspective_projection in render()
It's very hard to verify this value with any test while PerspectiveProjection rendering is not implemented. However, this change makes the most sense.
1 parent a71e3a2 commit e5874ce

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/src/display_object/stage.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,12 @@ impl<'gc> TDisplayObject<'gc> for Stage<'gc> {
838838
context.transform_stack.push(&Transform {
839839
matrix: self.0.read().viewport_matrix,
840840
color_transform: Default::default(),
841-
perspective_projection: None,
841+
// TODO: Verify perspective_projection when its rendering is implemented.
842+
perspective_projection: self
843+
.as_displayobject()
844+
.base()
845+
.perspective_projection()
846+
.copied(),
842847
});
843848

844849
// All of our Stage3D instances get rendered *underneath* the main stage.

0 commit comments

Comments
 (0)