Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'precision_drawing_tools/pdt_command.py')
-rw-r--r--precision_drawing_tools/pdt_command.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/precision_drawing_tools/pdt_command.py b/precision_drawing_tools/pdt_command.py
index 6e4a70cd..eb45f73a 100644
--- a/precision_drawing_tools/pdt_command.py
+++ b/precision_drawing_tools/pdt_command.py
@@ -175,14 +175,16 @@ def command_run(self, context):
scene = context.scene
pg = scene.pdt_pg
- cmd = pg.command
+ cmd = pg.command.strip()
- if cmd.strip() == "?" or cmd.lower().strip() == "help":
+ if cmd == "?" or cmd.lower() == "help":
# fmt: off
context.window_manager.popup_menu(pdt_help, title="PDT Command Line Help", icon="INFO")
# fmt: on
return
- if len(cmd) < 3:
+ elif cmd == "":
+ return
+ elif len(cmd) < 3:
pg.error = PDT_ERR_CHARS_NUM
context.window_manager.popup_menu(oops, title="Error", icon="ERROR")
return