kopia lustrzana https://github.com/OpenDroneMap/WebODM
Fix crop setting
rodzic
cacfeccc05
commit
47a1a26cf1
|
@ -360,7 +360,7 @@ class EditTaskForm extends React.Component {
|
|||
const poly = this.props.getCropPolygon();
|
||||
if (poly && optionNames['crop'] && optionNames['boundary']){
|
||||
let cropOpt = optsCopy.find(opt => opt.name === 'crop');
|
||||
if (!cropOpt) optsCopy.push({name: 'crop', value: 0});
|
||||
if (!cropOpt) optsCopy.push({name: 'crop', value: "0"});
|
||||
|
||||
let boundaryOpt = optsCopy.find(opt => opt.name === 'boundary');
|
||||
if (!boundaryOpt) optsCopy.push({name: 'boundary', value: JSON.stringify(poly)});
|
||||
|
|
Ładowanie…
Reference in New Issue