mirror of
https://github.com/3b1b/manim.git
synced 2025-08-02 19:46:21 +08:00
Move ReloadManager logic into __main__.py
Since the reload logic no longer relies on any state, the relevant loop is simple enough that it feels clearest to include it in the main entry point file.
This commit is contained in:
@ -145,6 +145,9 @@ class ModuleLoader:
|
||||
ignore_manimlib_modules = get_global_config()["ignore_manimlib_modules_on_reload"]
|
||||
if ignore_manimlib_modules and module.__name__.startswith("manimlib"):
|
||||
return
|
||||
if module.__name__.startswith("manimlib.config"):
|
||||
# We don't want to reload global config
|
||||
return
|
||||
|
||||
if not hasattr(module, "__dict__"):
|
||||
return
|
||||
|
Reference in New Issue
Block a user