mirror of
https://github.com/leozide/leocad.git
synced 2026-09-12 09:35:24 +00:00
Removed old object class names.
This commit is contained in:
+6
-6
@@ -33,28 +33,28 @@ View::~View()
|
||||
delete mCamera;
|
||||
}
|
||||
|
||||
void View::SetCamera(Camera* camera, bool ForceCopy)
|
||||
void View::SetCamera(lcCamera* Camera, bool ForceCopy)
|
||||
{
|
||||
if (camera->IsSimple() || ForceCopy)
|
||||
if (Camera->IsSimple() || ForceCopy)
|
||||
{
|
||||
if (!mCamera || !mCamera->IsSimple())
|
||||
mCamera = new Camera(true);
|
||||
mCamera = new lcCamera(true);
|
||||
|
||||
mCamera->CopyPosition(camera);
|
||||
mCamera->CopyPosition(Camera);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (mCamera && mCamera->IsSimple())
|
||||
delete mCamera;
|
||||
|
||||
mCamera = camera;
|
||||
mCamera = Camera;
|
||||
}
|
||||
}
|
||||
|
||||
void View::SetDefaultCamera()
|
||||
{
|
||||
if (!mCamera || !mCamera->IsSimple())
|
||||
mCamera = new Camera(true);
|
||||
mCamera = new lcCamera(true);
|
||||
|
||||
mCamera->SetViewpoint(LC_VIEWPOINT_HOME, 1, false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user