mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 22:11:36 +00:00
Fix bug where sometimes you cannot add a context
This commit is contained in:
@@ -411,7 +411,8 @@ class BIM_PT_representations(Panel):
|
|||||||
row.prop(bpy.context.scene.BIMProperties, 'available_contexts', text='')
|
row.prop(bpy.context.scene.BIMProperties, 'available_contexts', text='')
|
||||||
row.prop(bpy.context.scene.BIMProperties, 'available_subcontexts', text='')
|
row.prop(bpy.context.scene.BIMProperties, 'available_subcontexts', text='')
|
||||||
row.prop(bpy.context.scene.BIMProperties, 'available_target_views', text='')
|
row.prop(bpy.context.scene.BIMProperties, 'available_target_views', text='')
|
||||||
row.operator('bim.switch_context', icon='ADD', text='')
|
op = row.operator('bim.switch_context', icon='ADD', text='')
|
||||||
|
op.has_target_context = False
|
||||||
|
|
||||||
for index, subcontext in enumerate(props.representation_contexts):
|
for index, subcontext in enumerate(props.representation_contexts):
|
||||||
row = layout.row(align=True)
|
row = layout.row(align=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user