mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-08-02 01:22:31 -04:00
Merge pull request #1148 from kchadha/stage-layering
Layer group ordering.
This commit is contained in:
commit
a85f641d25
11 changed files with 79 additions and 40 deletions
src/engine
|
@ -12,6 +12,7 @@ const TargetType = require('../extension-support/target-type');
|
|||
const Thread = require('./thread');
|
||||
const log = require('../util/log');
|
||||
const maybeFormatMessage = require('../util/maybe-format-message');
|
||||
const StageLayering = require('./stage-layering');
|
||||
|
||||
// Virtual I/O devices.
|
||||
const Clock = require('../io/clock');
|
||||
|
@ -919,6 +920,7 @@ class Runtime extends EventEmitter {
|
|||
*/
|
||||
attachRenderer (renderer) {
|
||||
this.renderer = renderer;
|
||||
this.renderer.setLayerGroupOrdering(StageLayering.LAYER_GROUPS);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue