You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-06 17:25:19 +00:00
Fix read-only state for Skeleton and Inspector
This commit is contained in:
@@ -435,6 +435,12 @@ void Skeleton3DEditor::reset_pose(const bool p_all_bones) {
|
||||
}
|
||||
|
||||
void Skeleton3DEditor::insert_keys(const bool p_all_bones) {
|
||||
AnimationTrackEditor *te = AnimationPlayerEditor::get_singleton()->get_track_editor();
|
||||
bool is_read_only = te->is_read_only();
|
||||
if (is_read_only) {
|
||||
te->popup_read_only_dialog();
|
||||
return;
|
||||
}
|
||||
if (!skeleton) {
|
||||
return;
|
||||
}
|
||||
@@ -447,7 +453,6 @@ void Skeleton3DEditor::insert_keys(const bool p_all_bones) {
|
||||
Node *root = EditorNode::get_singleton()->get_tree()->get_root();
|
||||
String path = String(root->get_path_to(skeleton));
|
||||
|
||||
AnimationTrackEditor *te = AnimationPlayerEditor::get_singleton()->get_track_editor();
|
||||
te->make_insert_queue();
|
||||
for (int i = 0; i < bone_len; i++) {
|
||||
const String name = skeleton->get_bone_name(i);
|
||||
|
||||
Reference in New Issue
Block a user