File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,20 +57,23 @@ def draw_text_header(self, context):
5757
5858class AutoReloadScriptPreferences :
5959 def update_reload_script (self , context ):
60+ print ("\n \n " )
6061 text = context .space_data .text
6162 try :
6263 bpy .ops .text .reload ()
6364 if self .auto_run_script :
6465 try :
6566 bpy .ops .text .run_script ()
66- print (f"Reload Script { text . name } , and Run Script !!!" )
67+ print (f"Reload Script and Run !!! { self . reload_script_number } { text . name } " )
6768 except Exception as e :
6869 import traceback
6970 traceback .print_exc ()
7071 traceback .print_stack ()
7172 print ("Run Error!!" , e .args )
73+ else :
74+ print (f"Reload Script { self .reload_script_number } { text .name } " )
7275 except Exception as e :
73- print (f"Reload Script { text . name } Error,Perhaps this script does not exist" , e .args )
76+ print (f"Reload Script Error,Perhaps this script does not exist { text . name } " , e .args )
7477 self .auto_reload_script = False
7578
7679 reload_script_number : bpy .props .IntProperty (default = - 1 , update = update_reload_script )
You can’t perform that action at this time.
0 commit comments