fix(ui): cursor when no renderable layers added

This commit is contained in:
psychedelicious 2024-05-03 11:35:53 +10:00 committed by Kent Keirsey
parent eb36e834b2
commit 2062cfe84a

View File

@ -146,7 +146,7 @@ const renderToolPreview = (
lastMouseDownPos: Vector2d | null,
brushSize: number
) => {
const layerCount = stage.find(`.${RG_LAYER_NAME}`).length;
const layerCount = stage.find(selectRenderableLayers).length;
// Update the stage's pointer style
if (layerCount === 0) {
// We have no layers, so we should not render any tool