def _sp_items_update(self, context):
# Get the right space on screen (Properties Panel)
space = context.space_data
if space and space.type != 'PROPERTIES': # I am not called by the Properties Panel
space = None
for window in context.window_manager.windows:
for area in window.screen.areas:
if area.type == 'PROPERTIES':
space = area.spaces[0]
break
if not space: return
# Update Properties Panel context
try: space.context = self.bf_sp_context
except TypeError: self.bf_sp_context = 'SCENE'
评论列表
文章目录