mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 21:17:01 +02:00
named property example
This commit is contained in:
parent
612f9621b4
commit
25f5eb6b4f
2 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||||
|
|
|
@ -41,5 +41,5 @@ function filter(properties, type, originalProperties) {
|
||||||
|
|
||||||
return properties;
|
return properties;
|
||||||
}
|
}
|
||||||
filter.wantsOriginalProperties = true;
|
filter.wantsOriginalProperties = "position";
|
||||||
filter;
|
filter;
|
Loading…
Reference in a new issue