mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
Fix view3d callback for blender 2.65a+.
Yay experimental APIs :P
This commit is contained in:
parent
2e8d9e7636
commit
6838913e31
1 changed files with 4 additions and 5 deletions
|
@ -90,11 +90,10 @@ class QFEntityRelations(bpy.types.Panel):
|
|||
if cls.initDone:
|
||||
return False
|
||||
if context.area.type == 'VIEW_3D':
|
||||
for reg in context.area.regions:
|
||||
if reg.type != 'WINDOW':
|
||||
continue
|
||||
reg.callback_add(draw_callback, (cls, context), 'POST_VIEW')
|
||||
cls.initDone = True
|
||||
sv3d = bpy.types.SpaceView3D
|
||||
sv3d.draw_handler_add (draw_callback, (cls, context), 'WINDOW',
|
||||
'POST_VIEW')
|
||||
cls.initDone = True
|
||||
return False
|
||||
def draw_header(self, context):
|
||||
pass
|
||||
|
|
Loading…
Reference in a new issue