Wicklets / wick-editor

A free and open-source tool for creating games, animations and everything in-between!
https://www.wickeditor.com
GNU General Public License v3.0
618 stars 101 forks source link

[BUG] Clip disappears when dragging #373

Open nrichardqc opened 1 year ago

nrichardqc commented 1 year ago

TP44-25-2023_8-20-57.wick.zip Describe the bug I have a tween with a clip. When dragging the said clip, it disappears with the error : TypeError: clip is undefined index.js:37 Error Details: Object { error: "TypeError: clip is undefined", url: "https://www.wickeditor.com/editor/corelibs/wick-engine/wickengine.js", line: 56683 } index.js:37

To Reproduce Steps to reproduce the behavior:

  1. Open the attached file.
  2. Click "Preview Play". Everything's fine.
  3. Move time to 35.
  4. Go to layer "Ballon" (ball).
  5. Move the red circle.

Expected behavior The "ballon" clip is moved, creating a new key-frame.

Actual behavior The circle disappears, with the error in Firefox 112.0.1 : An AudioContext was prevented from starting automatically. It must be created or resumed after a user gesture on the page. wickengine.js:44700:18 Wick Engine version "2021.1.22.14.13.2" is available. wickengine.js:45742:9 Layout was forced before the page was fully loaded. If stylesheets are not yet loaded this may cause a flash of unstyled content. wickengine.js:29612:50784 window.controllers/Controllers is deprecated. Do not use it for UA detection. index.js:1446 Project Mounted Editor.jsx:266:12 TypeError: clip is undefined index.js:37 Error Details: Object { error: "TypeError: clip is undefined", url: "https://www.wickeditor.com/editor/corelibs/wick-engine/wickengine.js", line: 56683 } index.js:37

And the following error in Chrome 112.0.5615.138 : wickengine.js:14526 Canvas2D: Multiple readback operations using getImageData are faster with the willReadFrequently attribute set to true. See: https://html.spec.whatwg.org/multipage/canvas.html#concept-canvas-will-read-frequently wickengine.js:45742 Wick Engine version "2021.1.22.14.13.2" is available. Editor.jsx:266 Project Mounted index.js:37 Uncaught TypeError: Cannot read properties of undefined (reading 'parent') index.js:37 Error Details: Object error : "Uncaught TypeError: Cannot read properties of undefined (reading 'parent')" line : 56683 url : "https://www.wickeditor.com/editor/corelibs/wick-engine/wickengine.js" [[Prototype]] : Object

Screenshots image

Desktop :