From 49d41f3e838cb2e593d62bd2e246dbf64abf64da Mon Sep 17 00:00:00 2001 From: Michael Ragazzon Date: Sun, 13 Oct 2024 19:37:18 +0200 Subject: [PATCH] Improve warning message when trying to animate box shadows, see #688 --- Source/Core/ElementAnimation.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/ElementAnimation.cpp b/Source/Core/ElementAnimation.cpp index 240abc723..f6e09d374 100644 --- a/Source/Core/ElementAnimation.cpp +++ b/Source/Core/ElementAnimation.cpp @@ -662,7 +662,8 @@ bool ElementAnimation::InternalAddKey(float time, const Property& in_property, E if (!Any(in_property.unit & valid_units)) { - Log::Message(Log::LT_WARNING, "Property value '%s' is not a valid target for interpolation.", in_property.ToString().c_str()); + const char* property_type = (in_property.unit == Unit::BOXSHADOWLIST ? "Box shadows do not" : "Property value does not"); + Log::Message(Log::LT_WARNING, "%s support animations or transitions. Value: %s", property_type, in_property.ToString().c_str()); return false; }