Fixed LodRuleBehavior using wrong loop index (#5915)
* Fixed LodRuleBehavior using wrong loop index Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Add unit test for LOD auto-add crash Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Fix macro usage Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com> * Fix include Signed-off-by: amzn-mike <80125227+amzn-mike@users.noreply.github.com>
This commit is contained in:
@@ -185,7 +185,7 @@ namespace AZ
|
||||
if (lodCount > 0)
|
||||
{
|
||||
rule->AddLod();
|
||||
selection.CopyTo(rule->GetNodeSelectionList(index));
|
||||
selection.CopyTo(rule->GetNodeSelectionList(lodLevel));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user