+void XYWnd::SetCustomPivotOrigin( int pointx, int pointy ){
+ Vector3 point;
+ XY_ToPoint( pointx, pointy, point );
+ VIEWTYPE viewtype = static_cast<VIEWTYPE>( GetViewType() );
+ const int nDim = ( viewtype == YZ ) ? 0 : ( ( viewtype == XZ ) ? 1 : 2 );
+ //vector3_snap( point, GetSnapGridSize() );
+ point[nDim] = 999999;
+
+ GlobalSelectionSystem().setCustomPivotOrigin( point );
+ SceneChangeNotify();
+}
+