[Bf-extensions-cvs] [e7ae2e85] master: BlenderKit: fix n1. for quad view - now only draws addon once.
Vilém Duha
noreply at git.blender.org
Mon Aug 12 16:05:29 CEST 2019
Commit: e7ae2e8582ae5302eb43713756e43c9e93176b8a
Author: Vilém Duha
Date: Mon Aug 12 14:00:16 2019 +0200
Branches: master
https://developer.blender.org/rBAe7ae2e8582ae5302eb43713756e43c9e93176b8a
BlenderKit: fix n1. for quad view - now only draws addon once.
===================================================================
M blenderkit/ui.py
===================================================================
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()
More information about the Bf-extensions-cvs
mailing list