Skip to content
Snippets Groups Projects
Unverified Commit e7c02de6 authored by Paul Kaplan's avatar Paul Kaplan Committed by GitHub
Browse files

Merge pull request #3990 from paulkaplan/fix-video-flipping

Only attach the video provider once on the VM
parents cabd92a6 c033844c
No related branches found
No related tags found
No related merge requests found
......@@ -60,6 +60,9 @@ class Stage extends React.Component {
this.renderer = new Renderer(this.canvas);
this.props.vm.attachRenderer(this.renderer);
// Only attach a video provider once because it is stateful
this.props.vm.setVideoProvider(new VideoProvider());
// Calling draw a single time before any project is loaded just makes
// the canvas white instead of solid black–needed because it is not
// possible to use CSS to style the canvas to have a different
......@@ -68,7 +71,6 @@ class Stage extends React.Component {
}
this.props.vm.attachV2SVGAdapter(new V2SVGAdapter());
this.props.vm.attachV2BitmapAdapter(new V2BitmapAdapter());
this.props.vm.setVideoProvider(new VideoProvider());
}
componentDidMount () {
this.attachRectEvents();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment