From b4f0a346c10dc1b9922fe93669d0a9ba9850daf6 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 23 May 2024 15:13:04 +0500 Subject: [PATCH] fix couple broken properties definitions There was no errors but Blender seems to ignore the provided name if it was provided as a positional argument instead of a keyword argument. --- src/blenderbim/blenderbim/bim/module/cost/operator.py | 2 +- src/blenderbim/blenderbim/bim/module/pset_template/prop.py | 2 +- src/blenderbim/blenderbim/bim/module/style/prop.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/cost/operator.py b/src/blenderbim/blenderbim/bim/module/cost/operator.py index a5e9b88e2f..ad9b756d29 100644 --- a/src/blenderbim/blenderbim/bim/module/cost/operator.py +++ b/src/blenderbim/blenderbim/bim/module/cost/operator.py @@ -662,7 +662,7 @@ class ExportCostSchedules(bpy.types.Operator): bl_options = {"REGISTER", "UNDO"} bl_description = "Export a cost schedule to a CSV, XSLX OR ODS file" cost_schedule: bpy.props.IntProperty() - format: bpy.props.EnumProperty("Format", items=(("CSV", "CSV", ""), ("XLSX", "XLSX", ""), ("ODS", "ODS", ""))) + format: bpy.props.EnumProperty(name="Format", items=(("CSV", "CSV", ""), ("XLSX", "XLSX", ""), ("ODS", "ODS", ""))) directory: bpy.props.StringProperty(subtype="FILE_PATH") filter_folder: bpy.props.BoolProperty( name="Filter Folders", diff --git a/src/blenderbim/blenderbim/bim/module/pset_template/prop.py b/src/blenderbim/blenderbim/bim/module/pset_template/prop.py index 9d94b28c8e..165144efd8 100644 --- a/src/blenderbim/blenderbim/bim/module/pset_template/prop.py +++ b/src/blenderbim/blenderbim/bim/module/pset_template/prop.py @@ -190,4 +190,4 @@ class BIMPsetTemplateProperties(PropertyGroup): active_prop_template_id: IntProperty(name="Active Prop Template Id") active_pset_template: PointerProperty(type=PsetTemplate) active_prop_template: PointerProperty(type=PropTemplate) - new_template_filename: StringProperty("New TemplateFileName") + new_template_filename: StringProperty(name="New TemplateFileName") diff --git a/src/blenderbim/blenderbim/bim/module/style/prop.py b/src/blenderbim/blenderbim/bim/module/style/prop.py index af06b57615..fb1bac5c40 100644 --- a/src/blenderbim/blenderbim/bim/module/style/prop.py +++ b/src/blenderbim/blenderbim/bim/module/style/prop.py @@ -122,7 +122,7 @@ class ColourRgb(PropertyGroup): name: StringProperty() color_value: FloatVectorProperty(size=3, subtype="COLOR", default=(1, 1, 1)) # not exposed in the UI, here just to preserve the data - color_name: StringProperty("Color Name") + color_name: StringProperty(name="Color Name") # to fit blender.bim.helper.export_attributes def get_value(self):