mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 00:21:24 +00:00
Make keys deselected when keying property for animation to avoid crash
This commit is contained in:
parent
aa8a899f52
commit
aa133b60a1
2 changed files with 6 additions and 3 deletions
|
|
@ -153,9 +153,10 @@ void BoneTransformEditor::set_target(const String &p_prop) {
|
|||
|
||||
void BoneTransformEditor::_property_keyed(const String &p_path, bool p_advance) {
|
||||
AnimationTrackEditor *te = AnimationPlayerEditor::get_singleton()->get_track_editor();
|
||||
if (!te->has_keying()) {
|
||||
if (!te || !te->has_keying()) {
|
||||
return;
|
||||
}
|
||||
te->_clear_selection();
|
||||
PackedStringArray split = p_path.split("/");
|
||||
if (split.size() == 3 && split[0] == "bones") {
|
||||
int bone_idx = split[1].to_int();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue