You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
ObjectID converted to a structure, fixes many bugs where used incorrectly as 32 bits.
This commit is contained in:
@@ -59,7 +59,7 @@ void AnimationTreeEditor::edit(AnimationTree *p_tree) {
|
||||
path = tree->get_meta("_tree_edit_path");
|
||||
edit_path(path);
|
||||
} else {
|
||||
current_root = 0;
|
||||
current_root = ObjectID();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -128,7 +128,7 @@ void AnimationTreeEditor::edit_path(const Vector<String> &p_path) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
current_root = 0;
|
||||
current_root = ObjectID();
|
||||
edited_path = button_path;
|
||||
}
|
||||
|
||||
@@ -151,7 +151,7 @@ void AnimationTreeEditor::_about_to_show_root() {
|
||||
|
||||
void AnimationTreeEditor::_notification(int p_what) {
|
||||
if (p_what == NOTIFICATION_PROCESS) {
|
||||
ObjectID root = 0;
|
||||
ObjectID root;
|
||||
if (tree && tree->get_tree_root().is_valid()) {
|
||||
root = tree->get_tree_root()->get_instance_id();
|
||||
}
|
||||
@@ -242,7 +242,6 @@ AnimationTreeEditor::AnimationTreeEditor() {
|
||||
|
||||
add_child(memnew(HSeparator));
|
||||
|
||||
current_root = 0;
|
||||
singleton = this;
|
||||
editor_base = memnew(PanelContainer);
|
||||
editor_base->set_v_size_flags(SIZE_EXPAND_FILL);
|
||||
|
||||
Reference in New Issue
Block a user