mirror of
https://github.com/leozide/leocad.git
synced 2026-09-15 11:03:55 +00:00
Fixed warnings.
This commit is contained in:
+1
-5
@@ -32,16 +32,12 @@ lcLight::lcLight(const lcVector3& Position, lcLightType LightType)
|
||||
|
||||
void lcLight::UpdateLightType()
|
||||
{
|
||||
lcVector2 Size;
|
||||
lcVector2 Size(0.0f, 0.0f);
|
||||
|
||||
switch (mLightType)
|
||||
{
|
||||
case lcLightType::Point:
|
||||
Size = lcVector2(0.0f, 0.0f);
|
||||
break;
|
||||
|
||||
case lcLightType::Spot:
|
||||
Size = lcVector2(0.0f, 0.0f);
|
||||
break;
|
||||
|
||||
case lcLightType::Directional:
|
||||
|
||||
+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