David Rose 22 лет назад
Родитель
Сommit
24d05cd8dc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      panda/src/egg/eggPolygon.cxx

+ 2 - 2
panda/src/egg/eggPolygon.cxx

@@ -74,11 +74,11 @@ calculate_normal(Normald &result, CoordinateSystem cs) const {
   centroid /= (double)num_vertices;
 
   LVector3d max_normal;
-  float max_normal_length;
+  float max_normal_length = 0.0;
   bool got_max_normal = false;
 
   LVector3d max_normal_mc;
-  float max_normal_length_mc;
+  float max_normal_length_mc = 0.0;
   bool got_max_normal_mc = false;
 
   for (index = 0; index < num_vertices; index++) {