diff --git a/Components/Overlay/include/OgreOverlay.i b/Components/Overlay/include/OgreOverlay.i index e82cf452aa0..135c1df9e5c 100644 --- a/Components/Overlay/include/OgreOverlay.i +++ b/Components/Overlay/include/OgreOverlay.i @@ -76,6 +76,18 @@ 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); %include "OgreOverlaySystem.h"