Index: Source/build/scripts/templates/EventFactory.cpp.tmpl |
diff --git a/Source/build/scripts/templates/EventFactory.cpp.tmpl b/Source/build/scripts/templates/EventFactory.cpp.tmpl |
index c4cfdd415096a8354a5f4d536be18310ed3e0a2c..2b14b41a19be06ccad2a270c5b88e52eb1ba36ff 100644 |
--- a/Source/build/scripts/templates/EventFactory.cpp.tmpl |
+++ b/Source/build/scripts/templates/EventFactory.cpp.tmpl |
@@ -13,7 +13,11 @@ PassRefPtrWillBeRawPtr<{{namespace}}> {{namespace}}Factory::create(const String& |
{ |
{% for event in events %} |
{% filter enable_conditional(event.Conditional) %} |
+ {% if event|script_name|case_insensitive_matching %} |
+ if (equalIgnoringCase(type, "{{event|script_name}}"){% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) |
+ {% else %} |
if (type == "{{event|script_name}}"{% if event.RuntimeEnabled %} && RuntimeEnabledFeatures::{{event.RuntimeEnabled|lower_first}}(){% endif %}) |
+ {% endif %} |
return {{event|cpp_name}}::create(); |
{% endfilter %} |
{% endfor %} |