From 9cd03baab3ae9ad2a2c71e41a0e745d36f0d8b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 18 May 2023 12:44:14 +0200 Subject: [PATCH] Trade: allow calling setMeshAttributeName() on single-mesh converters. It's useful there as well, for example the StanfordSceneConverter implements just single-mesh conversion but is capable of having the attributes named in a custom way (although it's not implemented at the moment). Or a mesh optimization plugin can have specialized behavior for custom attributes but only if it knows what they are. --- src/Magnum/Trade/AbstractSceneConverter.cpp | 13 +++++-- src/Magnum/Trade/AbstractSceneConverter.h | 16 +++++---- .../Trade/Test/AbstractSceneConverterTest.cpp | 36 ++++++++++++++----- 3 files changed, 49 insertions(+), 16 deletions(-) diff --git a/src/Magnum/Trade/AbstractSceneConverter.cpp b/src/Magnum/Trade/AbstractSceneConverter.cpp index b363312a0..fe968e56d 100644 --- a/src/Magnum/Trade/AbstractSceneConverter.cpp +++ b/src/Magnum/Trade/AbstractSceneConverter.cpp @@ -855,9 +855,18 @@ bool AbstractSceneConverter::doAdd(UnsignedInt, const Containers::Iterable