godot
godot copied to clipboard
Fix crash when there is no bones to rename when retargeting an imported skeleton
Fixes https://github.com/godotengine/godot/issues/88086
Wonder if #87905 would also fix this.
@tdaven Tested it and it does fix the issue.
Does the other pr supersede this one?
I think so since this only works when the map is empty where the other PR prevents bad lookups on a const HashMap with '[]' which purposely crashes but I was going to leave that decision up to a reviewer.
https://github.com/godotengine/godot/pull/87905 supersedes this according to tdaven. Will archive this pull request this in a bit unless there's other opinions.
Sounds good to me. Anything as long as retargeting is working.
Crash fixed with the merging of https://github.com/godotengine/godot/pull/81746