Prevents infinite loop if a camera takes a picture of an atom with null in either it's overlays or underlays.

This commit is contained in:
mwerezak
2014-12-09 17:12:26 -05:00
parent 62b02025c1
commit 0a6d1f8c81

View File

@@ -699,7 +699,7 @@ proc // Creates a single icon from a given /atom or /image. Only the first argu
while(TRUE)
if(curIndex<=process.len)
current = process[curIndex]
if(!current) continue
if(current)
currentLayer = current:layer
if(currentLayer<0) // Special case for FLY_LAYER
if(currentLayer <= -1000) return flat
@@ -719,9 +719,7 @@ proc // Creates a single icon from a given /atom or /image. Only the first argu
layers[current]=currentLayer // Place at end
curIndex++
if(curIndex>process.len)
if(pSet == 0) // Switch to overlays
else if(pSet == 0) // Switch to overlays
curIndex = 1
pSet = 1
process = A.overlays