Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev-ndy' into dev-sge
Browse files Browse the repository at this point in the history
  • Loading branch information
sguionni committed Mar 13, 2024
2 parents a105b53 + c6ab637 commit dcb36d5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions lib/app/include/app/component/render/proxy_molecule.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ namespace VTX::App::Component::Render
private:
std::vector<uchar> generateAtomColors( const VTX::Core::Struct::Molecule & p_molStruct ) const;
std::vector<float> generateAtomRadii( const VTX::Core::Struct::Molecule & p_molStruct ) const;
std::vector<uint> generateAtomUids( const Component::Chemistry::Molecule & p_molStruct ) const;
std::vector<uint> generateAtomUids( const Component::Chemistry::Molecule & p_molComp ) const;
std::vector<uchar> generateResidueColors( const VTX::Core::Struct::Molecule & p_molStruct ) const;
std::vector<uint> generateResidueUids( const Component::Chemistry::Molecule & p_molStruct ) const;
std::vector<uint> generateResidueUids( const Component::Chemistry::Molecule & p_molComp ) const;

std::unique_ptr<VTX::Renderer::Proxy::Molecule> _proxyPtr = nullptr;
};
Expand Down
4 changes: 2 additions & 2 deletions lib/app/src/app/component/render/proxy_molecule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ namespace VTX::App::Component::Render

const std::vector<uchar> atomColors = generateAtomColors( molStruct );
const std::vector<float> atomRadii = generateAtomRadii( molStruct );
const std::vector<uint> atomIds = generateAtomUids( molStruct );
const std::vector<uint> atomIds = generateAtomUids( molComp );
const std::vector<uchar> residueColors = generateResidueColors( molStruct );
const std::vector<uint> residueIds = generateResidueUids( molStruct );
const std::vector<uint> residueIds = generateResidueUids( molComp );

_proxyPtr = std::make_unique<VTX::Renderer::Proxy::Molecule>( VTX::Renderer::Proxy::Molecule {
&transformComp.getTransform().get(),
Expand Down
1 change: 0 additions & 1 deletion lib/app/src/app/entity/scene/molecule_entity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,5 @@ namespace VTX::App::Entity::Scene
)
{
SceneItemEntityBuilder::postSetup( p_entity, p_extraData );
RENDERER().addProxyMolecule( MAIN_REGISTRY().getComponent<Renderer::Proxy::Molecule>( p_entity ) );
}
} // namespace VTX::App::Entity::Scene

0 comments on commit dcb36d5

Please sign in to comment.