Enable video layer when loading extension. Resolves GH-1072

This commit is contained in:
Andrew Sliwinski committed 2018-04-23 13:03:56 -04:00
1 parent ced4de8995
commit add879ab0a
1 file changed
+4
@@ -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',