feat: [rd] 벽 토글 OFF 시 벽체 설정 패널 자동 숨김

This commit is contained in:
김보곤
2026-03-09 16:39:00 +09:00
parent 5e59c66fa6
commit bd85653699

View File

@@ -291,8 +291,8 @@
</div>
</section>
<!-- 벽체 설정 -->
<section class="fs-section mt-2" style="padding:0.75rem 1rem;">
<!-- 벽체 설정 ( 토글 OFF 숨김) -->
<section id="wallSettings" class="fs-section mt-2 hidden" style="padding:0.75rem 1rem;">
<h3 class="text-[11px] font-black text-slate-300 mb-2 flex items-center gap-1.5">
<svg xmlns="http://www.w3.org/2000/svg" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><rect x="1" y="6" width="22" height="15" rx="2"/><path d="M1 10h22"/></svg>
벽체 설정
@@ -1856,6 +1856,11 @@ function fs3dShowAll() {
el.classList.toggle('active');
S.td.show[key] = el.classList.contains('active');
if (meshes[key]) meshes[key].visible = S.td.show[key];
// 벽 토글 시 벽체 설정 패널 연동
if (key === 'wall') {
const ws = $('wallSettings');
if (ws) ws.classList.toggle('hidden', !S.td.show.wall);
}
};
window.fs3dLightColor = function(color) {
if (!scene) return;