Skip to content

Commit

Permalink
Port to Blender 2.81
Browse files Browse the repository at this point in the history
  • Loading branch information
eliemichel committed Nov 23, 2019
1 parent 80b8e4c commit c36b609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions blender/MapsModelsImporter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
bl_info = {
"name": "Maps Models Importer",
"author": "Elie Michel",
"version": (1, 0),
"blender": (2, 80, 0),
"version": (0, 1, 3),
"blender": (2, 81, 0),
"location": "File > Import > Google Maps Capture",
"description": "Import meshes from a Google Maps capture",
"warning": "",
Expand Down
3 changes: 2 additions & 1 deletion blender/MapsModelsImporter/google_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ def captureToFiles(filepath, prefix):
"""Extract binary files and textures from a RenderDoc capture file.
This spawns a standalone Python interpreter because renderdoc module cannot be loaded in embedded Python"""
blender_dir = os.path.dirname(sys.executable)
python_home = os.path.join(blender_dir, "2.80", "python")
blender_version = [d for d in os.listdir(blender_dir) if d.startswith("2.")][0]
python_home = os.path.join(blender_dir, blender_version, "python")
os.environ["PYTHONHOME"] = python_home
os.environ["PYTHONPATH"] = os.environ.get("PYTHONPATH", "")
os.environ["PYTHONPATH"] += os.pathsep + os.path.abspath(getBinaryDir())
Expand Down

0 comments on commit c36b609

Please sign in to comment.