aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/reparent_dialog.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2016-03-09 00:14:08 +0100
committerRémi Verschelde2016-03-09 00:14:08 +0100
commite46e43d2aaa6339a1675eb989f41885e745bf5c3 (patch)
treecf91f2869ff8f058c6682569fb31e22e5ee736ad /tools/editor/reparent_dialog.cpp
parent1dad6eca812e5c2e313b54265114de8a1d73d999 (diff)
parent4a4f2479146aa33e235ed57cde311efda68d3c8f (diff)
downloadgodot-e46e43d2aaa6339a1675eb989f41885e745bf5c3.tar.gz
godot-e46e43d2aaa6339a1675eb989f41885e745bf5c3.tar.zst
godot-e46e43d2aaa6339a1675eb989f41885e745bf5c3.zip
Merge pull request #3928 from Marqin/whitespace
remove trailing whitespace - sorry for the broken PRs, please rebase :)
Diffstat (limited to '')
-rw-r--r--tools/editor/reparent_dialog.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/editor/reparent_dialog.cpp b/tools/editor/reparent_dialog.cpp
index 97b27603b..2a886b85f 100644
--- a/tools/editor/reparent_dialog.cpp
+++ b/tools/editor/reparent_dialog.cpp
@@ -47,19 +47,19 @@ void ReparentDialog::_notification(int p_what) {
}
if (p_what==NOTIFICATION_DRAW) {
-
+
//RID ci = get_canvas_item();
//get_stylebox("panel","PopupMenu")->draw(ci,Rect2(Point2(),get_size()));
- }
+ }
}
void ReparentDialog::_cancel() {
-
+
hide();
-
+
}
void ReparentDialog::_reparent() {
-
+
if (tree->get_selected()) {
emit_signal("reparent",tree->get_selected()->get_path(),keep_transform->is_pressed());
@@ -68,14 +68,14 @@ void ReparentDialog::_reparent() {
}
void ReparentDialog::set_current(const Set<Node*>& p_selection) {
-
+
tree->set_marked(p_selection,false,false);
//tree->set_selected(p_node->get_parent());
}
void ReparentDialog::_bind_methods() {
-
- ObjectTypeDB::bind_method("_reparent",&ReparentDialog::_reparent);
+
+ ObjectTypeDB::bind_method("_reparent",&ReparentDialog::_reparent);
ObjectTypeDB::bind_method("_cancel",&ReparentDialog::_cancel);
ADD_SIGNAL( MethodInfo("reparent",PropertyInfo(Variant::NODE_PATH,"path"),PropertyInfo(Variant::BOOL,"keep_global_xform")));