gui: Fix another zero-decal issue

Signed-off-by: David Shah <davey1576@gmail.com>
This commit is contained in:
David Shah 2018-09-25 13:55:54 +01:00
parent 1d782870dc
commit 09ddcb67d3

View File

@ -846,7 +846,9 @@ void DesignWidget::onHoverPropertyChanged(QtBrowserItem *item)
if (value!=IdString()) {
auto node = treeModel->nodeForIdType(type, value);
if (node) {
Q_EMIT hover(getDecals((*node)->type(), (*node)->id()).at(0));
std::vector<DecalXY> decals = getDecals((*node)->type(), (*node)->id());
if (decals.size()>0)
Q_EMIT hover(decals.at(0));
return;
}
}