B2017-237 Fixed logic to find prevvious sup info step. Used IsCautionPart rather than IsCaution, since BGE has mixed cautuions and notes, The logic was runiing into an infiinite loop since the second note part was a caution, and this was causing the code to loop for the parents notes.
This commit is contained in:
parent
672cdf7ef4
commit
0be8261cc4
@ -3441,7 +3441,8 @@ namespace Volian.Controls.Library
|
||||
private EditItem FindFirstChildWithSupInfo(ItemInfo itm)
|
||||
{
|
||||
// If on a caution, see if there are any notes below me on the screen that have supinfo.
|
||||
if (itm.IsCaution && (itm.ActiveParent as ItemInfo).Notes != null && (itm.ActiveParent as ItemInfo).Notes.Count > 0)
|
||||
// B2017-237 Should use isCautionPart rather than IsCaution for BGE Mixed Cautions and Notes
|
||||
if (itm.IsCautionPart && (itm.ActiveParent as ItemInfo).Notes != null && (itm.ActiveParent as ItemInfo).Notes.Count > 0)
|
||||
{
|
||||
foreach (ItemInfo inote in (itm.ActiveParent as ItemInfo).Notes)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user