+ if (aSize == 1) {
+ auto anObjectAttr = theSelectionList->value(0);
+ if (anObjectAttr.get()) {
+ FeaturePtr aFeature = anObjectAttr->contextFeature();
+ if (aFeature.get() && aFeature->results().size() == 1) {
+ theTextureSource = aFeature->firstResult();
+ }
+ else {
+ if (!aFeature.get()) {
+ auto aResult = anObjectAttr->context();
+ if (aResult.get()) {
+ theTextureSource = aResult;
+ }
+ }
+ }
+ }
+ }