The following is thrown off by the echo. Is there a way to make this work?
    
    
    let format =
                    if channels == 1:
                        TextureInternalFormat.RED
                    elif channels == 3:
                        TextureInternalFormat.RGB
                    elif channels == 4:
                        TextureInternalFormat.RGBA
                    else:
                        echo "Texture Format Unknown, assuming RGB"
                        TextureInternalFormat.RGB
    

Reply via email to