From 818a4f1cc8e6367e4d108bf5b1ad5d9eb3815ac8 Mon Sep 17 00:00:00 2001 From: marioalexis Date: Thu, 10 Aug 2023 11:43:06 -0300 Subject: [PATCH] App: Initialize StringHasher and StringID classes --- src/App/Application.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/App/Application.cpp b/src/App/Application.cpp index a85b916982..3b7aa459f0 100644 --- a/src/App/Application.cpp +++ b/src/App/Application.cpp @@ -114,6 +114,8 @@ #include "PropertyFile.h" #include "PropertyLinks.h" #include "PropertyPythonObject.h" +#include "StringHasherPy.h" +#include "StringIDPy.h" #include "TextDocument.h" #include "Transactions.h" #include "VRMLObject.h" @@ -311,6 +313,9 @@ void Application::setupPythonTypes() Base::Interpreter().addType(&App::MaterialPy::Type, pAppModule, "Material"); Base::Interpreter().addType(&App::MetadataPy::Type, pAppModule, "Metadata"); + Base::Interpreter().addType(&App::StringHasherPy::Type, pAppModule, "StringHasher"); + Base::Interpreter().addType(&App::StringIDPy::Type, pAppModule, "StringID"); + // Add document types Base::Interpreter().addType(&App::PropertyContainerPy::Type, pAppModule, "PropertyContainer"); Base::Interpreter().addType(&App::ExtensionContainerPy::Type, pAppModule, "ExtensionContainer"); @@ -2109,6 +2114,10 @@ void Application::initTypes() App::RangeExpression ::init(); App::PyObjectExpression ::init(); + // Topological naming classes + App::StringHasher ::init(); + App::StringID ::init(); + // register transaction type new App::TransactionProducer (DocumentObject::getClassTypeId());