-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed AnimationTrackEditor's TransformTrack can't edit #48515
Fixed AnimationTrackEditor's TransformTrack can't edit #48515
Conversation
Your fix basically changes the argument from Maybe the problem is in |
@akien-mga Variant.cpp Variant::Variant(const StringName &p_string) {
type = STRING;
memnew_placement(_data._mem, String(p_string.operator String()));
} Variant::operator StringName() const {
if (type == NODE_PATH) {
return reinterpret_cast<const NodePath *>(_data._mem)->get_sname();
}
return StringName(operator String());
} 4.0 Variant::Variant(const StringName &p_string) {
type = STRING_NAME;
memnew_placement(_data._mem, StringName(p_string));
} Variant::operator StringName() const {
if (type == STRING_NAME) {
return *reinterpret_cast<const StringName *>(_data._mem);
} else if (type == STRING) {
return *reinterpret_cast<const String *>(_data._mem);
}
return StringName();
} |
Close this and move to #48523 |
cef34be
to
00ac6ff
Compare
Fixed by #50057. |
2021-05-07.5.13.14-1.mov
AnimationTrackEditor's TransformTrack was failing to get/set value because the type of key when getting dictionary's value was wrong in 4.0. This PR fixed it.
However, TransformTrack is working correctly in 3.2, so it is possible that there is a fundamental casting problem going on somewhere in 4.0.