Fixed warnings.
This commit is contained in:
+3
-3
@@ -1847,7 +1847,7 @@ bool Project::ExportPOVRay(const QString& FileName)
|
||||
LGEO_COLOR_GLITTER = 0x40
|
||||
};
|
||||
|
||||
char Line[1024];
|
||||
char Line[2048];
|
||||
|
||||
sprintf(Line, "// Generated By: LeoCAD %s\n// LDraw File: %s\n// Date: %s\n\n",
|
||||
LC_VERSION_TEXT,
|
||||
@@ -2046,7 +2046,7 @@ bool Project::ExportPOVRay(const QString& FileName)
|
||||
" }\n"
|
||||
"#end\n"
|
||||
"#end\n\n",
|
||||
lcLightType::Point, lcLightType::Spot, lcLightType::Directional, lcLightType::Area);
|
||||
static_cast<int>(lcLightType::Point), static_cast<int>(lcLightType::Spot), static_cast<int>(lcLightType::Directional), static_cast<int>(lcLightType::Area));
|
||||
POVFile.WriteLine(Line);
|
||||
|
||||
for (const lcModelPartsEntry& ModelPart : ModelParts)
|
||||
@@ -2218,7 +2218,7 @@ bool Project::ExportPOVRay(const QString& FileName)
|
||||
|
||||
sprintf(Line,"#ifndef (Skip%s)\n WriteLight(%i, %i, <%g, %g, %g>, <%g, %g, %g>, <%g, %g, %g>, %g, %g, %g, %g, %g, %g, %i, <%g, %g, %g>, <%g, %g, %g>, %i, %i)\n#end\n\n",
|
||||
LightName.toLatin1().constData(),
|
||||
LightType,
|
||||
static_cast<int>(LightType),
|
||||
Shadowless,
|
||||
LightPosition[1], LightPosition[0], LightPosition[2],
|
||||
LightTarget[1], LightTarget[0], LightTarget[2],
|
||||
|
||||
Reference in New Issue
Block a user