Browse Source

fix flash rate

David Rose 20 years ago
parent
commit
07dabdc00e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/cullableObject.cxx

+ 1 - 1
panda/src/pgraph/cullableObject.cxx

@@ -72,7 +72,7 @@ munge_geom(const qpGeomMunger *munger, const CullTraverser *traverser) {
         // These vertices were CPU-animated, so flash them.
         static const double flash_rate = 1.0;  // 1 state change per second
         int cycle = (int)(ClockObject::get_global_clock()->get_frame_time() * flash_rate);
-        if ((cycle & 2) == 0) {
+        if ((cycle & 1) == 0) {
           static Colorf flash_color(0.8f, 0.2f, 0.2f, 1.0f);
           if (animated_vertices->has_color()) {
             animated_vertices = animated_vertices->set_color(flash_color);