1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Remove rect_ prefix from control properties when keyframing

This commit is contained in:
Hakim
2022-08-05 15:30:17 +02:00
parent f5a89bf460
commit 60677c4e95
3 changed files with 5 additions and 5 deletions

View File

@@ -4237,13 +4237,13 @@ void CanvasItemEditor::_insert_animation_keys(bool p_location, bool p_rotation,
Control *ctrl = Object::cast_to<Control>(canvas_item);
if (key_pos) {
te->insert_node_value_key(ctrl, "rect_position", ctrl->get_position(), p_on_existing);
te->insert_node_value_key(ctrl, "position", ctrl->get_position(), p_on_existing);
}
if (key_rot) {
te->insert_node_value_key(ctrl, "rect_rotation", ctrl->get_rotation(), p_on_existing);
te->insert_node_value_key(ctrl, "rotation", ctrl->get_rotation(), p_on_existing);
}
if (key_scale) {
te->insert_node_value_key(ctrl, "rect_size", ctrl->get_size(), p_on_existing);
te->insert_node_value_key(ctrl, "size", ctrl->get_size(), p_on_existing);
}
}
}