Changeset View
Changeset View
Standalone View
Standalone View
tools_maintenance/update_screenshots.py
| Context not available. | |||||
| IMAGE_DIR_PREVIEW, | IMAGE_DIR_PREVIEW, | ||||
| "editors_preferences_section_" + section.lower().replace("_", "-") + ".png", | "editors_preferences_section_" + section.lower().replace("_", "-") + ".png", | ||||
| ) | ) | ||||
| if section == 'EXPERIMENTAL': | |||||
| prefs.view.show_developer_ui = True | |||||
| setattr(prefs, "active_section", section) | setattr(prefs, "active_section", section) | ||||
| yield from window_screenshot_to_filepath(window=prefs_window, filepath=filepath) | yield from window_screenshot_to_filepath(window=prefs_window, filepath=filepath) | ||||
| if section == 'EXPERIMENTAL': | |||||
| prefs.view.show_developer_ui = False | |||||
| bpy.ops.wm.window_close({"window": prefs_window}) | bpy.ops.wm.window_close({"window": prefs_window}) | ||||
| # import IPython | # import IPython | ||||
| Context not available. | |||||