mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-24 06:52:40 -05:00
Enable video layer when loading extension. Resolves GH-1072
This commit is contained in:
parent
ced4de8995
commit
add879ab0a
1 changed files with 4 additions and 0 deletions
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue