You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
@@ -128,7 +128,7 @@ void EditorPropertyRootMotion::_node_assign() {
|
||||
|
||||
String concat = path.get_concatenated_subnames();
|
||||
|
||||
Skeleton *skeleton = Object::cast_to<Skeleton>(node);
|
||||
Skeleton3D *skeleton = Object::cast_to<Skeleton3D>(node);
|
||||
if (skeleton && skeleton->find_bone(concat) != -1) {
|
||||
//path in skeleton
|
||||
const String &bone = concat;
|
||||
@@ -152,7 +152,7 @@ void EditorPropertyRootMotion::_node_assign() {
|
||||
ti->set_text(0, F->get());
|
||||
ti->set_selectable(0, true);
|
||||
ti->set_editable(0, false);
|
||||
ti->set_icon(0, get_theme_icon("BoneAttachment", "EditorIcons"));
|
||||
ti->set_icon(0, get_theme_icon("BoneAttachment3D", "EditorIcons"));
|
||||
ti->set_metadata(0, accum);
|
||||
} else {
|
||||
ti = parenthood[accum];
|
||||
@@ -161,7 +161,7 @@ void EditorPropertyRootMotion::_node_assign() {
|
||||
|
||||
ti->set_selectable(0, true);
|
||||
ti->set_text(0, concat);
|
||||
ti->set_icon(0, get_theme_icon("BoneAttachment", "EditorIcons"));
|
||||
ti->set_icon(0, get_theme_icon("BoneAttachment3D", "EditorIcons"));
|
||||
ti->set_metadata(0, path);
|
||||
if (path == current) {
|
||||
ti->select(0);
|
||||
|
||||
Reference in New Issue
Block a user