| 186 | } |
| 187 | |
| 188 | void LuxCoreApp::RenderConfigParse(const Properties &props) { |
| 189 | if (session) { |
| 190 | // Delete the session |
| 191 | delete session; |
| 192 | session = NULL; |
| 193 | } |
| 194 | |
| 195 | // Change the configuration |
| 196 | try { |
| 197 | config->Parse(props); |
| 198 | } catch(exception &ex) { |
| 199 | LA_LOG("RenderConfig fatal parse error: " << endl << ex.what()); |
| 200 | // I can not recover from a RenderConfig parse error: I would have to create |
| 201 | // a new RenderConfig |
| 202 | exit(EXIT_FAILURE); |
| 203 | } |
| 204 | |
| 205 | StartRendering(); |
| 206 | } |
| 207 | |
| 208 | void LuxCoreApp::RenderSessionParse(const Properties &props) { |
| 209 | try { |
no test coverage detected