This commit is contained in:
Moritz Brückner 2021-06-24 15:03:30 +02:00
parent d18aede964
commit fce97a5ddf
2 changed files with 9 additions and 9 deletions

View file

@ -90,16 +90,17 @@ def send_operator(op):
else: # Rebuild
make.patch()
def always():
def always() -> float:
# Force ui redraw
if state.redraw_ui and context_screen != None:
if state.redraw_ui and context_screen is not None:
for area in context_screen.areas:
if area.type == 'VIEW_3D' or area.type == 'PROPERTIES':
area.tag_redraw()
state.redraw_ui = False
# TODO: depsgraph.updates only triggers material trees
space = arm.utils.logic_editor_space(context_screen)
if space != None:
if space is not None:
space.node_tree.arm_cached = False
return 0.5

View file

@ -1,17 +1,16 @@
import errno
import glob
import json
import os
from queue import Queue
import shlex
import shutil
import time
import stat
import subprocess
import threading
import webbrowser
import shlex
import errno
import math
import time
from typing import Callable
from queue import Queue
import webbrowser
import bpy