moved thumbnail generation to plugin; extended plugin loading for pre and post window loading
This commit is contained in:
17
plugins/thumbnailer/icons/mixins/meshsiconmixin.py
Normal file
17
plugins/thumbnailer/icons/mixins/meshsiconmixin.py
Normal file
@@ -0,0 +1,17 @@
|
||||
# Python imports
|
||||
import subprocess
|
||||
|
||||
# Lib imports
|
||||
|
||||
# Application imports
|
||||
|
||||
|
||||
|
||||
|
||||
class MeshsIconMixin:
|
||||
def generate_blender_thumbnail(self, full_path, hash_img_path):
|
||||
try:
|
||||
proc = subprocess.Popen([self.BLENDER_THUMBNLR, full_path, hash_img_path])
|
||||
proc.wait()
|
||||
except Exception as e:
|
||||
logger.debug(repr(e))
|
Reference in New Issue
Block a user