Avoid project manager from processing gamepad input

This commit is contained in:
Franklin Sobrinho 2015-12-14 16:31:37 -03:00
parent 9e9e4f96a2
commit fd59d17b22
2 changed files with 8 additions and 0 deletions

View file

@ -348,6 +348,13 @@ struct ProjectItem {
_FORCE_INLINE_ bool operator ==(const ProjectItem& l) const { return project==l.project; }
};
void ProjectManager::_notification(int p_what) {
if (p_what==NOTIFICATION_ENTER_TREE) {
get_tree()->set_editor_hint(true);
}
}
void ProjectManager::_panel_draw(Node *p_hb) {

View file

@ -85,6 +85,7 @@ class ProjectManager : public Control {
protected:
void _notification(int p_what);
static void _bind_methods();
public:
ProjectManager();