From c7e288466f9693482b6210f1c23c8defb8bb7874 Mon Sep 17 00:00:00 2001 From: Gorgious Date: Wed, 10 May 2023 21:31:19 +0200 Subject: [PATCH] Fix #3128 : RefLatitude and RefLongitude attributes now show their description on right click + add a snippet to tell the user how to format the values --- src/blenderbim/blenderbim/bim/module/attribute/operator.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/blenderbim/blenderbim/bim/module/attribute/operator.py b/src/blenderbim/blenderbim/bim/module/attribute/operator.py index 589bfa9681..89b2d06df2 100644 --- a/src/blenderbim/blenderbim/bim/module/attribute/operator.py +++ b/src/blenderbim/blenderbim/bim/module/attribute/operator.py @@ -60,6 +60,8 @@ class EnableEditingAttributes(bpy.types.Operator): new.data_type = "string" new.ifc_class = data["type"] new.string_value = "" if new.is_null else json.dumps(data[name]) + blenderbim.bim.helper.add_attribute_description(new) + new.description += " The degrees, minutes and seconds should follow this format : [12,34,56]" blenderbim.bim.helper.import_attributes2( tool.Ifc.get().by_id(oprops.ifc_definition_id), props.attributes, callback=callback