mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-09 20:13:05 -04:00
update execution order from draw-related look instructions
This commit is contained in:
parent
afc546077e
commit
a0b7e94c9e
1 changed files with 8 additions and 0 deletions
|
@ -900,6 +900,8 @@ class RenderedTarget extends Target {
|
|||
// of what layers are present
|
||||
this.renderer.setDrawableOrder(this.drawableID, Infinity, StageLayering.SPRITE_LAYER);
|
||||
}
|
||||
|
||||
this.runtime.setExecutablePosition(this, Infinity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -911,6 +913,8 @@ class RenderedTarget extends Target {
|
|||
// of what layers are present
|
||||
this.renderer.setDrawableOrder(this.drawableID, -Infinity, StageLayering.SPRITE_LAYER, false);
|
||||
}
|
||||
|
||||
this.runtime.setExecutablePosition(this, -Infinity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -921,6 +925,8 @@ class RenderedTarget extends Target {
|
|||
if (this.renderer) {
|
||||
this.renderer.setDrawableOrder(this.drawableID, nLayers, StageLayering.SPRITE_LAYER, true);
|
||||
}
|
||||
|
||||
this.runtime.moveExecutable(this, nLayers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -931,6 +937,8 @@ class RenderedTarget extends Target {
|
|||
if (this.renderer) {
|
||||
this.renderer.setDrawableOrder(this.drawableID, -nLayers, StageLayering.SPRITE_LAYER, true);
|
||||
}
|
||||
|
||||
this.runtime.moveExecutable(this, -nLayers);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue