Skip to content

Commit

Permalink
bindings have been fixed, trigger rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Jul 4, 2024
1 parent 6b8ad0b commit 5d96f62
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/features/TypeInZLayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,8 @@ class $modify(TypeInUI, EditorUI) {
if (!lockBtn) return;
const char* sprite = "GJ_lock_open_001.png";
auto onAll = m_editorLayer->m_currentLayer == -1;
auto layerLocked = !onAll ; //?
// m_editorLayer->isLayerLocked(m_editorLayer->m_currentLayer) :
// false;
auto layerLocked = !onAll && m_editorLayer->isLayerLocked(m_editorLayer->m_currentLayer);

log::info("LevelEditorLayer::m_lockedLayers: 0x{:x}", offsetof(LevelEditorLayer, m_lockedLayers));
log::info("LevelEditorLayer::m_currentLayer: 0x{:x}", offsetof(LevelEditorLayer, m_currentLayer));
log::info("LevelEditorLayer::m_layerLockingEnabled: 0x{:x}", offsetof(LevelEditorLayer, m_layerLockingEnabled));

if (onAll) {
sprite = "GJ_lockGray_001.png";
}
Expand Down

0 comments on commit 5d96f62

Please sign in to comment.