         HideGizmo();
         return;
     }
-    
+
     Vector3 center(0, 0, 0);
-    
+
     for (uint i = 0; i < editNodes.length; ++i)
         center += editNodes[i].worldPosition;
 

        case EDIT_MOVE:
            gizmo.model = cache.GetResource("Model", "Models/Axes.mdl");
            break;
        
        case EDIT_ROTATE:
            gizmo.model = cache.GetResource("Model", "Models/RotateAxes.mdl");
            break;
            
        case EDIT_SCALE:
            gizmo.model = cache.GetResource("Model", "Models/ScaleAxes.mdl");
            break;
        }
          
        lastGizmoMode = editMode;
    }
    
    gizmo.visible = true;
}



void UpdateGizmo()
{
    UseGizmo();
    PositionGizmo();
    ResizeGizmo();
}

void PositionGizmo()
