mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 03:03:35 +02:00
Removed ...ALTITUDE_MODE from combo.
This commit is contained in:
parent
3070778b39
commit
ea6b9ed28e
4 changed files with 3 additions and 7 deletions
|
@ -337,9 +337,8 @@ void ZoneEntityRenderer::updateHazeFromEntity(const TypedEntityPointer& entity)
|
|||
const auto& haze = editHaze();
|
||||
|
||||
const uint32_t hazeMode = entity->getHazeMode();
|
||||
const bool isHazeActive = ((hazeMode == HAZE_MODE_RANGE_ONLY) || (hazeMode == HAZE_MODE_RANGE_ALTITUDE));
|
||||
haze->setHazeActive(isHazeActive);
|
||||
haze->setAltitudeBased(hazeMode == HAZE_MODE_RANGE_ALTITUDE);
|
||||
haze->setHazeActive(hazeMode == HAZE_MODE_RANGE_ONLY);
|
||||
//// haze->setAltitudeBased(hazeMode == HAZE_MODE_RANGE_ALTITUDE);
|
||||
|
||||
haze->setHazeRangeFactor(model::convertHazeRangeToHazeRangeFactor(_hazeProperties.getHazeRange()));
|
||||
xColor hazeBlendInColor = _hazeProperties.getHazeBlendInColor();
|
||||
|
|
|
@ -224,8 +224,7 @@ using HazePair = std::pair<const HazeMode, const QString>;
|
|||
const std::array<HazePair, HAZE_MODE_ITEM_COUNT> HAZE_MODES = { {
|
||||
HazePair{ HAZE_MODE_INHERIT,{ "inherit" } },
|
||||
HazePair{ HAZE_MODE_DISABLED,{ "disabled" } },
|
||||
HazePair{ HAZE_MODE_RANGE_ONLY,{ "range only" } },
|
||||
HazePair{ HAZE_MODE_RANGE_ALTITUDE,{ "range+altitude" } }
|
||||
HazePair{ HAZE_MODE_RANGE_ONLY,{ "range only" } }
|
||||
} };
|
||||
|
||||
QString EntityItemProperties::getHazeModeAsString() const {
|
||||
|
|
|
@ -16,7 +16,6 @@ enum HazeMode {
|
|||
HAZE_MODE_INHERIT,
|
||||
HAZE_MODE_DISABLED,
|
||||
HAZE_MODE_RANGE_ONLY,
|
||||
HAZE_MODE_RANGE_ALTITUDE,
|
||||
|
||||
HAZE_MODE_ITEM_COUNT
|
||||
};
|
||||
|
|
|
@ -553,7 +553,6 @@
|
|||
<option value="inherit">Inherit</option>
|
||||
<option value="disabled">Disabled</option>
|
||||
<option value="range only">Range Only</option>
|
||||
<option value="range+altitude">Range+Altitude</option>
|
||||
</select>
|
||||
</div>
|
||||
<fieldset class="zone-group zone-section haze-section property gen fstuple">
|
||||
|
|
Loading…
Reference in a new issue