Enable video layer when loading extension. Resolves GH-1072

This commit is contained in:
Andrew Sliwinski 2018-04-23 13:03:56 -04:00
parent ced4de8995
commit add879ab0a

View file

@ -336,6 +336,10 @@ class Scratch3VideoSensingBlocks {
* @returns {object} metadata for this extension and its blocks.
*/
getInfo () {
// Enable the video layer
this.runtime.ioDevices.video.enableVideo();
// Return extension definition
return {
id: 'videoSensing',
name: 'Video Motion',