You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating sprites without a texture crashes python #145
Would be great if at least an exception could be thrown here. And even better would be if a non-renderable sprite would be created with a possibility of setting a texture later in code.
To me it looks like it's cythons fault somehow, I mean this works and correctly raises an error:
>>> from sfml import sf
>>> sf.Sprite(False)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: Argument 'texture' has incorrect type (expected sfml.graphics.Texture, got bool)
Activity
intjelic commentedon Mar 3, 2017
You're right andd actually I'm aware of that, I'll look into that soon!
Necklaces commentedon Jun 10, 2017
To me it looks like it's cythons fault somehow, I mean this works and correctly raises an error:
But None just straight out segfaults it..