Author Topic: winnerCamera -> WinnerCamera, winnerTarget -> WinnerTarget  (Read 492 times)

i'm naming a brick "winnerCamera" but it instead becomes "WinnerCamera"

and i'm trying to name a brick "winnerTarget" but it instead becomes "WinnerTarget"



it's easy to work around, but why does this happen?

Once the name has ever been WinnerCamera, or if WinnerCamera has ever been used as a string without "s, you'll never be able to use any other casing for it.
To see this:
echo(ForcedCase);
Output: ForcedCase

echo(forcedCase);
Output: ForcedCase

$test = new ScriptObject();
$test.setName("forcedcase");
echo($test.getName());
Output: ForcedCase

echo("UnforcedCase");
$test.setName("unforcedcase");
echo($test.getName());
Output: unforcedcase


So your only option would be to set the name to something completely irrelevant, save, restart BL, load, then set the name to winnerCamera. Assuming something else isn't causing it.