remove unnecesary warning, closes #5169
This commit is contained in:
parent
22d5227663
commit
e5fc62cc4b
1 changed files with 4 additions and 4 deletions
|
@ -1331,11 +1331,11 @@ Matrix32 Viewport::_get_input_pre_xform() const {
|
|||
Matrix32 pre_xf;
|
||||
if (render_target) {
|
||||
|
||||
ERR_FAIL_COND_V(to_screen_rect.size.x==0,pre_xf);
|
||||
ERR_FAIL_COND_V(to_screen_rect.size.y==0,pre_xf);
|
||||
if (to_screen_rect!=Rect2()) {
|
||||
|
||||
pre_xf.elements[2]=-to_screen_rect.pos;
|
||||
pre_xf.scale(rect.size/to_screen_rect.size);
|
||||
}
|
||||
} else {
|
||||
|
||||
pre_xf.elements[2]=-rect.pos;
|
||||
|
|
Loading…
Reference in a new issue