Changeset 646
- Timestamp:
- 11/17/06 14:48:40 (2 years ago)
- Location:
- trunk
- Files:
-
- 12 modified
-
common/keyboard.cpp (modified) (2 diffs)
-
common/lc_model.cpp (modified) (4 diffs)
-
common/lc_model.h (modified) (3 diffs)
-
common/project.cpp (modified) (80 diffs)
-
common/project.h (modified) (3 diffs)
-
common/system.h (modified) (3 diffs)
-
common/typedefs.h (modified) (2 diffs)
-
win/Cadview.cpp (modified) (2 diffs)
-
win/LeoCAD.rc (modified) (4 diffs)
-
win/Mainfrm.cpp (modified) (5 diffs)
-
win/System.cpp (modified) (1 diff)
-
win/resource.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/common/keyboard.cpp
r640 r646 24 24 { LC_FILE_POVRAY, "Export POV-Ray", 0, 0, 0 }, 25 25 { LC_FILE_WAVEFRONT, "Export Wavefront", 0, 0, 0 }, 26 { LC_FILE_PROPERTIES, "Project Properties", 0, 0, 0 },27 26 // { LC_FILE_TERRAIN, "Terrain Editor", 0, 0, 0 }, 28 27 { LC_FILE_LIBRARY, "Piece Library Manager", 0, 0, 0 }, … … 53 52 { LC_PIECE_NEXT, "Piece Next Step", 0, 0, 0 }, 54 53 { LC_VIEW_PREFERENCES, "Preferences", 0, 0, 0 }, 54 { LC_MODEL_NEW, "New Model", 0, 0, 0 }, 55 { LC_MODEL_DELETE, "Delete Properties", 0, 0, 0 }, 56 { LC_MODEL_PROPERTIES, "Model Properties", 0, 0, 0 }, 55 57 // { LC_VIEW_ZOOM, "", 0, 0, 0 }, 56 58 { LC_VIEW_ZOOMIN, "Zoom In", 0, 0, 0 }, -
trunk/common/lc_model.cpp
r644 r646 7 7 m_Pieces = NULL; 8 8 m_Name = Name; 9 m_CurTime = 1; 9 m_CurFrame = 1; 10 m_TotalFrames = 1; 10 11 } 11 12 … … 67 68 { 68 69 for (Piece* piece = m_Pieces; piece; piece = (Piece*)piece->m_Next) 69 if ((piece->IsVisible(m_Cur Time)) && piece->IsSelected())70 if ((piece->IsVisible(m_CurFrame)) && piece->IsSelected()) 70 71 return true; 71 72 … … 78 79 79 80 for (Piece* piece = m_Pieces; piece; piece = (Piece*)piece->m_Next) 80 if (piece->IsVisible(m_Cur Time))81 if (piece->IsVisible(m_CurFrame)) 81 82 piece->Select(Select, FocusOnly); 82 83 } … … 86 87 for (Piece* piece = m_Pieces; piece; piece = (Piece*)piece->m_Next) 87 88 { 88 if (piece->IsVisible(m_Cur Time))89 if (piece->IsVisible(m_CurFrame)) 89 90 { 90 91 if (piece->IsSelected()) -
trunk/common/lc_model.h
r644 r646 3 3 4 4 #include "str.h" 5 #include "config.h" 5 6 6 7 class Piece; … … 13 14 14 15 public: 16 // Returns the model's name. 17 const String& GetName() const 18 { return m_Name; } 19 15 20 // Adds a piece to this model. 16 21 void AddPiece(Piece* NewPiece); … … 43 48 // Making these public for now. 44 49 Piece* m_Pieces; 45 int m_CurTime; 50 51 u32 m_CurFrame; 52 u32 m_TotalFrames; 46 53 47 54 protected: -
trunk/common/project.cpp
r644 r646 141 141 SystemUpdateCurrentCamera(NULL, m_ActiveView->GetCamera(), m_pCameras); 142 142 UpdateSelection(); 143 SystemUpdateTime(false, m_ActiveModel->m_Cur Time, 255);143 SystemUpdateTime(false, m_ActiveModel->m_CurFrame, 255); 144 144 145 145 for (int i = 0; i < m_ViewList.GetSize(); i++) … … 312 312 m_fGradient2[2] = (float)((unsigned char) ((rgb) >> 16))/255; 313 313 m_nFPS = Sys_ProfileLoadInt ("Default", "FPS", 24); 314 m_nTotalFrames = 100;315 314 SystemUpdateTime(false, 1, 255); 316 315 m_nScene = Sys_ProfileLoadInt ("Default", "Scene", 0); … … 749 748 file->ReadByte (&m_nFPS, 1); 750 749 file->ReadLong (&i, 1); //m_nCurFrame = i; 751 file->ReadShort (& m_nTotalFrames, 1);750 file->ReadShort (&sh, 1); // m_nTotalFrames 752 751 file->ReadLong (&i, 1); //m_nGridSize = i; 753 752 file->ReadLong (&i, 1); //m_nMoveSnap = i; … … 760 759 file->ReadByte (&m_nFPS, 1); 761 760 file->ReadShort (&sh, 1); // m_nCurFrame 762 file->ReadShort (& m_nTotalFrames, 1);761 file->ReadShort (&sh, 1); // m_nTotalFrames 763 762 file->ReadShort (&sh, 1); // m_nGridSize 764 763 file->ReadShort (&sh, 1); … … 809 808 SystemUpdateCurrentCamera(NULL, m_ActiveView->GetCamera(), m_pCameras); 810 809 UpdateSelection(); 811 SystemUpdateTime(false, m_ActiveModel->m_Cur Time, 255);810 SystemUpdateTime(false, m_ActiveModel->m_CurFrame, 255); 812 811 UpdateAllViews (); 813 812 … … 838 837 i = m_nCurColor; file->WriteLong (&i, 1); 839 838 i = m_nCurAction; file->WriteLong (&i, 1); 840 i = m_ActiveModel->m_Cur Time; file->WriteLong (&i, 1);839 i = m_ActiveModel->m_CurFrame; file->WriteLong (&i, 1); 841 840 file->WriteLong (&m_nScene, 1); 842 841 … … 902 901 file->WriteByte (&m_nFPS, 1); 903 902 sh = 1; file->WriteShort (&sh, 1); // m_nCurFrame 904 file->WriteShort (&m_nTotalFrames, 1);903 sh = 1; file->WriteShort (&sh, 1); // m_nTotalFrames 905 904 sh = 10; file->WriteShort (&sh, 1); // m_nGridSize 906 905 file->WriteShort (&m_nMoveSnap, 1); … … 928 927 opts.format = LC_IMAGE_GIF; 929 928 930 i = m_ActiveModel->m_Cur Time;929 i = m_ActiveModel->m_CurFrame; 931 930 CreateImages(image, 120, 100, i, i, false); 932 931 image[0].FileSave (*file, &opts); … … 1431 1430 FileReadLDraw(&file, &mat, &ok, m_nCurColor, &step, FileArray, FilePath); 1432 1431 1433 m_ActiveModel->m_Cur Time = step;1434 SystemUpdateTime(false, m_ActiveModel->m_Cur Time, 255);1432 m_ActiveModel->m_CurFrame = step; 1433 SystemUpdateTime(false, m_ActiveModel->m_CurFrame, 255); 1435 1434 SystemUpdateFocus(NULL); 1436 1435 UpdateSelection(); … … 1980 1979 lcMesh* Mesh = piece->GetMesh(); 1981 1980 1982 if (!piece->IsVisible(m_ActiveModel->m_Cur Time))1981 if (!piece->IsVisible(m_ActiveModel->m_CurFrame)) 1983 1982 continue; 1984 1983 … … 2967 2966 2968 2967 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 2969 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))2968 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 2970 2969 pPiece->RenderBox(bHilite, m_fLineWidth); 2971 2970 } … … 3082 3081 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 3083 3082 { 3084 pPiece->UpdatePosition(m_ActiveModel->m_Cur Time);3083 pPiece->UpdatePosition(m_ActiveModel->m_CurFrame); 3085 3084 PieceCount++; 3086 3085 } … … 3091 3090 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 3092 3091 { 3093 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_Cur Time, false, false);3092 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_CurFrame, false, false); 3094 3093 SytemStepProgressBar(); 3095 3094 } … … 3099 3098 3100 3099 for (pCamera = m_pCameras; pCamera; pCamera = (Camera*)pCamera->m_Next) 3101 pCamera->UpdatePosition(m_ActiveModel->m_Cur Time);3100 pCamera->UpdatePosition(m_ActiveModel->m_CurFrame); 3102 3101 3103 3102 for (pLight = m_pLights; pLight; pLight = (Light*)pLight->m_Next) 3104 pLight->UpdatePosition(m_ActiveModel->m_Cur Time);3103 pLight->UpdatePosition(m_ActiveModel->m_CurFrame); 3105 3104 } 3106 3105 … … 3336 3335 if (Frames) 3337 3336 { 3338 m_ActiveModel->m_Cur Time += Frames;3339 while (m_ActiveModel->m_Cur Time > m_nTotalFrames)3340 m_ActiveModel->m_Cur Time -= m_nTotalFrames;3337 m_ActiveModel->m_CurFrame += Frames; 3338 while (m_ActiveModel->m_CurFrame > m_ActiveModel->m_TotalFrames) 3339 m_ActiveModel->m_CurFrame -= m_ActiveModel->m_TotalFrames; 3341 3340 3342 3341 CalculateStep(); 3343 SystemUpdateTime(true, m_ActiveModel->m_Cur Time, m_nTotalFrames);3342 SystemUpdateTime(true, m_ActiveModel->m_CurFrame, m_ActiveModel->m_TotalFrames); 3344 3343 3345 3344 UpdateAllViews(); … … 3362 3361 void* render = Sys_StartMemoryRender (width, height); 3363 3362 unsigned char* buf = (unsigned char*)malloc (width*height*3); 3364 oldtime = m_ActiveModel->m_Cur Time;3363 oldtime = m_ActiveModel->m_CurFrame; 3365 3364 3366 3365 View view(this, NULL); … … 3375 3374 for (int i = from; i <= to; i++) 3376 3375 { 3377 m_ActiveModel->m_Cur Time = i;3376 m_ActiveModel->m_CurFrame = i; 3378 3377 3379 3378 if (hilite) … … 3393 3392 } 3394 3393 3395 m_ActiveModel->m_Cur Time = (unsigned char)oldtime;3394 m_ActiveModel->m_CurFrame = (unsigned char)oldtime; 3396 3395 CalculateStep(); 3397 3396 free (buf); … … 3517 3516 3518 3517 if (Pos != mod->Position) 3519 pPiece->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->Position, LC_PK_POSITION);3518 pPiece->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->Position, LC_PK_POSITION); 3520 3519 3521 3520 if (mod->Rotation[0] != Angles[0] || mod->Rotation[1] != Angles[1] || mod->Rotation[2] != Angles[2]) … … 3524 3523 Vector4 AxisAngle = MatrixToAxisAngle(mat); 3525 3524 AxisAngle[3] *= LC_RTOD; 3526 pPiece->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, AxisAngle, LC_PK_ROTATION);3525 pPiece->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, AxisAngle, LC_PK_ROTATION); 3527 3526 } 3528 3527 … … 3537 3536 pPiece->SetName(mod->name); 3538 3537 pPiece->SetColor(mod->color); 3539 pPiece->UpdatePosition(m_ActiveModel->m_Cur Time);3540 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_Cur Time, false, true);3538 pPiece->UpdatePosition(m_ActiveModel->m_CurFrame); 3539 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_CurFrame, false, true); 3541 3540 3542 3541 SetModifiedFlag(true); … … 3561 3560 3562 3561 if (pCamera->GetEyePosition() != mod->Eye) 3563 pCamera->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->Eye, LC_CK_EYE);3562 pCamera->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->Eye, LC_CK_EYE); 3564 3563 3565 3564 if (pCamera->GetTargetPosition() != mod->Target) 3566 pCamera->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->Target, LC_CK_TARGET);3565 pCamera->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->Target, LC_CK_TARGET); 3567 3566 3568 3567 if (pCamera->GetRoll() != mod->Roll) 3569 pCamera->SetRoll(mod->Roll, m_ActiveModel->m_Cur Time, m_bAddKeys);3568 pCamera->SetRoll(mod->Roll, m_ActiveModel->m_CurFrame, m_bAddKeys); 3570 3569 3571 3570 pCamera->SetName(mod->name); … … 3574 3573 pCamera->m_zFar = mod->zfar; 3575 3574 3576 pCamera->UpdatePosition(m_ActiveModel->m_Cur Time);3575 pCamera->UpdatePosition(m_ActiveModel->m_CurFrame); 3577 3576 UpdateAllViews(); 3578 3577 } break; … … 3589 3588 3590 3589 if (light->GetPosition() != mod->Position) 3591 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->Position, LC_LK_POSITION);3590 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->Position, LC_LK_POSITION); 3592 3591 3593 3592 if (light->GetTargetPosition() != mod->Target) 3594 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->Target, LC_LK_TARGET);3593 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->Target, LC_LK_TARGET); 3595 3594 3596 3595 if (light->GetAmbientColor() != mod->AmbientColor) 3597 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->AmbientColor, LC_LK_AMBIENT_COLOR);3596 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->AmbientColor, LC_LK_AMBIENT_COLOR); 3598 3597 3599 3598 if (light->GetDiffuseColor() != mod->DiffuseColor) 3600 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->DiffuseColor, LC_LK_DIFFUSE_COLOR);3599 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->DiffuseColor, LC_LK_DIFFUSE_COLOR); 3601 3600 3602 3601 if (light->GetSpecularColor() != mod->SpecularColor) 3603 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, mod->SpecularColor, LC_LK_SPECULAR_COLOR);3602 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, mod->SpecularColor, LC_LK_SPECULAR_COLOR); 3604 3603 3605 3604 if (light->GetConstantAttenuation() != mod->ConstantAttenuation) 3606 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, &mod->ConstantAttenuation, LC_LK_CONSTANT_ATTENUATION);3605 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, &mod->ConstantAttenuation, LC_LK_CONSTANT_ATTENUATION); 3607 3606 3608 3607 if (light->GetLinearAttenuation() != mod->LinearAttenuation) 3609 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, &mod->LinearAttenuation, LC_LK_LINEAR_ATTENUATION);3608 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, &mod->LinearAttenuation, LC_LK_LINEAR_ATTENUATION); 3610 3609 3611 3610 if (light->GetQuadraticAttenuation() != mod->QuadraticAttenuation) 3612 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, &mod->QuadraticAttenuation, LC_LK_QUADRATIC_ATTENUATION);3611 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, &mod->QuadraticAttenuation, LC_LK_QUADRATIC_ATTENUATION); 3613 3612 3614 3613 if (light->GetSpotCutoff() != mod->SpotCutoff) 3615 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, &mod->SpotCutoff, LC_LK_SPOT_CUTOFF);3614 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, &mod->SpotCutoff, LC_LK_SPOT_CUTOFF); 3616 3615 3617 3616 if (light->GetSpotExponent() != mod->SpotExponent) 3618 light->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, &mod->SpotExponent, LC_LK_SPOT_EXPONENT);3617 light->ChangeKey(m_ActiveModel->m_CurFrame, m_bAddKeys, &mod->SpotExponent, LC_LK_SPOT_EXPONENT); 3619 3618 3620 3619 light->SetName(mod->name); 3621 3620 3622 light->UpdatePosition(m_ActiveModel->m_Cur Time);3621 light->UpdatePosition(m_ActiveModel->m_CurFrame); 3623 3622 UpdateAllViews(); 3624 3623 } break; … … 3693 3692 LC_IMAGEDLG_OPTS opts; 3694 3693 opts.from = 1; 3695 opts.to = m_ nTotalFrames;3694 opts.to = m_ActiveModel->m_TotalFrames; 3696 3695 opts.multiple = false; 3697 3696 opts.imopts.background[0] = (unsigned char)(m_fBackground[0]*255); … … 3714 3713 } 3715 3714 else 3716 opts.from = opts.to = m_ActiveModel->m_Cur Time;3715 opts.from = opts.to = m_ActiveModel->m_CurFrame; 3717 3716 3718 3717 Image* images = new Image[opts.to-opts.from+1]; … … 4405 4404 } break; 4406 4405 4407 case LC_FILE_PROPERTIES: 4406 case LC_MODEL_NEW: 4407 { 4408 } break; 4409 4410 case LC_MODEL_DELETE: 4411 { 4412 } break; 4413 4414 case LC_MODEL_PROPERTIES: 4408 4415 { 4409 4416 LC_PROPERTIESDLG_OPTS opts; … … 4642 4649 pPasted = (Piece*)pPasted->m_Next; 4643 4650 pPiece->CreateName(m_ActiveModel->m_Pieces); 4644 pPiece->SetTimeShow(m_ActiveModel->m_Cur Time);4651 pPiece->SetTimeShow(m_ActiveModel->m_CurFrame); 4645 4652 AddPiece(pPiece); 4646 4653 pPiece->Select(true, false); … … 4722 4729 Piece* pPiece; 4723 4730 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 4724 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))4731 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 4725 4732 pPiece->Select(true, false); 4726 4733 … … 4742 4749 Piece* pPiece; 4743 4750 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 4744 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))4751 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 4745 4752 { 4746 4753 if (pPiece->IsSelected()) … … 4764 4771 4765 4772 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 4766 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))4773 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 4767 4774 i++; 4768 4775 … … 4790 4797 4791 4798 for (pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 4792 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))4799 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 4793 4800 { 4794 4801 opts[i].name = pPiece->GetName(); … … 4895 4902 GetPieceInsertPosition(pLast, Pos, Rot); 4896 4903 4897 pPiece->Initialize(Pos[0], Pos[1], Pos[2], m_ActiveModel->m_Cur Time, m_nCurColor);4898 4899 pPiece->ChangeKey(m_ActiveModel->m_Cur Time, false, Rot, LC_PK_ROTATION);4900 pPiece->UpdatePosition(m_ActiveModel->m_Cur Time);4904 pPiece->Initialize(Pos[0], Pos[1], Pos[2], m_ActiveModel->m_CurFrame, m_nCurColor); 4905 4906 pPiece->ChangeKey(m_ActiveModel->m_CurFrame, false, Rot, LC_PK_ROTATION); 4907 pPiece->UpdatePosition(m_ActiveModel->m_CurFrame); 4901 4908 } 4902 4909 else 4903 pPiece->Initialize(0, 0, -m_pCurPiece->m_fDimensions[5], m_ActiveModel->m_Cur Time, m_nCurColor);4910 pPiece->Initialize(0, 0, -m_pCurPiece->m_fDimensions[5], m_ActiveModel->m_CurFrame, m_nCurColor); 4904 4911 4905 4912 SelectAndFocusNone(false); 4906 4913 pPiece->CreateName(m_ActiveModel->m_Pieces); 4907 4914 AddPiece(pPiece); 4908 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_Cur Time, true, true);4915 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_CurFrame, true, true); 4909 4916 pPiece->Select (true, true); 4910 4917 messenger->Dispatch (LC_MSG_FOCUS_CHANGED, pPiece); … … 4950 4957 Piece* pPiece = new Piece(wiz->m_Info[i]); 4951 4958 4952 pPiece->Initialize(wiz->m_Position[i][0], wiz->m_Position[i][1], wiz->m_Position[i][2], m_ActiveModel->m_Cur Time, wiz->m_Colors[i]);4959 pPiece->Initialize(wiz->m_Position[i][0], wiz->m_Position[i][1], wiz->m_Position[i][2], m_ActiveModel->m_CurFrame, wiz->m_Colors[i]); 4953 4960 pPiece->CreateName(m_ActiveModel->m_Pieces); 4954 4961 AddPiece(pPiece); … … 4956 4963 4957 4964 pPiece->ChangeKey(1, false, wiz->m_Rotation[i], LC_PK_ROTATION); 4958 pPiece->UpdatePosition(m_ActiveModel->m_Cur Time);4959 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_Cur Time, false, true);4965 pPiece->UpdatePosition(m_ActiveModel->m_CurFrame); 4966 pPiece->CalculateConnections(m_pConnections, m_ActiveModel->m_CurFrame, false, true); 4960 4967 4961 4968 SystemPieceComboAdd(wiz->m_Info[i]->m_strDescription); … … 5086 5093 pLast = pFirst = new Piece(pPiece->GetPieceInfo()); 5087 5094 5088 pLast->Initialize(pos[0]+i*opts.fMove[0], pos[1]+i*opts.fMove[1], pos[2]+i*opts.fMove[2], m_ActiveModel->m_Cur Time, pPiece->GetColor());5095 pLast->Initialize(pos[0]+i*opts.fMove[0], pos[1]+i*opts.fMove[1], pos[2]+i*opts.fMove[2], m_ActiveModel->m_CurFrame, pPiece->GetColor()); 5089 5096 pLast->ChangeKey(1, false, param, LC_PK_ROTATION); 5090 5097 } … … 5106 5113 5107 5114 pLast->Initialize(pos[0]+i*opts.fMove[0]+j*opts.f2D[0], pos[1]+i*opts.fMove[1]+j*opts.f2D[1], pos[2]+i*opts.fMove[2]+j*opts.f2D[2], 5108 m_ActiveModel->m_Cur Time, pPiece->GetColor());5115 m_ActiveModel->m_CurFrame, pPiece->GetColor()); 5109 5116 pLast->ChangeKey(1, false, param, LC_PK_ROTATION); 5110 5117 } … … 5124 5131 5125 5132 pLast->Initialize(pos[0]+i*opts.fMove[0]+j*opts.f2D[0]+k*opts.f3D[0], pos[1]+i*opts.fMove[1]+j*opts.f2D[1]+k*opts.f3D[1], pos[2]+i*opts.fMove[2]+j*opts.f2D[2]+k*opts.f3D[2], 5126 m_ActiveModel->m_Cur Time, pPiece->GetColor());5133 m_ActiveModel->m_CurFrame, pPiece->GetColor()); 5127 5134 pLast->ChangeKey(1, false, param, LC_PK_ROTATION); 5128 5135 } … … 5135 5142 pPiece = (Piece*)pFirst->m_Next; 5136 5143 pFirst->CreateName(m_ActiveModel->m_Pieces); 5137 pFirst->UpdatePosition(m_ActiveModel->m_Cur Time);5144 pFirst->UpdatePosition(m_ActiveModel->m_CurFrame); 5138 5145 AddPiece(pFirst); 5139 pFirst->CalculateConnections(m_pConnections, m_ActiveModel->m_Cur Time, false, true);5146 pFirst->CalculateConnections(m_pConnections, m_ActiveModel->m_CurFrame, false, true); 5140 5147 pFirst = pPiece; 5141 5148 } … … 5159 5166 if (pPiece->IsSelected()) 5160 5167 { 5161 pPiece->CalculateSingleKey (m_ActiveModel->m_Cur Time, LC_PK_POSITION, move);5162 pPiece->ChangeKey(m_ActiveModel->m_Cur Time, move, LC_PK_POSITION);5163 pPiece->ChangeKey(m_ActiveModel->m_Cur Time, rot, LC_PK_ROTATION);5168 pPiece->CalculateSingleKey (m_ActiveModel->m_CurFrame, LC_PK_POSITION, move); 5169 pPiece->ChangeKey(m_ActiveModel->m_CurFrame, move, LC_PK_POSITION); 5170 pPiece->ChangeKey(m_ActiveModel->m_CurFrame, rot, LC_PK_ROTATION); 5164 5171 } 5165 5172 … … 5425 5432 pPiece->SetTimeShow(t+1); 5426 5433 5427 if (pPiece->IsSelected () && t == m_ActiveModel->m_Cur Time)5434 if (pPiece->IsSelected () && t == m_ActiveModel->m_CurFrame) 5428 5435 pPiece->Select (false, false); 5429 5436 } … … 5496 5503 case LC_VIEW_ZOOM: 5497 5504 { 5498 m_ActiveView->GetCamera()->DoZoom(nParam, m_nMouse, m_ActiveModel->m_Cur Time, m_bAddKeys);5505 m_ActiveView->GetCamera()->DoZoom(nParam, m_nMouse, m_ActiveModel->m_CurFrame, m_bAddKeys); 5499 5506 SystemUpdateFocus(NULL); 5500 5507 UpdateOverlayScale(); … … 5504 5511 case LC_VIEW_ZOOMIN: 5505 5512 { 5506 m_ActiveView->GetCamera()->DoZoom(-1, m_nMouse, m_ActiveModel->m_Cur Time, m_bAddKeys);5513 m_ActiveView->GetCamera()->DoZoom(-1, m_nMouse, m_ActiveModel->m_CurFrame, m_bAddKeys); 5507 5514 SystemUpdateFocus(NULL); 5508 5515 UpdateOverlayScale(); … … 5512 5519 case LC_VIEW_ZOOMOUT: 5513 5520 { 5514 m_ActiveView->GetCamera()->DoZoom(1, m_nMouse, m_ActiveModel->m_Cur Time, m_bAddKeys);5521 m_ActiveView->GetCamera()->DoZoom(1, m_nMouse, m_ActiveModel->m_CurFrame, m_bAddKeys); 5515 5522 SystemUpdateFocus(NULL); 5516 5523 UpdateOverlayScale(); … … 5527 5534 5528 5535 for (Piece* pPiece = m_ActiveModel->m_Pieces; pPiece; pPiece = (Piece*)pPiece->m_Next) 5529 if (pPiece->IsVisible(m_ActiveModel->m_Cur Time))5536 if (pPiece->IsVisible(m_ActiveModel->m_CurFrame)) 5530 5537 pPiece->CompareBoundingBox(bs); 5531 5538 … … 5561 5568 Vector3 Front = Target - Eye; 5562 5569 5563 camera->ChangeKey(m_ActiveModel->m_Cur Time, m_bAddKeys, Eye, LC_CK_EYE);5564 camera-
