Skip to content
Snippets Groups Projects
Commit f272cf57 authored by Vilém Duha's avatar Vilém Duha
Browse files

BlenderKit: move process flag generation to utils.

parent 4d10cb46
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment