Skip to content

Commit

Permalink
Update VisualSPHysics.py
Browse files Browse the repository at this point in the history
KonradPR commit applied. See if this allows for blender installation.
  • Loading branch information
O662 authored Aug 7, 2024
1 parent 6f490f6 commit 50af8d9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions blendermodule/VisualSPHysics.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
import bpy, sys, math, re, os, time, array, ctypes, bmesh, mathutils
import xml.etree.ElementTree as ET
import traceback

if sys.version_info[1]>=8 and os.name == 'nt':
if "VTK_DLL_PATH" in os.environ:
os.add_dll_directory(os.environ['VTK_DLL_PATH'])
else:
raise ValueError('Python 3.8 and higher requires VTK_DLL_PATH to be set in environment')

import vtkimporter
import diffuseparticles
Expand Down

0 comments on commit 50af8d9

Please sign in to comment.