mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0027737: Remove hardcoded paths to data folders in mfc samples
Data shapes (used in samples) were moved into CSF_OCCTDataPath location.
This commit is contained in:
@@ -1155,9 +1155,9 @@ static Standard_Boolean fixParam(Standard_Real& theParam)
|
||||
|
||||
void CGeometryDoc::OnSimplify()
|
||||
{
|
||||
CString initfile(((OCC_App*) AfxGetApp())->GetInitDataDir());
|
||||
initfile += L"\\..\\..\\..\\samples\\mfc\\standard\\01_Geometry\\Data\\";
|
||||
initfile += L"shell1.brep";
|
||||
CString anOCCTDataPathValue;
|
||||
anOCCTDataPathValue.GetEnvironmentVariable(L"CSF_OCCTDataPath");
|
||||
CString initfile = (anOCCTDataPathValue + L"\\occ\\shell1.brep");
|
||||
|
||||
std::filebuf aFileBuf;
|
||||
std::istream aStream (&aFileBuf);
|
||||
|
Reference in New Issue
Block a user