named property example

This commit is contained in:
ZappoMan 2018-01-18 15:08:13 -08:00
parent 612f9621b4
commit 25f5eb6b4f
2 changed files with 4 additions and 1 deletions

View file

@ -299,6 +299,9 @@ void EntityEditFilters::scriptRequestFinished(EntityItemID entityID) {
filterData.wantsZoneProperties = !stringValue.isEmpty(); filterData.wantsZoneProperties = !stringValue.isEmpty();
if (filterData.wantsZoneProperties) { if (filterData.wantsZoneProperties) {
EntityPropertyFlagsFromScriptValue(wantsZonePropertiesValue, filterData.includedZoneProperties); EntityPropertyFlagsFromScriptValue(wantsZonePropertiesValue, filterData.includedZoneProperties);
if (stringValue == "boundingBox") {
filterData.wantsZoneBoundingBox = true;
}
} }
} else if (wantsZonePropertiesValue.isArray()) { } else if (wantsZonePropertiesValue.isArray()) {
auto length = wantsZonePropertiesValue.property("length").toInteger(); auto length = wantsZonePropertiesValue.property("length").toInteger();

View file

@ -41,5 +41,5 @@ function filter(properties, type, originalProperties) {
return properties; return properties;
} }
filter.wantsOriginalProperties = true; filter.wantsOriginalProperties = "position";
filter; filter;