Hi all,
i recognized some changes in the camera setViewport-behavior.
The setter for the viewPortLeft e.t.c are calling onViewportChanged method, which calculates some values for the viewport.
If the setter:
[java]
public void setViewPort(float left, float right, float bottom, float top) {
setViewPortLeft(left);
setViewPortRight(right);
setViewPortBottom(bottom);
setViewPortTop(top);
}
[/java]
is called, the onChanged-method is called through the first line “setViewPortLeft”, which leads to calculations for the gui-bounding on incorrect set properties.
To get my code running i had to change the method to:
[java]public void setViewPort(float left, float right, float bottom, float top) {
this.viewPortLeft = left;
this.viewPortRight = right;
this.viewPortBottom = bottom;
this.viewPortTop = top;
onViewPortChange();
}
[/java]
I think this is a bug in the core, if not please ignore this or feel free to tell me, what my problem is.
Kind regards, Henning.
1 Like
Mhh you’re right. I’m gonna change this.