mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-26 01:19:51 -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.
|
* @returns {object} metadata for this extension and its blocks.
|
||||||
*/
|
*/
|
||||||
getInfo () {
|
getInfo () {
|
||||||
|
// Enable the video layer
|
||||||
|
this.runtime.ioDevices.video.enableVideo();
|
||||||
|
|
||||||
|
// Return extension definition
|
||||||
return {
|
return {
|
||||||
id: 'videoSensing',
|
id: 'videoSensing',
|
||||||
name: 'Video Motion',
|
name: 'Video Motion',
|
||||||
|
|
Loading…
Reference in a new issue