Skip to content

Commit 9c683a0

Browse files
committed
Fix missing photosketches after editing geometry
1 parent 684cd34 commit 9c683a0

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

app/qml/form/editors/MMFormPhotoEditor.qml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,12 @@ MMFormPhotoViewer {
9393
photoUrl: internal.tempSketchedImageSource ? internal.tempSketchedImageSource : internal.resolvedImageSource
9494
hasCameraCapability: __androidUtils.isAndroid || __iosUtils.isIos
9595

96-
on_FieldValueChanged: internal.setImageSource()
96+
on_FieldValueChanged: function (){
97+
internal.setImageSource()
98+
// after editing geometry this needs to be triggered to populate internal.tempSketchedImageSource for components,
99+
// which were not in view
100+
sketchingController?.prepareController()
101+
}
97102
on_FieldValueIsNullChanged: internal.setImageSource()
98103

99104
onCapturePhotoClicked: internal.capturePhoto()

0 commit comments

Comments
 (0)