optagon
20th December 2013, 09:34
I am editing an texture exporter that somebody else coded, and there's a small segment I'm not grasping.
The exporter has a QListView that get's filled with groups from photoshop.
I had removed a part of the code that I thought was purely for debuging, but then I noticed that I started to get duplicate entries in the list. Here:
if layerName in loadedNames:
print layerName, " IS ALREADY LOADED"
continue
if layerName.endswith("_alpha") or layerName.endswith("_a"):
print "SUPPOSED TO MOVE INTO ALPHA"
continue
All I see is it printing messages to the console. The if's don't do anything else... Perhaps the issue here is that I don't understand how continue works. I thought it was just something people wrote for clarity, and to avoid nesting if statements. Any ideas?
The exporter has a QListView that get's filled with groups from photoshop.
I had removed a part of the code that I thought was purely for debuging, but then I noticed that I started to get duplicate entries in the list. Here:
if layerName in loadedNames:
print layerName, " IS ALREADY LOADED"
continue
if layerName.endswith("_alpha") or layerName.endswith("_a"):
print "SUPPOSED TO MOVE INTO ALPHA"
continue
All I see is it printing messages to the console. The if's don't do anything else... Perhaps the issue here is that I don't understand how continue works. I thought it was just something people wrote for clarity, and to avoid nesting if statements. Any ideas?