Enable video layer when loading extension. Resolves GH-1072
This commit is contained in:
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',
|
||||
|
||||
Reference in new issue
Block a user