From f272cf57a5ce7538ea01a16b88d7a0ec297e311d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Vil=C3=A9m=20Duha?= <vilda.novak@gmail.com>
Date: Sat, 4 Jan 2020 14:19:17 +0100
Subject: [PATCH] BlenderKit: move process flag generation to utils.

---
 blenderkit/utils.py | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/blenderkit/utils.py b/blenderkit/utils.py
index eebdb0786..3b7eac207 100644
--- a/blenderkit/utils.py
+++ b/blenderkit/utils.py
@@ -28,9 +28,24 @@ import bpy
 from mathutils import Vector
 import json
 import os
-import requests
+import sys
 
 
+
+
+ABOVE_NORMAL_PRIORITY_CLASS = 0x00008000
+BELOW_NORMAL_PRIORITY_CLASS = 0x00004000
+HIGH_PRIORITY_CLASS = 0x00000080
+IDLE_PRIORITY_CLASS = 0x00000040
+NORMAL_PRIORITY_CLASS = 0x00000020
+REALTIME_PRIORITY_CLASS = 0x00000100
+
+def get_process_flags():
+    flags = BELOW_NORMAL_PRIORITY_CLASS
+    if sys.platform != 'win32':  # TODO test this on windows
+        flags = 0
+    return flags
+
 def activate(ob):
     bpy.ops.object.select_all(action='DESELECT')
     ob.select_set(True)
-- 
GitLab