From 36f462b7ac5145a6377ff43db965adfe85f9c72a Mon Sep 17 00:00:00 2001 From: fegorsch Date: Wed, 5 Feb 2025 14:17:07 +0100 Subject: [PATCH] Update Components/Overlay/include/OgreOverlay.i Co-authored-by: Pavel Rojtberg --- Components/Overlay/include/OgreOverlay.i | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Components/Overlay/include/OgreOverlay.i b/Components/Overlay/include/OgreOverlay.i index deec076e06c..9710a515b3c 100644 --- a/Components/Overlay/include/OgreOverlay.i +++ b/Components/Overlay/include/OgreOverlay.i @@ -76,6 +76,17 @@ SHARED_PTR(OverlayContainer); #endif %ignore Ogre::OverlayManager::getTemplateIterator; %ignore Ogre::OverlayManager::getOverlayIterator; +#ifdef SWIGPYTHON +%{ + // this is a workaround for the following map + namespace swig { + template<> struct traits { + typedef pointer_category category; + static const char* type_name() { return "Ogre::OverlayElement"; } + }; + } +%} +#endif %template(OverlayElementMap) std::map; %include "OgreOverlayManager.h" SHARED_PTR(OverlaySystem);