Skip to content

Commit

Permalink
[core] register rw on AttribArrayGeometry for SurfaceMeshComponent.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlyr committed Apr 7, 2023
1 parent 36c5b37 commit f5df674
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Engine/Scene/GeometryComponent.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,12 @@ void SurfaceMeshComponent<CoreMeshType>::setupIO( const std::string& id ) {

cm->registerOutput<CoreMeshType>( getEntity(), this, id, cbOut );
cm->registerReadWrite<CoreMeshType>( getEntity(), this, id, cbRw );
if ( std::is_convertible<CoreMeshType*, Core::Geometry::AttribArrayGeometry*>() &&
!std::is_same<CoreMeshType, Core::Geometry::AttribArrayGeometry>() ) {

cm->registerOutput<Core::Geometry::AttribArrayGeometry>( getEntity(), this, id, cbOut );
cm->registerReadWrite<Core::Geometry::AttribArrayGeometry>( getEntity(), this, id, cbRw );
}

base::setupIO( id );
}
Expand Down

0 comments on commit f5df674

Please sign in to comment.