mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
[Editor] Move some animation specific keying logic out of inspector.
Most of the custom logic to handle special keying cases is now inside the AnimationPlayerEditorPlugin. The EditorInspector now emits a signal when inspecting a new object.
This commit is contained in:
parent
8b8e858778
commit
7e14548fc6
11 changed files with 49 additions and 46 deletions
|
|
@ -149,6 +149,9 @@ 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()) {
|
||||
return;
|
||||
}
|
||||
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