File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,8 @@ import Utils 1.0
100100 ' pointSize' : Qt .binding (function () { return 0.01 * Viewer3DSettings .pointSize }),
101101 ' locatorScale' : Qt .binding (function () { return Viewer3DSettings .cameraScale }),
102102 ' cameraPickingEnabled' : Qt .binding (function () { return root .enabled }),
103- ' resectionId' : Qt .binding (function () { return Viewer3DSettings .resectionId })
103+ ' resectionId' : Qt .binding (function () { return Viewer3DSettings .resectionId }),
104+ ' displayResections' : Qt .binding (function () { return Viewer3DSettings .displayResectionIds })
104105 });
105106
106107 obj .statusChanged .connect (function () {
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ SfmDataEntity {
4545 for (var i = 0 ; i < root .cameras .length ; i++ ) {
4646 var cam = root .cameras [i]
4747 var resectionId = cam .resectionId
48+ // 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
4849 if (resectionId === undefined || resectionId === 4294967295 )
4950 continue
5051 if (resectionId > maxResectionId)
@@ -60,6 +61,7 @@ SfmDataEntity {
6061 for (var i = 0 ; i < root .cameras .length ; i++ ) {
6162 var cam = root .cameras [i]
6263 var resectionId = cam .resectionId
64+ // 4294967295 = UINT_MAX, which might occur if the value is undefined on the C++ side
6365 if (resectionId === undefined || resectionId === 4294967295 )
6466 continue
6567 arr[resectionId] = arr[resectionId] + 1
You can’t perform that action at this time.
0 commit comments