[SOLVED] Anim Layer Masks and Blending Bug

Clicking the new ‘Create Mask’ button on the Anim component causes the error. “Error while saving changes, please refresh the editor.” This is happening every time the button is clicked, it’s not intermittent.

Screenshot (4)

Here is the error in the console:

realtime:scene:op:entities (event error)
instrument.ts:129 TypeError: Cannot read properties of undefined (reading '_data')
TypeError: Cannot read properties of undefined (reading '_data')
    at Observer.unset (observer.js:774)
    at Observer.unset (observer.js:786)
    at Observer.unset (observer.js:786)
    at Observer.set (observer.js:605)
    at ObserverSync.write (editor.js:669)
    at Editor.<anonymous> (editor.js:33698)
    at Editor.Events.emit (observer.js:107)
    at Realtime.<anonymous> (editor.js:28204)
    at Realtime.Events.emit (observer.js:107)
    at RealtimeScene._onOp (api.js:4386)
    at emitThree (editor.js:22574)
    at Doc.emit (editor.js:22638)
    at Doc._otApply (editor.js:26220)
    at Doc._rollback (editor.js:26543)
    at Doc._handleOp (editor.js:25899)
    at Connection.handleMessage (editor.js:25020)
    at socket.onmessage (editor.js:24917)
    at WebSocket._socket.onmessage (api.js:4137)

instrument.ts:129 Error: invalid:exception: Invalid path for: .0.mask.default-player-rigged/Armature/spine1/hip.L
    at wrapErrorData (editor.js:25038)
    at Connection.handleMessage (editor.js:24966)
    at socket.onmessage (editor.js:24917)
    at WebSocket._socket.onmessage (api.js:4137)

Also, I was able to reliably recreate this error with a fresh anim component.

Here is a barebones project: https://playcanvas.com/editor/scene/1242354

2 Likes

Thanks for the report, we will investigate

@Elliott

2 Likes

This is fixed as of v1.49.2.

Thank you PlayCanvas team!

1 Like

The engine patch has now been related in Editor too :slight_smile:

1 Like