Adds check to make sure that there are not too many samples created. (#5789)
* Adds check to make sure that there are not too many samples created. Signed-off-by: John Jones-Steele <82226755+jjjoness@users.noreply.github.com> * Changes made from PR Signed-off-by: John Jones-Steele <82226755+jjjoness@users.noreply.github.com> * Changes made from PR 2 Signed-off-by: John Jones-Steele <82226755+jjjoness@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
7749f3c4a7
commit
4ad35f424e
+1
-4
@@ -150,10 +150,7 @@ namespace AzToolsFramework
|
||||
TypeBeingHandled actualValue = instance;
|
||||
for (int idx = 0; idx < m_common.GetElementCount(); ++idx)
|
||||
{
|
||||
if (elements[idx]->wasValueEditedByUser())
|
||||
{
|
||||
actualValue.SetElement(idx, static_cast<float>(elements[idx]->getValue()));
|
||||
}
|
||||
actualValue.SetElement(idx, static_cast<float>(elements[idx]->getValue()));
|
||||
}
|
||||
instance = actualValue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user