Merge pull request #3078 from TheHX/pr-project-manager
Avoid project manager from processing gamepad input
This commit is contained in:
commit
79ad04d6af
2 changed files with 8 additions and 0 deletions
|
@ -348,6 +348,13 @@ struct ProjectItem {
|
||||||
_FORCE_INLINE_ bool operator ==(const ProjectItem& l) const { return project==l.project; }
|
_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) {
|
void ProjectManager::_panel_draw(Node *p_hb) {
|
||||||
|
|
||||||
|
|
|
@ -85,6 +85,7 @@ class ProjectManager : public Control {
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
||||||
|
void _notification(int p_what);
|
||||||
static void _bind_methods();
|
static void _bind_methods();
|
||||||
public:
|
public:
|
||||||
ProjectManager();
|
ProjectManager();
|
||||||
|
|
Loading…
Reference in a new issue