Fancy effects: fix fireworks effect positioning

This commit is contained in:
Alexey Andreyev
2021-02-25 14:14:00 +03:00
parent 6fca7830a3
commit 12fa970544

View File

@@ -273,7 +273,7 @@ Item {
var currentSize = Math.round(Math.random() * 200) + 40
var currentLifeSpan = Math.round(Math.random() * 1000) + 100
for (var i=0; i<8; i++) {
var obj = emitterComp.createObject(root);
var obj = emitterComp.createObject(parent);
obj.x = x
obj.y = y
obj.targetX = Math.random() * currentSize - currentSize/2 + obj.x