Skip to content

Commit 2d80d4d

Browse files
committed
[ObservationsEntity] fix type and casting
1 parent b52a4ee commit 2d80d4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/qmlAlembic/AlembicEntity.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ void AlembicEntity::updateObservations() const
9797
{
9898
for (auto* entity : _observations)
9999
{
100-
entity->update(_viewId, _viewer2DInfo);
100+
entity->update(static_cast<aliceVision::IndexT>(_viewId), _viewer2DInfo);
101101
if (entity->isEnabled() != _displayObservations)
102102
entity->setEnabled(_displayObservations);
103103
}
@@ -289,7 +289,7 @@ void AlembicEntity::visitAbcObject(const Alembic::Abc::IObject& iObj, QEntity* p
289289

290290
std::vector<BaseAlembicObject*> entities = createEntities(iObj);
291291

292-
for (int j = 0; j < entities.size(); j++)
292+
for (size_t j = 0; j < entities.size(); j++)
293293
{
294294
auto entity = entities[j];
295295
entity->setObjectName((iObj.getName() + std::to_string(j)).c_str());

src/qmlAlembic/AlembicEntity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class AlembicEntity : public Qt3DCore::QEntity
4949
Q_SLOT const QUrl& source() const { return _source; }
5050
Q_SLOT float pointSize() const { return _pointSize; }
5151
Q_SLOT float locatorScale() const { return _locatorScale; }
52-
Q_SLOT float viewId() const { return _viewId; }
52+
Q_SLOT int viewId() const { return _viewId; }
5353
Q_SLOT bool displayObservations() const { return _displayObservations; }
5454
Q_SLOT QVariantMap viewer2DInfo() const { return _viewer2DInfo; }
5555
Q_SLOT void setSource(const QUrl& source);

0 commit comments

Comments
 (0)