diff options
author | Vilém Duha <vilda.novak@gmail.com> | 2019-08-12 15:00:16 +0300 |
---|---|---|
committer | Vilém Duha <vilda.novak@gmail.com> | 2019-08-12 16:58:36 +0300 |
commit | e7ae2e8582ae5302eb43713756e43c9e93176b8a (patch) | |
tree | 12bd7042d62c0d94ef701eeb4ca1c7bd99883bf1 | |
parent | e9b2f45eb2a4936a9a7cc6fe2ac3db508fd83b21 (diff) |
BlenderKit: fix n1. for quad view - now only draws addon once.
-rw-r--r-- | blenderkit/ui.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/blenderkit/ui.py b/blenderkit/ui.py index f88c4f31..ede37280 100644 --- a/blenderkit/ui.py +++ b/blenderkit/ui.py @@ -602,11 +602,17 @@ def draw_callback_2d(self, context): # self.area might throw error just by itself. a1 = self.area go = True + if len(a.spaces[0].region_quadviews)>0: + # print(dir(bpy.context.region_data)) + #print('quad', a.spaces[0].region_3d, a.spaces[0].region_quadviews[0]) + if a.spaces[0].region_3d != context.region_data: + go = False except: # bpy.types.SpaceView3D.draw_handler_remove(self._handle_2d, 'WINDOW') # bpy.types.SpaceView3D.draw_handler_remove(self._handle_3d, 'WINDOW') go = False if go and a == a1: + props = context.scene.blenderkitUI if props.down_up == 'SEARCH': draw_ratings_bgl() |