From 4d78047a4322c8276c4f782366ffd39d0e3d8fcd Mon Sep 17 00:00:00 2001 From: nutti Date: Sun, 13 Aug 2023 18:37:38 +0900 Subject: [PATCH] Fix: Build error --- src/fake_bpy_module/generator.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/fake_bpy_module/generator.py b/src/fake_bpy_module/generator.py index 865f60726..0e052ce31 100644 --- a/src/fake_bpy_module/generator.py +++ b/src/fake_bpy_module/generator.py @@ -576,10 +576,8 @@ def _analyze_by_rule( # replace windows path separator target_files = [f.replace("\\", "/") for f in rule.target_files()] # analyze all .rst files - if self._config.target == "upbge": - rule.analyzer().enable_bge_support() - if self._config.blender_version is not None: - rule.analyzer().set_blender_version(self._config.blender_version) + rule.analyzer().set_target(self._config.target) + rule.analyzer().set_target_version(self._config.target_version) result = rule.analyzer().analyze(target_files) return result