From 75ff39a2b4e768ae21cbc6fd6925bb1e3eb8d7e3 Mon Sep 17 00:00:00 2001 From: stechyo Date: Mon, 10 Mar 2025 14:22:19 +0000 Subject: [PATCH] Fix: take geometry::disabled into account on _ready (closes #90). --- .github/ISSUE_TEMPLATE/bug_report.md | 3 --- src/geometry.cpp | 8 ++++++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 702017e..f9a9652 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -7,9 +7,6 @@ assignees: '' --- -**Are you using the provided fork of Godot?** -(yes/no) - **Godot-steam-audio version** e.g. 0.1.0 diff --git a/src/geometry.cpp b/src/geometry.cpp index 6d20ac3..f4911ce 100644 --- a/src/geometry.cpp +++ b/src/geometry.cpp @@ -25,7 +25,9 @@ SteamAudioGeometry::~SteamAudioGeometry() { return; } - unregister_geometry(); + if (!disabled) { + unregister_geometry(); + } destroy_geometry(); } @@ -35,7 +37,9 @@ void SteamAudioGeometry::ready_internal() { } create_geometry(); - register_geometry(); + if (!disabled) { + register_geometry(); + } } void SteamAudioGeometry::_notification(int p_what) {