Skip to content

Commit

Permalink
Increased tile probability precision to three decimals
Browse files Browse the repository at this point in the history
With the default value being 1, even a probability of 0.01 can be a bit
too common.
  • Loading branch information
bjorn committed May 19, 2015
1 parent 6bb2460 commit f297884
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/tiled/propertybrowser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -529,11 +529,11 @@ void PropertyBrowser::addTileProperties()
QtProperty *groupProperty = mGroupManager->addProperty(tr("Tile"));
createProperty(IdProperty, QVariant::Int, tr("ID"), groupProperty)->setEnabled(false);

QtProperty *probabilityProperty = createProperty(TileProbabilityProperty,
QVariant::Double,
tr("Probability"),
groupProperty);

QtVariantProperty *probabilityProperty = createProperty(TileProbabilityProperty,
QVariant::Double,
tr("Probability"),
groupProperty);
probabilityProperty->setAttribute(QLatin1String("decimals"), 3);
probabilityProperty->setToolTip(tr("Relative chance this tile will be "
"picked while painting terrain"));

Expand Down

0 comments on commit f297884

Please sign in to comment.