| Server IP : 82.208.35.60 / Your IP : 216.73.217.116 Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31 System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64 User : studiokobylisy_cz ( 1008) PHP Version : 7.3.31 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /usr/ports/cad/freecad/files/ |
Upload File : |
--- src/Mod/Raytracing/App/LuxFeature.cpp.orig 2019-10-04 10:45:53 UTC
+++ src/Mod/Raytracing/App/LuxFeature.cpp
@@ -88,23 +88,23 @@ App::DocumentObjectExecReturn *LuxFeature::execute(voi
const App::Color& c = Color.getValue();
long t = Transparency.getValue();
if (t == 0) {
- result << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << endl
- << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << endl
- << " \"float sigma\" [0.000000000000000]" << endl
- << " \"string type\" [\"matte\"]" << endl << endl;
+ result << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << std::endl
+ << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << std::endl
+ << " \"float sigma\" [0.000000000000000]" << std::endl
+ << " \"string type\" [\"matte\"]" << std::endl << std::endl;
} else {
float trans = t/100.0f;
- result << "MakeNamedMaterial \"FreeCADMaterial_Base_" << Name << "\"" << endl
- << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << endl
- << " \"float sigma\" [0.000000000000000]" << endl
- << " \"string type\" [\"matte\"]" << endl << endl
- << "MakeNamedMaterial \"FreeCADMaterial_Null_" << Name << "\"" << endl
- << " \"string type\" [\"null\"]" << endl << endl
- << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << endl
- << " \"string namedmaterial1\" [\"FreeCADMaterial_Null_" << Name << "\"]" << endl
- << " \"string namedmaterial2\" [\"FreeCADMaterial_Base_" << Name << "\"]" << endl
- << " \"float amount\" [" << trans << "]" << endl
- << " \"string type\" [\"mix\"]" << endl << endl;
+ result << "MakeNamedMaterial \"FreeCADMaterial_Base_" << Name << "\"" << std::endl
+ << " \"color Kd\" [" << c.r << " " << c.g << " " << c.b << "]" << std::endl
+ << " \"float sigma\" [0.000000000000000]" << std::endl
+ << " \"string type\" [\"matte\"]" << std::endl << std::endl
+ << "MakeNamedMaterial \"FreeCADMaterial_Null_" << Name << "\"" << std::endl
+ << " \"string type\" [\"null\"]" << std::endl << std::endl
+ << "MakeNamedMaterial \"FreeCADMaterial_" << Name << "\"" << std::endl
+ << " \"string namedmaterial1\" [\"FreeCADMaterial_Null_" << Name << "\"]" << std::endl
+ << " \"string namedmaterial2\" [\"FreeCADMaterial_Base_" << Name << "\"]" << std::endl
+ << " \"float amount\" [" << trans << "]" << std::endl
+ << " \"string type\" [\"mix\"]" << std::endl << std::endl;
}
LuxTools::writeShape(result,Name.c_str(),shape);