mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-04 02:41:19 +00:00
Merge branch 'you-can-only-grow-up-to-be-so-big' into 'master'
FIX(CS): Limit scale for references to TES3 values (Close #7898 ) Closes #7898 See merge request OpenMW/openmw!3981
This commit is contained in:
commit
58632218fb
@ -162,6 +162,7 @@
|
||||
Bug #7859: AutoCalc flag is not used to calculate potion value
|
||||
Bug #7872: Region sounds use wrong odds
|
||||
Bug #7887: Editor: Mismatched reported script data size and actual data size causes a crash during save
|
||||
Bug #7898: Editor: Invalid reference scales are allowed
|
||||
Feature #2566: Handle NAM9 records for manual cell references
|
||||
Feature #3537: Shader-based water ripples
|
||||
Feature #5173: Support for NiFogProperty
|
||||
|
@ -971,7 +971,7 @@ namespace CSMWorld
|
||||
void set(Record<ESXRecordT>& record, const QVariant& data) override
|
||||
{
|
||||
ESXRecordT record2 = record.get();
|
||||
record2.mScale = data.toFloat();
|
||||
record2.mScale = std::clamp(data.toFloat(), 0.5f, 2.0f);
|
||||
record.setModified(record2);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user