mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
color by property - add operators descriptions
This commit is contained in:
@@ -239,6 +239,7 @@ class LoadSearch(Operator, tool.Ifc.Operator):
|
||||
class ColourByProperty(Operator):
|
||||
bl_idname = "bim.colour_by_property"
|
||||
bl_label = "Colour by Property"
|
||||
bl_description = "Color all visible objects by the provided property."
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
def execute(self, context):
|
||||
@@ -365,6 +366,7 @@ class ColourByProperty(Operator):
|
||||
class SelectByProperty(Operator):
|
||||
bl_idname = "bim.select_by_property"
|
||||
bl_label = "Select by Property"
|
||||
bl_description = "Select objects based on currently selected colored property value."
|
||||
bl_options = {"REGISTER", "UNDO"}
|
||||
|
||||
@classmethod
|
||||
|
||||
@@ -202,7 +202,12 @@ class BIMSearchProperties(PropertyGroup):
|
||||
filter_classes_index: IntProperty(name="Filter Classes Index")
|
||||
filter_container: CollectionProperty(type=BIMFilterBuildingStoreys, name="Filter Level")
|
||||
filter_container_index: IntProperty(name="Filter Level Index")
|
||||
show_flat_colours: BoolProperty(name="Flat Colours", default=False, update=update_show_flat_colours)
|
||||
show_flat_colours: BoolProperty(
|
||||
name="Flat Colours",
|
||||
description="Toggle flat shading in the active viewport.",
|
||||
default=False,
|
||||
update=update_show_flat_colours,
|
||||
)
|
||||
|
||||
if TYPE_CHECKING:
|
||||
element_key: str
|
||||
|
||||
Reference in New Issue
Block a user