mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 01:41:57 +00:00
bim.copy_text_to_clipboard - more detailed tooltip
Now it will show the text being copied (e.g. attribute name).
This commit is contained in:
@@ -1148,11 +1148,14 @@ class RevertClippingPlaneCut(bpy.types.Operator):
|
||||
class CopyTextToClipboard(bpy.types.Operator):
|
||||
bl_idname = "bim.copy_text_to_clipboard"
|
||||
bl_label = "Copy Text To Clipboard"
|
||||
bl_description = "Copy text to clipboard."
|
||||
bl_options = set()
|
||||
|
||||
text: bpy.props.StringProperty(options={"SKIP_SAVE"})
|
||||
|
||||
@classmethod
|
||||
def description(cls, context, properties):
|
||||
return f"Copy text to clipboard: '{properties.text}'."
|
||||
|
||||
def execute(self, context):
|
||||
context.window_manager.clipboard = self.text
|
||||
return {"FINISHED"}
|
||||
|
||||
Reference in New Issue
Block a user