Merge pull request #348 from alicevision/dev_3D_alembicVisibility

Viewer3D: let QmlAlembic manage entities visibility
This commit is contained in:
Fabien Castan 2019-01-11 22:41:05 +01:00 committed by GitHub
commit c31b7f8e43
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -93,12 +93,8 @@ import Utils 1.0
if(obj.status === SceneLoader.Ready) {
for(var i = 0; i < obj.pointClouds.length; ++i) {
vertexCount += Scene3DHelper.vertexCount(obj.pointClouds[i]);
obj.pointClouds[i].enabled = Qt.binding(function() { return Viewer3DSettings.pointSize > 0; });
}
cameraCount = obj.spawnCameraSelectors();
for(var i = 0; i < obj.cameras.length; ++i) {
obj.cameras[i].enabled = Qt.binding(function() { return Viewer3DSettings.cameraScale > 0; });
}
}
root.status = obj.status;
})