0001277: Allow to use RaySegment object in Raytracing projects
This commit is contained in:
@@ -87,8 +87,8 @@ App::DocumentObjectExecReturn *LuxProject::execute(void)
|
||||
<< "# Generated by FreeCAD (http://www.freecadweb.org/)" << endl << endl;
|
||||
const std::vector<App::DocumentObject*> &Grp = Group.getValues();
|
||||
for (std::vector<App::DocumentObject*>::const_iterator It= Grp.begin();It!=Grp.end();++It) {
|
||||
if ((*It)->getTypeId().isDerivedFrom(Raytracing::LuxFeature::getClassTypeId())) {
|
||||
Raytracing::LuxFeature *View = dynamic_cast<Raytracing::LuxFeature *>(*It);
|
||||
if ((*It)->getTypeId().isDerivedFrom(Raytracing::RaySegment::getClassTypeId())) {
|
||||
Raytracing::RaySegment *View = dynamic_cast<Raytracing::RaySegment *>(*It);
|
||||
ofile << View->Result.getValue();
|
||||
ofile << endl;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user