From 1a7a31ea1fe66b39cc3d6c81a6fbb3be4e9c154d Mon Sep 17 00:00:00 2001 From: Sergei Solokhin Date: Sat, 4 Apr 2026 17:54:10 +0100 Subject: [PATCH] compile code for sdk 2027 --- Src/MotionCodeLibrary/curveEditor_popup.cxx | 2 ++ Src/PRODUCT_VERSION.txt | 2 +- .../postprocesscontextdata.cxx | 25 ++++++++++++++++++- .../manip_lockCamera/lockcamera_manip.cxx | 4 +-- 4 files changed, 28 insertions(+), 5 deletions(-) diff --git a/Src/MotionCodeLibrary/curveEditor_popup.cxx b/Src/MotionCodeLibrary/curveEditor_popup.cxx index eda39bca..a5f84df5 100644 --- a/Src/MotionCodeLibrary/curveEditor_popup.cxx +++ b/Src/MotionCodeLibrary/curveEditor_popup.cxx @@ -532,7 +532,9 @@ void ORPopup_ColorEditor::UIConfigure() mEditAlpha.Max = 255.0; mEditAlpha.OnChange.Add( this, (FBCallback) &ORPopup_ColorEditor::EventEditColorChange ); +#if(PRODUCT_VERSION<2027) mEditColor.ColorMode = 3; +#endif mEditColor.OnChange.Add( this, (FBCallback) &ORPopup_ColorEditor::EventEditColorChange ); Restructure(true); diff --git a/Src/PRODUCT_VERSION.txt b/Src/PRODUCT_VERSION.txt index 810c4ddf..3949474c 100644 --- a/Src/PRODUCT_VERSION.txt +++ b/Src/PRODUCT_VERSION.txt @@ -1 +1 @@ -2025 \ No newline at end of file +2027 \ No newline at end of file diff --git a/Src/Projects/manager_PostProcessing/postprocesscontextdata.cxx b/Src/Projects/manager_PostProcessing/postprocesscontextdata.cxx index 8a4d84f9..c7a42d4a 100644 --- a/Src/Projects/manager_PostProcessing/postprocesscontextdata.cxx +++ b/Src/Projects/manager_PostProcessing/postprocesscontextdata.cxx @@ -359,8 +359,31 @@ void PostProcessContextData::PreRenderFirstEntry() if (schematic >= 0) mSchematicView[schematic] = true; +#if(PRODUCT_VERSION>=2027) + switch (pRenderer->GetPanesLayoutMode()) + { + case kFBOnePane: + mLastPaneCount = 1; + break; + case kFBTwoPanesHorizontal: + case kFBTwoPanesVertical: + mLastPaneCount = 2; + break; + case kFBThreePanesSplitBottom: + case kFBThreePanesSplitLeft: + case kFBThreePanesSplitRight: + case kFBThreePanesSplitTop: + mLastPaneCount = 3; + break; + case kFBFourPanes: + mLastPaneCount = 4; + break; + default: + mLastPaneCount = 1; + } +#else mLastPaneCount = pRenderer->GetPaneCount(); - +#endif // DONE: this is strict post effect pane index, should we choose another one ?! for (int i = 0; i < mLastPaneCount; ++i) diff --git a/Src/Projects/manip_lockCamera/lockcamera_manip.cxx b/Src/Projects/manip_lockCamera/lockcamera_manip.cxx index d5daf467..020d3393 100644 --- a/Src/Projects/manip_lockCamera/lockcamera_manip.cxx +++ b/Src/Projects/manip_lockCamera/lockcamera_manip.cxx @@ -246,9 +246,7 @@ bool Manip_LockCamera::ViewInput(int pMouseX, int pMouseY, FBInputType pAction, { FBRenderer *pRenderer = mSystem.Renderer; unsigned int currPane = pRenderer->GetSelectedPaneIndex(); - pRenderer->GetPaneCount(); - - + // Mouse button clicked. FBCamera* lCamera = pRenderer->GetCameraInPane(currPane);