mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 01:08:26 +02:00
[ui] Viewer3D: fix Alembic visibility issues
Binding the "enabled" property of AlembicLoader's ObjectPicker to the parent MediaLoader's own "enabled" property caused invalid state where the loaded AlembicEntity was partially visible when toggling object visibility (since Qt 5.13). In order to disable camera picking when AlembicEntity is disable, scale the camSelector component to 0.
This commit is contained in:
parent
696d8d5340
commit
606cfc39c2
3 changed files with 10 additions and 6 deletions
|
@ -80,14 +80,13 @@ import Utils 1.0
|
|||
id: abcLoaderEntityComponent
|
||||
MediaLoaderEntity {
|
||||
id: abcLoaderEntity
|
||||
enabled: root.enabled
|
||||
Component.onCompleted: {
|
||||
|
||||
var obj = Viewer3DSettings.abcLoaderComp.createObject(abcLoaderEntity, {
|
||||
'source': source,
|
||||
'pointSize': Qt.binding(function() { return 0.01 * Viewer3DSettings.pointSize }),
|
||||
'locatorScale': Qt.binding(function() { return Viewer3DSettings.cameraScale }),
|
||||
'enabled': Qt.binding(function() { return root.enabled })
|
||||
'cameraPickingEnabled': Qt.binding(function() { return root.enabled })
|
||||
});
|
||||
|
||||
obj.statusChanged.connect(function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue