summaryrefslogtreecommitdiff
path: root/editor/plugins/root_motion_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <juan@godotengine.org>2018-06-27 16:30:48 -0300
committerJuan Linietsky <juan@godotengine.org>2018-06-27 16:30:48 -0300
commit9bab5134cfd4f0095545ae58fcf6a10dc07dc7d1 (patch)
tree1d5d15103cde49a22592b90c93b3cb80f53db7dd /editor/plugins/root_motion_editor_plugin.cpp
parent68f7cf13c7326c077cc6ff8a6a267ae2610c4519 (diff)
The way multiple quaternions being slerped was not good, changed approach to one that seems to work better.
Diffstat (limited to 'editor/plugins/root_motion_editor_plugin.cpp')
-rw-r--r--editor/plugins/root_motion_editor_plugin.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/editor/plugins/root_motion_editor_plugin.cpp b/editor/plugins/root_motion_editor_plugin.cpp
index e316116b43..89c1b3a978 100644
--- a/editor/plugins/root_motion_editor_plugin.cpp
+++ b/editor/plugins/root_motion_editor_plugin.cpp
@@ -124,9 +124,10 @@ void EditorPropertyRootMotion::_node_assign() {
ti = filters->create_item(ti);
parenthood[accum] = ti;
ti->set_text(0, F->get());
- ti->set_selectable(0, false);
+ ti->set_selectable(0, true);
ti->set_editable(0, false);
ti->set_icon(0, get_icon("BoneAttachment", "EditorIcons"));
+ ti->set_metadata(0, accum);
} else {
ti = parenthood[accum];
}