From 9b6f49e9ccc69974876c72aa8e57fa53ac060100 Mon Sep 17 00:00:00 2001 From: Tats Date: Thu, 30 Jul 2015 19:31:31 -0400 Subject: [PATCH] Fixed bug #128: Crash on changing mesh dimension. --- Mapper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())