mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
Resolve merge conflict
This commit is contained in:
@@ -280,8 +280,7 @@ if getattr(bpy.types, "SCENE_PT_scene"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_unit"):
|
if getattr(bpy.types, "SCENE_PT_unit"):
|
||||||
@@ -291,8 +290,7 @@ if getattr(bpy.types, "SCENE_PT_unit"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_physics"):
|
if getattr(bpy.types, "SCENE_PT_physics"):
|
||||||
@@ -302,8 +300,7 @@ if getattr(bpy.types, "SCENE_PT_physics"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_rigid_body_world"):
|
if getattr(bpy.types, "SCENE_PT_rigid_body_world"):
|
||||||
@@ -313,8 +310,7 @@ if getattr(bpy.types, "SCENE_PT_rigid_body_world"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_audio"):
|
if getattr(bpy.types, "SCENE_PT_audio"):
|
||||||
@@ -324,8 +320,7 @@ if getattr(bpy.types, "SCENE_PT_audio"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_keying_sets"):
|
if getattr(bpy.types, "SCENE_PT_keying_sets"):
|
||||||
@@ -335,8 +330,7 @@ if getattr(bpy.types, "SCENE_PT_keying_sets"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
if getattr(bpy.types, "SCENE_PT_custom_props"):
|
if getattr(bpy.types, "SCENE_PT_custom_props"):
|
||||||
@@ -346,8 +340,7 @@ if getattr(bpy.types, "SCENE_PT_custom_props"):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
return tool.Blender.is_tab(context, "BLENDER")
|
||||||
return aprops.tab == "BLENDER" or context.area.spaces.active.search_filter
|
|
||||||
|
|
||||||
|
|
||||||
@persistent
|
@persistent
|
||||||
|
|||||||
@@ -47,7 +47,9 @@ class SwitchTab(bpy.types.Operator):
|
|||||||
bl_description = "Switches to the last used tab"
|
bl_description = "Switches to the last used tab"
|
||||||
|
|
||||||
def execute(self, context):
|
def execute(self, context):
|
||||||
aprops = tool.Blender.get_area_properties(context)
|
if context.area.spaces.active.search_filter:
|
||||||
|
return {"FINISHED"}
|
||||||
|
aprops = context.screen.BIMAreaProperties[context.screen.areas[:].index(context.area)]
|
||||||
aprops.tab = aprops.alt_tab
|
aprops.tab = aprops.alt_tab
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user