-some cleanups

-added tesselation function to curve and curve2d
This commit is contained in:
Juan Linietsky 2015-04-30 10:06:18 -03:00
parent 7773d70f44
commit 21939ce08b
4 changed files with 14 additions and 4 deletions

View file

@ -216,6 +216,7 @@ void Camera2D::_notification(int p_what) {
} break;
case NOTIFICATION_ENTER_TREE: {
viewport = NULL;
Node *n=this;
while(n){
@ -526,6 +527,7 @@ Camera2D::Camera2D() {
drag_margin[MARGIN_RIGHT]=0.2;
drag_margin[MARGIN_BOTTOM]=0.2;
camera_pos=Vector2();
first=true;
smoothing=0.0;
zoom = Vector2(1, 1);