File tree Expand file tree Collapse file tree
ofxProjectGenerator/src/projects Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -234,8 +234,18 @@ void baseProject::addAddon(std::string addonName){
234234 ofAddon addon;
235235 addon.pathToOF = getOFRelPath (projectDir);
236236 addon.pathToProject = ofFilePath::getAbsolutePath (projectDir);
237+
238+
239+
237240 auto localPath = ofFilePath::join (addon.pathToProject , addonName);
238- if (ofDirectory (localPath).exists ()){
241+
242+ if (ofDirectory (addonName).exists ()){
243+ // if it's an absolute path, convert to relative...
244+ string relativePath = ofFilePath::makeRelative (addon.pathToProject , addonName);
245+ addonName = relativePath;
246+ addon.isLocalAddon = true ;
247+ addon.fromFS (addonName, target);
248+ } else if (ofDirectory (localPath).exists ()){
239249 addon.isLocalAddon = true ;
240250 addon.fromFS (addonName, target);
241251 }else {
You can’t perform that action at this time.
0 commit comments