1 sentence description of the problem:
T shape is named T 2 if another object with a name starting with T is put in first
Steps to reproduce the problem every time:
(Start in a blank draft if possible)
- Put in any shape that starts with T (other than the T shape) ex. Text or Triangle
- Put in T shape. Its name becomes T 2
⠀1. Put in any object.
⠀2. Rename it to something starting with T.(or Z or X or L if you are doing it with those.)
⠀3. Put in a T.
I expected this to happen:
Its name to be T
But instead this happened:
Its name was T 2
(Include project link if relevant)
Device type, iOS version:
Hopscotch version & player version:
(you can go to > “About”, and take a screenshot)
Also: I would assume this would happen with Z, X, or L if there are other shapes/characters that start with one of those letters.
Is there a character that starts with z x or l…?
i couldnt find one
not z, but X does in fact exist
But what shape starts with X other than X itself?
you just rename an object to a word starting with x-
Oh thats another way to make the bug hmm… should i add that to the original post?
Also there are Z and L blocks if thats what you are saying
It seems to be checking if the shape contains the letter of the new shape rather than seeing if it is exactly the same (“Text” contains “T”, when it should be “Text” == “T”) before deciding to add a number to prevent a duplicate name.
Speaking of, there’s another bug regarding duplicating an object named with a number at the end without a space in between (“Text1”)… (it names the duplicated one “Text1” instead of “Text1 2”)
Oh i just tried it thats weird so you break the rules and have two objects with the same name
Yep. I just reported it so it’s easier to track.