Skip to content

Commit

Permalink
Fixed warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
leozide committed Dec 28, 2023
1 parent 149ae94 commit 105b00e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/lc_model.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ void lcModel::SaveLDraw(QTextStream& Stream, bool SelectedOnly, lcStep LastStep)
if (SelectedOnly && !Piece->IsSelected())
continue;

if (SavedStep = (LastStep != 0 && Piece->GetStepShow() > LastStep))
if ((SavedStep = (LastStep != 0 && Piece->GetStepShow() > LastStep)))
break;

while (Piece->GetFileLine() > CurrentLine && CurrentLine < mFileLines.size())
Expand Down
2 changes: 1 addition & 1 deletion common/project.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2166,7 +2166,7 @@ bool Project::ExportPOVRay(const QString& FileName)
Power = Idx < 2 ? 0.75f : 0.5f;
sprintf(Line,"#ifndef (SkipLight%i)\nWriteLight(%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",
Idx,
LightType,
static_cast<int>(LightType),
Shadowless,
Location[Idx][0], Location[Idx][1], Location[Idx][2],
LightTarget[0], LightTarget[1], LightTarget[2],
Expand Down

0 comments on commit 105b00e

Please sign in to comment.