Explorar o código

fix bug in prev chkin

cxgeorge %!s(int64=24) %!d(string=hai) anos
pai
achega
a4c5d7f923
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      panda/src/dxgsg/dxGraphicsStateGuardian.cxx

+ 1 - 1
panda/src/dxgsg/dxGraphicsStateGuardian.cxx

@@ -4054,7 +4054,7 @@ void DXGraphicsStateGuardian::
 issue_color(const ColorAttribute *attrib) {
     
     bool bAttribOn=attrib->is_on();
-    bool bIsReal = attrib->is_real();
+    bool bIsReal = (bAttribOn ? attrib->is_real() : false);
 
     _issued_color_enabled = bAttribOn;