[core] fix Node.isComputed property

This commit is contained in:
Fabien Castan 2020-06-23 14:25:50 +02:00
parent 451f5d65c0
commit c214b48aa5
2 changed files with 2 additions and 2 deletions

View file

@ -777,7 +777,7 @@ class BaseNode(BaseObject):
size = Property(int, getSize, notify=sizeChanged) size = Property(int, getSize, notify=sizeChanged)
globalStatusChanged = Signal() globalStatusChanged = Signal()
globalStatus = Property(str, lambda self: self.getGlobalStatus().name, notify=globalStatusChanged) globalStatus = Property(str, lambda self: self.getGlobalStatus().name, notify=globalStatusChanged)
isComputed = Property(bool, lambda self: self._isComputed(), notify=globalStatusChanged) isComputed = Property(bool, _isComputed, notify=globalStatusChanged)
class Node(BaseNode): class Node(BaseNode):

View file

@ -386,7 +386,7 @@ FocusScope {
property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked property bool isUsed: displayFeatures.checked || displaySfmStatsView.checked || displaySfmDataGlobalStats.checked
property var activeNode: _reconstruction.sfm property var activeNode: _reconstruction.sfm
property bool isComputed: activeNode && activeNode.isComputed() property bool isComputed: activeNode && activeNode.isComputed
active: false active: false
// It takes time to load tracks, so keep them looaded, if we may use it again. // It takes time to load tracks, so keep them looaded, if we may use it again.