mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 03:10:56 +00:00
place new code after the current preferences one to follow the order. Added to type checking
This commit is contained in:
@@ -678,6 +678,12 @@ class BIM_ADDON_preferences(bpy.types.AddonPreferences):
|
|||||||
description="Default parameters for BIM elements",
|
description="Default parameters for BIM elements",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
container_hide_show_isolate: BoolProperty(
|
||||||
|
name="Container hide/show/isolate",
|
||||||
|
description="Enable container hide/show/isolate feature in the UI",
|
||||||
|
default=False,
|
||||||
|
)
|
||||||
|
|
||||||
if TYPE_CHECKING:
|
if TYPE_CHECKING:
|
||||||
svg2pdf_command: str
|
svg2pdf_command: str
|
||||||
svg2dxf_command: str
|
svg2dxf_command: str
|
||||||
@@ -713,6 +719,7 @@ class BIM_ADDON_preferences(bpy.types.AddonPreferences):
|
|||||||
pset_dir: str
|
pset_dir: str
|
||||||
doc: DocPreferences
|
doc: DocPreferences
|
||||||
default_parameters: DefaultParameters
|
default_parameters: DefaultParameters
|
||||||
|
container_hide_show_isolate: bool
|
||||||
|
|
||||||
def draw(self, context: bpy.types.Context) -> None:
|
def draw(self, context: bpy.types.Context) -> None:
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
@@ -892,16 +899,9 @@ class BIM_ADDON_preferences(bpy.types.AddonPreferences):
|
|||||||
layout.prop(self, "bsdd_load_inactive_dictionaries")
|
layout.prop(self, "bsdd_load_inactive_dictionaries")
|
||||||
layout.prop(self, "bsdd_load_test_dictionaries")
|
layout.prop(self, "bsdd_load_test_dictionaries")
|
||||||
|
|
||||||
|
|
||||||
def draw_extras_settings(self, layout: bpy.types.UILayout, context: bpy.types.Context) -> None:
|
def draw_extras_settings(self, layout: bpy.types.UILayout, context: bpy.types.Context) -> None:
|
||||||
layout.prop(self, "container_hide_show_isolate")
|
layout.prop(self, "container_hide_show_isolate")
|
||||||
|
|
||||||
container_hide_show_isolate: BoolProperty(
|
|
||||||
name="Container hide/show/isolate",
|
|
||||||
description="Enable container hide/show/isolate feature in the UI",
|
|
||||||
default=False,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Scene panel groups
|
# Scene panel groups
|
||||||
class BIM_PT_tabs(Panel):
|
class BIM_PT_tabs(Panel):
|
||||||
|
|||||||
Reference in New Issue
Block a user