mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-01-30 05:06:29 -05:00
Render animations from their origin in composite. (#318)
This commit is contained in:
parent
418c798c2c
commit
0f7571a5b9
@ -53,7 +53,7 @@ func (c *Composite) Render(target d2render.Surface) error {
|
|||||||
for _, layerIndex := range c.mode.drawOrder[c.mode.frameIndex] {
|
for _, layerIndex := range c.mode.drawOrder[c.mode.frameIndex] {
|
||||||
layer := c.mode.layers[layerIndex]
|
layer := c.mode.layers[layerIndex]
|
||||||
if layer != nil {
|
if layer != nil {
|
||||||
if err := layer.Render(target); err != nil {
|
if err := layer.RenderFromOrigin(target); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user