You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Double-click item for reparent and choose a node in NodePath dialog
This commit is contained in:
@@ -928,7 +928,7 @@ void SceneTreeDialog::_cancel() {
|
||||
void SceneTreeDialog::_select() {
|
||||
|
||||
if (tree->get_selected()) {
|
||||
emit_signal("selected",tree->get_selected()->get_path());
|
||||
emit_signal("selected",tree->get_selected()->get_path());
|
||||
hide();
|
||||
}
|
||||
}
|
||||
@@ -939,7 +939,6 @@ void SceneTreeDialog::_bind_methods() {
|
||||
ObjectTypeDB::bind_method("_cancel",&SceneTreeDialog::_cancel);
|
||||
ADD_SIGNAL( MethodInfo("selected",PropertyInfo(Variant::NODE_PATH,"path")));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -951,7 +950,7 @@ SceneTreeDialog::SceneTreeDialog() {
|
||||
add_child(tree);
|
||||
set_child_rect(tree);
|
||||
|
||||
|
||||
tree->get_scene_tree()->connect("item_activated",this,"_select");
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user