Fixed general size bug
This commit is contained in:
parent
30eb1e4cdd
commit
83f8f37447
1 changed files with 5 additions and 0 deletions
|
@ -10,6 +10,11 @@ class DesignEntity (object):
|
|||
|
||||
def __init__(self, size, mask=False, invert_mask=False, color_key=False):
|
||||
self.size = size
|
||||
# Are dimensions >= 0?
|
||||
for i in range(2):
|
||||
if self.size[i] < 0:
|
||||
self.size[i] = 0
|
||||
|
||||
self.pos = (0, 0)
|
||||
self.mask = mask
|
||||
self.invert_mask = invert_mask
|
||||
|
|
Loading…
Reference in a new issue