Skip to content

Commit

Permalink
bandaid fix layer picker 💀💀
Browse files Browse the repository at this point in the history
  • Loading branch information
counter185 committed Jun 15, 2024
1 parent 5afc428 commit a8a5aa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion freesprite/EditorLayerPicker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ EditorLayerPicker::~EditorLayerPicker()

bool EditorLayerPicker::isMouseIn(XY thisPositionOnScreen, XY mousePos)
{
return pointInBox(mousePos, SDL_Rect{ thisPositionOnScreen.x, thisPositionOnScreen.y, wxWidth, wxHeight });
return pointInBox(mousePos, SDL_Rect{ thisPositionOnScreen.x, thisPositionOnScreen.y, wxWidth, wxHeight })
|| layerButtons.mouseInAny(thisPositionOnScreen, mousePos);
}

void EditorLayerPicker::render(XY position)
Expand Down
1 change: 1 addition & 0 deletions freesprite/FileIO.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,7 @@ MainEditor* readVOIDSN(PlatformNativePathString path)
for (int x = 0; x < nlayers && x < layerVisibilityData.size(); x++) {
ret->layers[x]->hidden = layerVisibilityData[x] == '0';
}
ret->layerPicker->updateLayers();
}
if (extData.contains("comments")) {
std::string commentsData = extData["comments"];
Expand Down

0 comments on commit a8a5aa7

Please sign in to comment.