mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 15:02:06 -05:00
Fix video sensing by calling updateMatrix manually before using isTouching
This commit is contained in:
parent
9b7a9770d7
commit
3cf45f4e07
1 changed files with 5 additions and 0 deletions
|
@ -289,6 +289,11 @@ class VideoMotion {
|
|||
_curr: curr
|
||||
} = this;
|
||||
|
||||
// The public APIs for Renderer#isTouching manage keeping the matrix and
|
||||
// silhouette up-to-date, which is needed for drawable#isTouching to work
|
||||
drawable.updateMatrix();
|
||||
if (drawable.skin) drawable.skin.updateSilhouette();
|
||||
|
||||
// Restrict the region the amount and direction are built from to
|
||||
// the area of the current frame overlapped by the given drawable's
|
||||
// bounding box.
|
||||
|
|
Loading…
Reference in a new issue