Free, open-source 3D sculpting for Linux, macOS and Windows: dense meshes, remeshing, painting, built-in AI (image/text to 3D), Send to Unreal, game-ready LODs, Gaussian splats and OpenUSD.
C++ 3d3d-sculptingcppdear-imguidigital-sculptingfbxgame-developmentgaussian-splattinggltfimage-to-3dmcpopenglopenusdsculptingtext-to-3dunreal-engine
Blender add-on: the zip carries every module in FILES (zbrush_keys.py was missing, #10); --check fails when a relative import is not packaged
islandmed2d0366e51b4a
diff --git a/addons/blender/build_addon.py b/addons/blender/build_addon.pyindex 19f0d2b0..8a92f7ee 100644--- a/addons/blender/build_addon.py+++ b/addons/blender/build_addon.py@@ -66,6 +66,13 @@ def check(manifest, init):errors.append("bl_info version must match blender_manifest.toml")if re.search(r"^\s*import\s+sculptforge_bridge|^\s*from\s+sculptforge_bridge", init, re.M):errors.append("extensions must use relative imports")+ imported = set()+ for name in FILES:+ for rel, names in re.findall(r"^\s*from\s+\.(\w*)\s+import\s+([\w, ]+)", read(name), re.M):+ imported.update([rel] if rel else [n.strip() for n in names.split(",")])+ for mod in sorted(imported):+ if os.path.exists(os.path.join(SOURCE, mod + ".py")) and mod + ".py" not in FILES:+ errors.append("%s.py is imported but not in FILES, so the zip would lack it" % mod)with tempfile.TemporaryDirectory() as tmp:for name in FILES:try:@@ -100,7 +107,8 @@ def main():print("error:", e)if errors:return 1- files = {"__init__.py": init, "exchange.py": read("exchange.py")}+ files = {name: read(name) for name in FILES}+ files["__init__.py"] = initwith open(LICENSE, "r", encoding="utf-8") as f:files["LICENSE"] = f.read()os.makedirs(args.out, exist_ok=True)