diff --git a/lib/app/include/app/component/render/proxy_molecule.hpp b/lib/app/include/app/component/render/proxy_molecule.hpp index 9c2e610fa..c3080c29b 100644 --- a/lib/app/include/app/component/render/proxy_molecule.hpp +++ b/lib/app/include/app/component/render/proxy_molecule.hpp @@ -20,9 +20,9 @@ namespace VTX::App::Component::Render private: std::vector generateAtomColors( const VTX::Core::Struct::Molecule & p_molStruct ) const; std::vector generateAtomRadii( const VTX::Core::Struct::Molecule & p_molStruct ) const; - std::vector generateAtomUids( const Component::Chemistry::Molecule & p_molStruct ) const; + std::vector generateAtomUids( const Component::Chemistry::Molecule & p_molComp ) const; std::vector generateResidueColors( const VTX::Core::Struct::Molecule & p_molStruct ) const; - std::vector generateResidueUids( const Component::Chemistry::Molecule & p_molStruct ) const; + std::vector generateResidueUids( const Component::Chemistry::Molecule & p_molComp ) const; std::unique_ptr _proxyPtr = nullptr; }; diff --git a/lib/app/src/app/component/render/proxy_molecule.cpp b/lib/app/src/app/component/render/proxy_molecule.cpp index 3eb54ea8a..ed070b8ea 100644 --- a/lib/app/src/app/component/render/proxy_molecule.cpp +++ b/lib/app/src/app/component/render/proxy_molecule.cpp @@ -20,9 +20,9 @@ namespace VTX::App::Component::Render const std::vector atomColors = generateAtomColors( molStruct ); const std::vector atomRadii = generateAtomRadii( molStruct ); - const std::vector atomIds = generateAtomUids( molStruct ); + const std::vector atomIds = generateAtomUids( molComp ); const std::vector residueColors = generateResidueColors( molStruct ); - const std::vector residueIds = generateResidueUids( molStruct ); + const std::vector residueIds = generateResidueUids( molComp ); _proxyPtr = std::make_unique( VTX::Renderer::Proxy::Molecule { &transformComp.getTransform().get(), diff --git a/lib/app/src/app/entity/scene/molecule_entity.cpp b/lib/app/src/app/entity/scene/molecule_entity.cpp index b4b942adf..8e6de0eb8 100644 --- a/lib/app/src/app/entity/scene/molecule_entity.cpp +++ b/lib/app/src/app/entity/scene/molecule_entity.cpp @@ -47,6 +47,5 @@ namespace VTX::App::Entity::Scene ) { SceneItemEntityBuilder::postSetup( p_entity, p_extraData ); - RENDERER().addProxyMolecule( MAIN_REGISTRY().getComponent( p_entity ) ); } } // namespace VTX::App::Entity::Scene