Skip to content

Commit 8b5ce78

Browse files
committed
merge with main again
2 parents aed028e + 3f60cd0 commit 8b5ce78

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

subsystems/interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def tick(self,mx,my,mPressed,fps,keyQueue,mouseScroll):
185185
if key in KB_EDITOR_VISUAL_OFFSET_RIGHT: self.graphOffset += (self.graphScale+0.000001)
186186
if 1152<self.mx and 36<self.my and self.mx<1340 and self.my<245:
187187
if key in KB_DELETE:
188-
self.sprites[self.selectedSprite].removeImage(math.floor(((self.mx-1152)+2*(self.my-36)-2*self.apperancePanelOffset-6)/90))
188+
self.sprites[self.selectedSprite].removeImageUUID(math.floor(((self.mx-1152)+2*(self.my-36)-2*self.apperancePanelOffset-6)/90))
189189
if key in KB_TIMELINE_OFFSET_LEFT: self.timelineOffset -= (self.timelineScale+0.000001)
190190
if key in KB_TIMELINE_OFFSET_RIGHT: self.timelineOffset += (self.timelineScale+0.000001)
191191
else:

subsystems/render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def rotateDegHundred(img: numpy.ndarray, cent:float):
7676

7777
def setSize(img: numpy.ndarray, size):
7878
'''Returns a copy of the given image scaled by size, given the size change (given with 50 as normal, >50 scale up, <50 scale down)'''
79-
x, y, temp = img.shape
79+
y, x, temp = img.shape
8080
return numpy.array(Image.fromarray(img).resize((max(1, (round(x*(size/50)**2))),max(1, round(y*(size/50)**2)))))
8181

8282
def setColorEffect(img: numpy.ndarray, colorEffect):

0 commit comments

Comments
 (0)