Browse Source

Improve warning message when trying to animate box shadows, see #688

Michael Ragazzon 1 year ago
parent
commit
49d41f3e83
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Source/Core/ElementAnimation.cpp

+ 2 - 1
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;
 	}