Bug fix: update of control point positions in property browser goes both ways.

This commit is contained in:
Tats
2015-07-18 13:12:56 -06:00
parent 6e7fed17eb
commit ffe6ff76b8
5 changed files with 21 additions and 3 deletions
+9
View File
@@ -692,6 +692,14 @@ void Mapper::setValue(QtProperty* property, const QVariant& value)
}
}
void Mapper::updateShape(MShape* shape)
{
if (shape == _mapping->getShape().data())
{
_updateShapeProperty(_outputItem, shape);
}
}
void Mapper::_buildShapeProperty(QtProperty* shapeItem, MShape* shape)
{
for (int i=0; i<shape->nVertices(); i++)
@@ -731,6 +739,7 @@ ColorMapper::ColorMapper(Mapping::ptr mapping)
Q_CHECK_PTR(color);
}
//MeshColorMapper::MeshColorMapper(Mapping::ptr mapping)
// : ColorMapper(mapping) {
// // Add mesh sub property.