Skip to content

Commit

Permalink
Fixed compilation warning for uninitialized variable in TGeoPainter::…
Browse files Browse the repository at this point in the history
…Raytrace
  • Loading branch information
agheata committed Apr 13, 2016
1 parent 1f30912 commit 8bc5162
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geom/geompainter/src/TGeoPainter.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1791,7 +1791,7 @@ void TGeoPainter::Raytrace(Option_t *)
for (Int_t i=0; i<3; ++i) local[i] += 1.E-8*dir[i];
step = nextvol->GetShape()->DistFromInside(local,dir,3);
for (Int_t i=0; i<3; ++i) local[i] += step*dir[i];
nextvol->GetShape()->ComputeNormal(local, dir, normal);
nextnode->GetVolume()->GetShape()->ComputeNormal(local, dir, normal);
norm = normal;
} else {
if (!norm) norm = fGeoManager->FindNormalFast();
Expand Down

0 comments on commit 8bc5162

Please sign in to comment.