Browse Source

better default for get_color() without color setting

David Rose 23 years ago
parent
commit
e0b9535308
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/nodePath.cxx

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

@@ -1457,7 +1457,7 @@ get_color() const {
   pgraph_cat.warning()
     << "get_color() called on " << *this << " which has no color set.\n";
 
-  return Colorf(0.0f, 0.0f, 0.0f, 0.0f);
+  return Colorf(1.0f, 1.0f, 1.0f, 1.0f);
 }
 
 ////////////////////////////////////////////////////////////////////