Browse Source

first win refresher test3

shuvit 6 years ago
parent
commit
e8ab86a238
2 changed files with 3 additions and 1 deletions
  1. 1
    1
      bpy_misc/refresh_scripts.py
  2. 2
    0
      controller2.py

+ 1
- 1
bpy_misc/refresh_scripts.py View File

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

+ 2
- 0
controller2.py View File

1
 #shuvit.org
1
 #shuvit.org
2
 
2
 
3
+#main control script
4
+
3
 #scale = .3
5
 #scale = .3
4
 #action layers
6
 #action layers
5
 #0-14 rolling
7
 #0-14 rolling

Loading…
Cancel
Save