+ fixes #0001963: Only write needed user data in FCSTD file if any.

This commit is contained in:
wmayer
2015-04-11 22:30:11 +02:00
parent a201bd2a5e
commit 5e9543ca55
6 changed files with 29 additions and 3 deletions

View File

@@ -30,6 +30,7 @@
#include <Base/FileInfo.h>
#include <Base/Console.h>
#include <App/Application.h>
#include "LuxProject.h"
#include "LuxFeature.h"
#include "LuxTools.h"
@@ -46,10 +47,16 @@ PROPERTY_SOURCE(Raytracing::LuxProject, App::DocumentObjectGroup)
LuxProject::LuxProject(void)
{
ADD_PROPERTY_TYPE(PageResult ,(0),0,App::Prop_Output,"Resulting Luxrender Scene file");
ADD_PROPERTY_TYPE(Template ,(""),0,App::Prop_None ,"Template for the Luxrender project");
ADD_PROPERTY_TYPE(Template ,(""),0,App::Prop_Transient ,"Template for the Luxrender project");
ADD_PROPERTY_TYPE(Camera ,(""),0,App::Prop_None ,"Camera settings");
}
void LuxProject::onDocumentRestored()
{
Base::FileInfo fi(PageResult.getValue());
Template.setValue(App::Application::getResourceDir() + "Mod/Drawing/Templates/" + fi.fileName());
}
App::DocumentObjectExecReturn *LuxProject::execute(void)
{
if (std::string(PageResult.getValue()) == "")