Browse Source

Fix for SettingsLoader to support CircleSurface

master
c-mendoza 8 years ago
parent
commit
2a9e451e12
  1. 3
      src/Application/SettingsLoader.cpp

3
src/Application/SettingsLoader.cpp

@ -216,7 +216,8 @@ bool SettingsLoader::save(SurfaceManager & surfaceManager, string fileName){
// Save surface options
// For now only if quad surface
if(surface->getType() == SurfaceType::QUAD_SURFACE){
if (surface->getType() == SurfaceType::QUAD_SURFACE ||
surface->getType() == SurfaceType::CIRCLE_SURFACE) {
QuadSurface * qs = (QuadSurface *)surface;
if(!xmlSettings->tagExists("properties")){
xmlSettings->addTag("properties");

Loading…
Cancel
Save