Skip to content

Commit 4cadaf6

Browse files
committed
Move variables to if
1 parent ba816fd commit 4cadaf6

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

DVRTransferFunction/src/TransferFunctionPlugin.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,11 @@ TransferFunctionPlugin::TransferFunctionPlugin(const PluginFactory* factory) :
8888
return dropRegions;
8989

9090
const auto dataset = datasetsMimeData->getDatasets().first();
91-
const auto datasetGuiName = dataset->text();
92-
const auto datasetId = dataset->getId();
93-
const auto dataType = dataset->getDataType();
9491

9592
// Points dataset is about to be dropped
96-
if (dataType == PointType) {
93+
if (dataset->getDataType() == PointType) {
94+
const auto datasetGuiName = dataset->text();
95+
const auto datasetId = dataset->getId();
9796

9897
// Get points dataset from the core
9998
auto candidateDataset = mv::data().getDataset<Points>(datasetId);

0 commit comments

Comments
 (0)