Fix "selection_changed" called twice

This commit is contained in:
volzhs 2017-12-18 22:12:57 +09:00
parent e96c40f94a
commit 59564f267c
2 changed files with 13 additions and 1 deletions

View file

@ -209,9 +209,10 @@ class EditorSelection : public Object {
GDCLASS(EditorSelection, Object);
public:
private:
Map<Node *, Object *> selection;
bool emitted;
bool changed;
bool nl_changed;
@ -223,6 +224,7 @@ public:
void _update_nl();
Array _get_selected_nodes();
Array _get_transformable_selected_nodes();
void _emit_change();
protected:
static void _bind_methods();