(R60) Deleting Objects Bug

Bugs will be moved here once resolved.

Post » Thu Oct 06, 2011 12:58 pm

I noticed if you press the Delete key on a object it will delete it and remove it from the objects list however it remains in the Object types folder in the Projects dialog.

After objects have been deleted it can also create a crash on exiting the program that says "Object has no animations" which i guess is happening after deleting a sprite object that it can no longer find.
B
9
S
3
G
4
Posts: 55
Reputation: 2,607

Post » Fri Oct 07, 2011 3:31 pm

A similar thing happens to me, but the opposite; upon deleting an object, it's removed from the Projects dialog but remains in the object list when making expressions/conditions.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Fri Oct 07, 2011 6:37 pm

Deleting the last visible instance of an object in a layout leave the object type in the project tabs.
This is intended. Nevertheless, the "Object has no animations" bug is a nice catch if it is indeed linked.

I'll link this thread in the already reported bug topic so that Ashley can adress it when he's back.

@SullyTheStrange : This, on the other hand doesn't sound intended. Same, Ash will probably take a look into it when he's back.
If you could post a capx with any information you feel relevant that would be a great help.Kyatric2011-10-08 01:01:42
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Fri Oct 07, 2011 8:54 pm

It seems rather than a bug it's some sort of object history thing then but does the object history get stored with the project? If yes it would be nice to have a clear history button or a way to disable the feature as i doubt i would use it much.

Also i noticed if you delete with right click from the folder listings there is a confirm dialog, so there would be a additional bug in that the delete key shortcut does not also trigger a dialog.
B
9
S
3
G
4
Posts: 55
Reputation: 2,607

Post » Fri Oct 07, 2011 10:40 pm

I replicated the problem with a new project, with the simplest instructions ever. I added a sprite, then deleted it -- in the Objects tab on the side, it's gone, but if you go to the event sheet and start adding an event, you can see that there's three previously deleted sprites in the "Add event" box.

http://db.tt/PjH7X90P

Of course, this seems to be a little... too simple. If no one else noticed this it might just be a problem with my computer.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 08, 2011 1:00 am

It's gone from the objects tab indeed, but it is still present in the project tab under the folder "Object Types".

The object tab shows the instance present in the active layout.
So of course, as soon as you delete the first and only instance of sprite, it is gone from the objects tab.

I edited my previous message as I was stated the object should still appear in the objects tab once the last instance is deleted which is obviously wrong.Kyatric2011-10-08 01:03:37
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 7,000
Reputation: 57,795

Post » Sat Oct 08, 2011 1:53 am

... Ohhhhhh, I understand it now. Okay okay, sorry about all that.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sat Oct 08, 2011 10:53 pm

Due to the fact it works correctly with a right click delete on the Object types folder but leaves the objects if you press the delete key just makes it seem like a bug.

I also don't see why you would want objects to remain still if you press the delete key shortcut on them and it's the last instance. It's sort of making using the program annoying for me because i am so used to using keyboard shortcuts and if i delete something i don't really want to do it multiple times.

The fact it triggers a crash when the last instance of a sprite is deleted suggests there is history stored also or it doesn't correctly delete for the project. So to me it seems like a bug but if it's intended i don't really see the reason why to be honest.FireLight2011-10-08 22:56:30
B
9
S
3
G
4
Posts: 55
Reputation: 2,607

Post » Sun Oct 09, 2011 8:19 pm

Thanks for the report - the "object has no animations" bug has been fixed for the next build.

The fact deleting the last instance of an object in the layout does not delete the object type is by design. You are allowed to have a sprite object with no instances in any layout, for example. To properly delete an entire object type, you must do so via the object bar or project bar.

The issue with the delete key in the object bar was a window focus issue. IIRC, I did it because it was convenient in some cases... but I've put it back for the next build so the delete key prompts like the project bar does.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,610

Post » Sun Oct 09, 2011 10:07 pm

Thanks Ashley, i think with the bug fixed, window focus and the prompt this will be a lot nicer now. :)
B
9
S
3
G
4
Posts: 55
Reputation: 2,607

Next

Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 3 guests