shuvit 6 years ago
parent
commit
a820b77b2a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      bpy_misc/refresh_scripts.py

+ 1
- 1
bpy_misc/refresh_scripts.py View File

@@ -3,7 +3,7 @@ import bpy
3 3
 area = bpy.context.area
4 4
 for text in bpy.data.texts:
5 5
     area.spaces[0].text = text
6
-    if text.filepath != '' and reload_on == True:
6
+    if text.filepath and reload_on:
7 7
         bpy.ops.text.reload()
8 8
     if text.filepath != '' and text.is_dirty:
9 9
         bpy.ops.text.save()

Loading…
Cancel
Save