fix for py error when no text is displayed
This commit is contained in:
@@ -51,11 +51,11 @@ class TEXT_HT_header(bpy.types.Header):
|
||||
row.itemR(st, "word_wrap", text="")
|
||||
row.itemR(st, "syntax_highlight", text="")
|
||||
|
||||
row = layout.row()
|
||||
row.itemO("text.run_script")
|
||||
row.itemR(text, "use_module")
|
||||
|
||||
if text:
|
||||
row = layout.row()
|
||||
row.itemO("text.run_script")
|
||||
row.itemR(text, "use_module")
|
||||
|
||||
row = layout.row()
|
||||
if text.filename != "":
|
||||
if text.dirty:
|
||||
|
Reference in New Issue
Block a user