Merge pull request #3078 from TheHX/pr-project-manager

Avoid project manager from processing gamepad input
This commit is contained in:
Rémi Verschelde 2015-12-14 23:13:23 +01:00
commit 79ad04d6af
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();