mirror of
https://github.com/Redot-Engine/redot-engine.git
synced 2025-12-06 07:17:42 -05:00
Merge pull request #105910 from lawnjelly/global_get_fast4
Add `GLOBAL_GET` cached macros.
This commit is contained in:
@@ -374,7 +374,7 @@ static bool _test_blender_path(const String &p_path, String *r_err = nullptr) {
|
||||
}
|
||||
|
||||
bool EditorFileSystemImportFormatSupportQueryBlend::is_active() const {
|
||||
bool blend_enabled = GLOBAL_GET("filesystem/import/blender/enabled");
|
||||
bool blend_enabled = GLOBAL_GET_CACHED(bool, "filesystem/import/blender/enabled");
|
||||
|
||||
if (blend_enabled && !_test_blender_path(EDITOR_GET("filesystem/import/blender/blender_path").operator String())) {
|
||||
// Intending to import Blender, but blend not configured.
|
||||
|
||||
Reference in New Issue
Block a user