System Reset persisted objects action is duplicating persisted objects, recreating persist objects that should be destroyed after second or more restart of layout.
Attach a Capx
Description of Capx
Contains an object "PersistObject" with Persist behavior, Textbuttons to Reset persisted objects and to Restart layout, Text with description of other bugs in Reset persisted objects action on the margins, Double click somewhere in the project to create PersistObject, objects can be dragged with mouse, Text to show dragged items UID & IID.
Steps to Reproduce Bug
- Open project and preview it with debugger
- Look how much instances of "PersistObject" you have, should be 1 - #0
- Click Reset persisted objects, then Restart layout, then click Restart layout again
Look at the debugger, now we have 2 instances #0 and #1, if you move the object in preview before the restart, the object will go back to it's initial place after restart, but after second restart, another object appears on the place where the initial object was before first restart.
The #0 and #1 have identical UID.
After restarts, the objects staying at their initial state, the initially non existed objects still not exist, persisted objects are on their initial places and nothing is duplicated.
- Chrome: (YES)
- FireFox: (YES/NO)
- Internet Explorer: (YES/NO)
Operating System and Service Pack
Windows 7 64bit with latest updates and latest drivers.
Construct 2 Version ID