GDevelop icon indicating copy to clipboard operation
GDevelop copied to clipboard

Weird behavior and potential project corruption if you copy a scene with sliders

Open TheRealSoloLeo opened this issue 5 months ago • 3 comments

Is there an existing issue for this?

Describe the bug

Copying a scene with a slider in it and pasting it in a different project can corrupt the project.

Steps to reproduce

  1. Create a new project
  2. Click on "Add a new object"
  3. Select "slider"
  4. This happened with "Square White Slider", I haven't tested if it works with the other ones
  5. Copy the scene
  6. Create a new project and paste the scene with the slider in it
  7. The slider is now a corrupted object
  8. If you don't delete the object before closing the project GDevelop will refuse to open it and say it's corrupted

GDevelop platform

Desktop, Web, Mobile

GDevelop version

5.4.209

Platform info

Windows

Windows 11

Additional context

I also put an instance of the object in the scene before copying it, I don't know if this is necessary to reproduce the bug.

The only way to recover the project is by manually deleting the slider in the json.

TheRealSoloLeo avatar Aug 28 '24 18:08 TheRealSoloLeo