mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-04 09:18:27 +02:00
[ui] fix border case with scene compability
The metadata is in an invalid state and the value is of type Property instead of type String
This commit is contained in:
parent
cfc07fde2f
commit
c173caf39d
1 changed files with 5 additions and 1 deletions
|
@ -217,7 +217,11 @@ class ViewpointWrapper(QObject):
|
|||
self._metadata = {}
|
||||
else:
|
||||
self._initialIntrinsics = self._reconstruction.getIntrinsic(self._viewpoint)
|
||||
self._metadata = json.loads(self._viewpoint.metadata.value) if self._viewpoint.metadata.value else None
|
||||
try:
|
||||
self._metadata = json.loads(self._viewpoint.metadata.value) if self._viewpoint.metadata.value else None
|
||||
except Exception as e:
|
||||
logging.warning("Failed to parse Viewpoint metadata: '{}', '{}'".format(str(e), str(self._viewpoint.metadata.value)))
|
||||
self._metadata = {}
|
||||
if not self._metadata:
|
||||
self._metadata = {}
|
||||
self.initialParamsChanged.emit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue