*/}}
Browse Source

Eraser strength fix

YimingWu 1 week ago
parent
commit
835569b7c5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      ouroperations.c

+ 2 - 2
ouroperations.c

@@ -145,8 +145,8 @@ void our_ToBrushData140(OurBrushData140* b140, real transparency,real Accumulati
             safepow(Our->MixedPigment.Absorption[i],AccumulationStrength);
             safepow(Our->MixedPigment.Absorption[i],AccumulationStrength);
         b140->Reflectance[i*4]=Our->MixedPigment.Reflectance[i];
         b140->Reflectance[i*4]=Our->MixedPigment.Reflectance[i];
     }
     }
-    b140->Absorption[15*4]=Our->MixedPigment.Absorption[15]*transparency;
-    b140->Reflectance[15*4]=Our->MixedPigment.Reflectance[15]*transparency;
+    b140->Absorption[15*4]=(Our->Erasing?1.0f:Our->MixedPigment.Absorption[15])*transparency;
+    b140->Reflectance[15*4]=(Our->Erasing?1.0f:Our->MixedPigment.Reflectance[15])*transparency;
 }
 }