From 7698293631edf60bfbde2dbc92188f6e776b27d5 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Tue, 23 Jan 2018 10:07:09 -0500 Subject: [PATCH] Hide textured model when necessary, processing node options fix --- app/static/app/js/ModelView.jsx | 7 ++++++- app/static/app/js/components/ProcessingNodeOption.jsx | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/app/static/app/js/ModelView.jsx b/app/static/app/js/ModelView.jsx index d42ead0c..3153b6be 100644 --- a/app/static/app/js/ModelView.jsx +++ b/app/static/app/js/ModelView.jsx @@ -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 (
@@ -207,7 +212,7 @@ class ModelView extends React.Component {
-
+