Slightly optimise the display of the description popup

This commit is contained in:
Gorgious
2022-10-31 22:22:46 +01:00
parent 0c3269d9e1
commit 5458f4f9dd
+1 -2
View File
@@ -702,9 +702,8 @@ class BIM_OT_show_description(bpy.types.Operator):
def draw(self, context):
layout = self.layout
layout.label(text=" - " + self.attr_name + " :")
wrapper = textwrap.TextWrapper(width=80)
for line in wrapper.wrap(self.description):
for line in wrapper.wrap(self.attr_name + " : " + self.description):
layout.label(text=line)
if self.url:
url_op = layout.operator("bim.open_webbrowser", icon="URL", text="Online IFC Documentation")