Browse Source

fix incorrect coloration when levels are out of order

David Rose 21 years ago
parent
commit
a5c6cbfb0d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pandatool/src/pstatserver/pStatStripChart.cxx

+ 1 - 1
pandatool/src/pstatserver/pStatStripChart.cxx

@@ -469,7 +469,7 @@ get_frame_data(int frame_number) {
   cd._collector_index = (unsigned short)level->get_collector();
   cd._collector_index = (unsigned short)level->get_collector();
   cd._i = (unsigned short)num_children;
   cd._i = (unsigned short)num_children;
   cd._net_value = level->get_value_alone();
   cd._net_value = level->get_value_alone();
-  if (cd._net_value != 0.0) {
+  if (cd._net_value > 0.0) {
     fdata.push_back(cd);
     fdata.push_back(cd);
   }
   }