diff --git a/Mapper.cpp b/Mapper.cpp index 7964cf0..b1abb08 100644 --- a/Mapper.cpp +++ b/Mapper.cpp @@ -951,7 +951,7 @@ void MeshTextureMapper::setValue(QtProperty* property, const QVariant& value) if (property == _meshItem) { QSharedPointer outputMesh = qSharedPointerCast(_mapping->getShape()); - QSharedPointer inputMesh = qSharedPointerCast(textureMapping.toStrongRef()->getShape()); + QSharedPointer inputMesh = qSharedPointerCast(textureMapping.toStrongRef()->getInputShape()); QSize size = (static_cast(property))->value().toSize(); if (outputMesh->nColumns() != size.width() || outputMesh->nRows() != size.height() || inputMesh->nColumns() != size.width() || inputMesh->nRows() != size.height())