Update make_label.py

If custom_text is a string there is no need to put it in a list.
This commit is contained in:
Roy-043
2021-05-22 16:33:12 +02:00
committed by GitHub
parent cbe5d9b219
commit 9ec9261fcd

View File

@@ -291,9 +291,6 @@ def make_label(target_point=App.Vector(0, 0, 0),
_err(translate("draft","Wrong input: must be a list of strings or a single string."))
return None
if isinstance(custom_text, str):
custom_text = [custom_text]
_msg("direction: {}".format(direction))
if not direction:
direction = "Horizontal"