core: Warn when setting a blend mode

This commit is contained in:
Mike Welsh 2022-08-18 12:32:35 -07:00
parent 04c440e860
commit 2e83bb570d
1 changed files with 6 additions and 0 deletions

View File

@ -372,6 +372,12 @@ impl<'gc> DisplayObjectBase<'gc> {
} }
fn set_blend_mode(&mut self, value: BlendMode) { fn set_blend_mode(&mut self, value: BlendMode) {
if value != BlendMode::Normal {
log::warn!(
"Blend mode '{}' is experimental and will not render 100% correctly.",
value
);
}
self.blend_mode = value; self.blend_mode = value;
} }