mirror of
https://github.com/JannisX11/blockbench.git
synced 2025-04-12 17:41:57 +08:00
Fix issue with particle local space position
This commit is contained in:
parent
31491894fe
commit
7ff45a2537
@ -993,7 +993,11 @@ class EffectAnimator extends GeneralAnimator {
|
||||
var locator = data_point.locator && Locator.all.find(l => l.name == data_point.locator)
|
||||
if (locator && locator.parent instanceof Group) {
|
||||
locator.parent.mesh.add(emitter.local_space);
|
||||
emitter.local_space.position.fromArray(locator.from);
|
||||
emitter.local_space.position.set(
|
||||
locator.from[0] - (locator.parent.origin?.[0] || 0),
|
||||
locator.from[1] - (locator.parent.origin?.[1] || 0),
|
||||
locator.from[2] - (locator.parent.origin?.[2] || 0)
|
||||
)
|
||||
emitter.parent_mode = 'locator';
|
||||
} else {
|
||||
emitter.parent_mode = 'entity';
|
||||
|
Loading…
x
Reference in New Issue
Block a user