Skip to content

Commit

Permalink
Improve warning message when trying to animate box shadows, see #688
Browse files Browse the repository at this point in the history
  • Loading branch information
mikke89 committed Oct 13, 2024
1 parent 12d49ac commit 49d41f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Core/ElementAnimation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 49d41f3

Please sign in to comment.