Skip to content

Commit

Permalink
Fix: Build error for the latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
nutti committed Jul 24, 2023
1 parent 625d57b commit b6eb299
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,8 @@ def make_bpy_rule(
def make_bgl_rule(
_: 'fbm.PackageGeneratorConfig') -> 'fbm.PackageGenerationRule':
files = glob.glob(INPUT_DIR + "/bgl*.rst")
mod_files = [
f"{MOD_FILES_DIR}/mods/generated_mods/gen_bgl_modfile/bgl.json"
.replace("\\", "/"),
]
mod_files = glob.glob(
f"{MOD_FILES_DIR}/mods/generated_mods/gen_bgl_modfile/*.json")
return fbm.PackageGenerationRule(
"bgl", files, fbm.AnalyzerWithModFile(mod_files), fbm.BaseGenerator())

Expand Down
6 changes: 5 additions & 1 deletion src/gen_module.sh
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ mkdir -p "${generated_mod_dir}"
${blender_bin} --background --factory-startup -noaudio --python-exit-code 1 --python "${SCRIPT_DIR}/gen_modfile/gen_external_modules_modfile.py" -- -m addon_utils -o "${generated_mod_dir}/gen_modules_modfile"
${blender_bin} --background --factory-startup -noaudio --python-exit-code 1 --python "${SCRIPT_DIR}/gen_modfile/gen_external_modules_modfile.py" -- -m keyingsets_builtins -a -o "${generated_mod_dir}/gen_startup_modfile"
mkdir -p "${generated_mod_dir}/gen_bgl_modfile"
${python_bin} "${SCRIPT_DIR}/gen_modfile/gen_bgl_modfile.py" -i "${source_dir}/source/blender/python/generic/bgl.c" -o "${generated_mod_dir}/gen_bgl_modfile/bgl.json"
bgl_c_file="${source_dir}/source/blender/python/generic/bgl.c"
if [ ! -e "${bgl_c_file}" ]; then
bgl_c_file="${source_dir}/source/blender/python/generic/bgl.cc"
fi
${python_bin} "${SCRIPT_DIR}/gen_modfile/gen_bgl_modfile.py" -i "${bgl_c_file}" -o "${generated_mod_dir}/gen_bgl_modfile/bgl.json"

echo "Generating fake bpy modules ..."
if [ "${mod_version}" = "not-specified" ]; then
Expand Down

0 comments on commit b6eb299

Please sign in to comment.