Fix pick color from screen. Closes #5853
This commit is contained in:
parent
5182fe2ef9
commit
f00e0b589f
|
@ -415,11 +415,12 @@ void ColorPicker::_screen_pick_pressed()
|
||||||
if (!screen) {
|
if (!screen) {
|
||||||
screen=memnew( Control );
|
screen=memnew( Control );
|
||||||
r->add_child(screen);
|
r->add_child(screen);
|
||||||
|
screen->set_as_toplevel(true);
|
||||||
screen->set_area_as_parent_rect();
|
screen->set_area_as_parent_rect();
|
||||||
screen->connect("input_event",this,"_screen_input");
|
screen->connect("input_event",this,"_screen_input");
|
||||||
}
|
}
|
||||||
screen->raise();
|
screen->raise();
|
||||||
screen->show();
|
screen->show_modal();
|
||||||
r->queue_screen_capture();
|
r->queue_screen_capture();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue