Merge pull request #5863 from MarianoGnu/master

Fix pick color from screen. Closes #5853
This commit is contained in:
Mariano Javier Suligoy 2016-07-22 20:39:19 -03:00 committed by GitHub
commit 71c12b5801
1 changed files with 2 additions and 1 deletions

View File

@ -415,11 +415,12 @@ void ColorPicker::_screen_pick_pressed()
if (!screen) {
screen=memnew( Control );
r->add_child(screen);
screen->set_as_toplevel(true);
screen->set_area_as_parent_rect();
screen->connect("input_event",this,"_screen_input");
}
screen->raise();
screen->show();
screen->show_modal();
r->queue_screen_capture();
}