···119 }
120 }
121122- private BlendingParameters effectBlending;
123124 /// <summary>
125- /// The <see cref="BlendingParameters"/> to use after applying all effects. Default is <see cref="BlendingMode.Inherit"/>.
126- /// <see cref="BlendingMode.Inherit"/> inherits the blending mode of the original, i.e. <see cref="Drawable.Blending"/> is used.
127 /// Does not affect the original which is drawn when <see cref="DrawOriginal"/> is true.
128 /// </summary>
129 public BlendingParameters EffectBlending
···287 {
288 BlendingParameters blending = EffectBlending;
289290- if (blending.Mode == BlendingMode.Inherit)
291- {
292- blending.Mode = Blending.Mode;
293- if (Blending.Mode == BlendingMode.Custom)
294- blending.BlendingFactors = Blending.BlendingFactors; //in custom mode we also need to copy blending factor
295- }
296-297- if (blending.RGBEquation == BlendingEquation.Inherit)
298- blending.RGBEquation = Blending.RGBEquation;
299-300- if (blending.AlphaEquation == BlendingEquation.Inherit)
301- blending.AlphaEquation = Blending.AlphaEquation;
302303 return blending;
304 }
···119 }
120 }
121122+ private BlendingParameters effectBlending = BlendingParameters.Inherit;
123124 /// <summary>
125+ /// The <see cref="BlendingParameters"/> to use after applying all effects. Default is <see cref="BlendingType.Inherit"/>.
126+ /// <see cref="BlendingType.Inherit"/> inherits the blending mode of the original, i.e. <see cref="Drawable.Blending"/> is used.
127 /// Does not affect the original which is drawn when <see cref="DrawOriginal"/> is true.
128 /// </summary>
129 public BlendingParameters EffectBlending
···287 {
288 BlendingParameters blending = EffectBlending;
289290+ blending.CopyFromParent(Blending);
291+ blending.ApplyDefaultToInherited();
0000000000292293 return blending;
294 }
···31 /// <summary>
32 /// The blending mode of the glow. Default is additive.
33 /// </summary>
34- public BlendingParameters Blending = BlendingMode.Additive;
3536 /// <summary>
37 /// Whether to draw the glow <see cref="EffectPlacement.InFront"/> or <see cref="EffectPlacement.Behind"/> the glowing
···31 /// <summary>
32 /// The blending mode of the glow. Default is additive.
33 /// </summary>
34+ public BlendingParameters Blending = BlendingParameters.Additive;
3536 /// <summary>
37 /// Whether to draw the glow <see cref="EffectPlacement.InFront"/> or <see cref="EffectPlacement.Behind"/> the glowing
+1-1
osu.Framework/Graphics/Lines/Path_DrawNode.cs
···211 GLWrapper.PushDepthInfo(DepthInfo.Default);
212213 // Blending is removed to allow for correct blending between the wedges of the path.
214- GLWrapper.SetBlend(new BlendingParameters(BlendingMode.None));
215216 pathShader.Bind();
217
···211 GLWrapper.PushDepthInfo(DepthInfo.Default);
212213 // Blending is removed to allow for correct blending between the wedges of the path.
214+ GLWrapper.SetBlend(BlendingParameters.None);
215216 pathShader.Bind();
217