Skip to content

Commit

Permalink
converted loading paths to absolute and converting them gently to cst…
Browse files Browse the repository at this point in the history
…ring
  • Loading branch information
naus3a committed Apr 20, 2020
1 parent 571ef1d commit 6f15dd1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Binary file not shown.
5 changes: 3 additions & 2 deletions src/ofxARTNftTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@ bool NftTracker::setup(ofVec2f _camSize, ofVec2f _viewportSize, ofPixelFormat pf
arUtilTimerReset();

//load markers
const char * cPathMarkerParam = ofToDataPath(pthMarkerData).c_str();
string pthMarker = ofFilePath::getAbsolutePath(ofToDataPath(pthMarkerData));
const char * cPathMarkerParam = pthMarker.c_str();
newMarkers(cPathMarkerParam, &markersNFT, &markersNFTCount);
if (!markersNFTCount) {
ofLogError("ofxArtool5::setup","Error loading markers from config. file "+pthMarkerData);
Expand All @@ -239,7 +240,7 @@ bool NftTracker::setupCamera(string pthCamParam, ofVec2f _camSize, ofVec2f _view
ARParam cparam;
AR_PIXEL_FORMAT pixFormat = ofxArtool5::toAR(pf);

string pth = ofToDataPath(pthCamParam);
string pth = ofFilePath::getAbsolutePath(ofToDataPath(pthCamParam));
const char * cPathCamParam = pth.c_str();

camSize=_camSize;
Expand Down
3 changes: 2 additions & 1 deletion src/ofxARTUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,5 @@ namespace ofxArtool5 {
}
return n;
}
}

}

0 comments on commit 6f15dd1

Please sign in to comment.