kopia lustrzana https://github.com/OpenDroneMap/WebODM
Hide textured model when necessary, processing node options fix
rodzic
71905322db
commit
7698293631
|
@ -57,6 +57,10 @@ class ModelView extends React.Component {
|
|||
return this.props.task.available_assets.indexOf('orthophoto.tif') !== -1;
|
||||
}
|
||||
|
||||
hasTexturedModel(){
|
||||
return this.props.task.available_assets.indexOf('textured_model.zip') !== -1;
|
||||
}
|
||||
|
||||
objFilePath(){
|
||||
let file = this.hasGeoreferencedAssets() ?
|
||||
'odm_textured_model_geo.obj' :
|
||||
|
@ -180,6 +184,7 @@ class ModelView extends React.Component {
|
|||
// React render
|
||||
render(){
|
||||
const showSwitchModeButton = this.hasGeoreferencedAssets();
|
||||
const showTextureModelButton = this.hasTexturedModel();
|
||||
const hideWithTexturedModel = {display: this.state.showTexturedModel ? "none" : "block"};
|
||||
|
||||
return (<div className="model-view">
|
||||
|
@ -207,7 +212,7 @@ class ModelView extends React.Component {
|
|||
</span>
|
||||
|
||||
<div className="action-buttons">
|
||||
<div className="textured-model-chkbox-container">
|
||||
<div className={"textured-model-chkbox-container " + (!showTextureModelButton ? "hide" : "")}>
|
||||
<label><input
|
||||
type="checkbox"
|
||||
onChange={this.toggleTexturedModel}
|
||||
|
|
|
@ -56,7 +56,7 @@ class ProcessingNodeOption extends React.Component {
|
|||
}
|
||||
|
||||
handleSelectChange(e){
|
||||
this.setState({value: this.state.value !== this.props.defaultValue ? e.target.value : ""});
|
||||
this.setState({value: e.target.value !== this.props.defaultValue ? e.target.value : ""});
|
||||
}
|
||||
|
||||
handleCheckboxChange(e){
|
||||
|
|
Ładowanie…
Reference in New Issue