|
Blender V4.5
|
#include <cerrno>#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "CLG_log.h"#include "BLI_args.h"#include "BLI_dynstr.h"#include "BLI_fileops.h"#include "BLI_listbase.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_utf8.h"#include "BLI_system.h"#include "BLI_threads.h"#include "BLI_utildefines.h"#include "BLI_mempool.h"#include "BKE_appdir.hh"#include "BKE_blender_cli_command.hh"#include "BKE_blender_version.h"#include "BKE_blendfile.hh"#include "BKE_context.hh"#include "BKE_global.hh"#include "BKE_image_format.hh"#include "BKE_lib_id.hh"#include "BKE_main.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_sound.h"#include "GPU_context.hh"#include "RE_engine.h"#include "RE_pipeline.h"#include "WM_api.hh"#include "DEG_depsgraph.hh"#include "WM_types.hh"#include "creator_intern.h"Go to the source code of this file.
Classes | |
| struct | BuildDefs |
| struct | BA_ArgCallback_Deferred |
Macros | |
| #define | printf __ERROR__ |
| #define | PRINT(...) BLI_args_printf(ba, __VA_ARGS__) |
| #define | CB(a) a##_doc, a |
| #define | CB_EX(a, b) a##_doc_##b, a |
| #define | CB_ALL(a) (all ? a##_doc_all : a##_doc), a |
Functions | |
Build Defines | |
| static void | build_defs_init (BuildDefs *build_defs, bool force_all) |
Utility String Parsing | |
| static bool | parse_int_relative (const char *str, const char *str_end_test, int pos, int neg, int *r_value, const char **r_err_msg) |
| static const char * | parse_int_range_sep_search (const char *str, const char *str_end_test) |
| static bool | parse_int_range_relative (const char *str, const char *str_end_range, const char *str_end_test, int pos, int neg, int r_value_range[2], const char **r_err_msg) |
| static bool | parse_int_relative_clamp (const char *str, const char *str_end_test, int pos, int neg, int min, int max, int *r_value, const char **r_err_msg) |
| static bool | parse_int_range_relative_clamp (const char *str, const char *str_end_range, const char *str_end_test, int pos, int neg, int min, int max, int r_value_range[2], const char **r_err_msg) |
| static bool | parse_int_strict_range (const char *str, const char *str_end_test, const int min, const int max, int *r_value, const char **r_err_msg) |
| static bool | parse_int (const char *str, const char *str_end_test, int *r_value, const char **r_err_msg) |
| static bool | parse_int_clamp (const char *str, const char *str_end_test, int min, int max, int *r_value, const char **r_err_msg) |
| static int(* | parse_int_range_relative_clamp_n (const char *str, int pos, int neg, int min, int max, int *r_value_len, const char **r_err_msg))[2] |
Deferred Argument Handling | |
Support executing an argument running instead of WM_main which is deferred. Needed for arguments which are handled early but require sub-systems (Python in particular) * to be initialized. | |
| static bool | main_arg_deferred_is_set () |
| static void | main_arg_deferred_setup (BA_ArgCallback func, int argc, const char **argv, void *data) |
| void | main_arg_deferred_free () |
| static void | main_arg_deferred_exit_code_set (int exit_code) |
| int | main_arg_deferred_handle () |
Handle Argument Callbacks | |
| |
| #define | PY_ENABLE_AUTO ", (default, non-standard compilation option)" |
| #define | PY_DISABLE_AUTO "" |
| static const char | arg_handle_print_version_doc [] |
| static const char | arg_handle_print_help_doc [] |
| static const char | arg_handle_print_help_doc_win32 [] |
| static const char | arg_handle_arguments_end_doc [] |
| static const char | arg_handle_python_set_doc_enable [] |
| static const char | arg_handle_python_set_doc_disable [] |
| static const char | arg_handle_internet_allow_set_doc_online [] |
| static const char | arg_handle_internet_allow_set_doc_offline [] |
| static const char | arg_handle_crash_handler_disable_doc [] |
| static const char | arg_handle_abort_handler_disable_doc [] |
| static const char | arg_handle_debug_exit_on_error_doc [] |
| static const char | arg_handle_quiet_set_doc [] |
| static const char | arg_handle_background_mode_set_doc [] |
| static const char | arg_handle_command_set_doc [] |
| static const char | arg_handle_disable_depsgraph_on_file_load_doc [] |
| static const char | arg_handle_disable_liboverride_auto_resync_doc [] |
| static const char | arg_handle_log_level_set_doc [] |
| static const char | arg_handle_log_show_basename_set_doc [] |
| static const char | arg_handle_log_show_backtrace_set_doc [] |
| static const char | arg_handle_log_show_timestamp_set_doc [] |
| static const char | arg_handle_log_file_set_doc [] |
| static const char | arg_handle_log_set_doc [] |
| static const char | arg_handle_debug_mode_set_doc [] |
| static const char | arg_handle_debug_mode_generic_set_doc_ffmpeg [] |
| static const char | arg_handle_debug_mode_generic_set_doc_freestyle [] |
| static const char | arg_handle_debug_mode_generic_set_doc_python [] |
| static const char | arg_handle_debug_mode_generic_set_doc_events [] |
| static const char | arg_handle_debug_mode_generic_set_doc_handlers [] |
| static const char | arg_handle_debug_mode_generic_set_doc_wm [] |
| static const char | arg_handle_debug_mode_generic_set_doc_ghost [] |
| static const char | arg_handle_debug_mode_generic_set_doc_wintab [] |
| static const char | arg_handle_debug_mode_generic_set_doc_xr [] |
| static const char | arg_handle_debug_mode_generic_set_doc_xr_time [] |
| static const char | arg_handle_debug_mode_generic_set_doc_jobs [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_build [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_tag [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_time [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_eval [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_no_threads [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_pretty [] |
| static const char | arg_handle_debug_mode_generic_set_doc_depsgraph_uid [] |
| static const char | arg_handle_debug_mode_generic_set_doc_gpu_force_workarounds [] |
| static const char | arg_handle_debug_mode_io_doc [] |
| static const char | arg_handle_debug_mode_all_doc [] |
| static const char | arg_handle_debug_mode_libmv_doc [] |
| static const char | arg_handle_debug_mode_cycles_doc [] |
| static const char | arg_handle_debug_mode_memory_set_doc [] |
| static const char | arg_handle_debug_value_set_doc [] |
| static const char | arg_handle_debug_gpu_set_doc [] |
| static const char | arg_handle_debug_gpu_compile_shaders_set_doc [] |
| static const char | arg_handle_debug_gpu_scope_capture_set_doc [] |
| static const char | arg_handle_debug_gpu_renderdoc_set_doc [] |
| static const char | arg_handle_gpu_backend_set_doc_all [] |
| static const char | arg_handle_gpu_backend_set_doc [] |
| static const char | arg_handle_debug_fpe_set_doc [] |
| static const char | arg_handle_app_template_doc [] |
| static const char | arg_handle_factory_startup_set_doc [] |
| static const char | arg_handle_enable_event_simulate_doc [] |
| static const char | arg_handle_env_system_set_doc_datafiles [] |
| static const char | arg_handle_env_system_set_doc_scripts [] |
| static const char | arg_handle_env_system_set_doc_python [] |
| static const char | arg_handle_env_system_set_doc_extensions [] |
| static const char | arg_handle_playback_mode_doc [] |
| static const char | arg_handle_window_geometry_doc [] |
| static const char | arg_handle_native_pixels_set_doc [] |
| static const char | arg_handle_with_borders_doc [] |
| static const char | arg_handle_without_borders_doc [] |
| static const char | arg_handle_window_maximized_doc [] |
| static const char | arg_handle_no_window_focus_doc [] |
| static const char | arg_handle_start_with_console_doc [] |
| static const char | arg_handle_register_extension_doc [] |
| static const char | arg_handle_register_extension_all_doc [] |
| static const char | arg_handle_unregister_extension_doc [] |
| static const char | arg_handle_unregister_extension_all_doc [] |
| static const char | arg_handle_audio_disable_doc [] |
| static const char | arg_handle_audio_set_doc [] |
| static const char | arg_handle_output_set_doc [] |
| static const char | arg_handle_engine_set_doc [] |
| static const char | arg_handle_image_type_set_doc [] |
| static const char | arg_handle_threads_set_doc [] |
| static const char | arg_handle_verbosity_set_doc [] |
| static const char | arg_handle_extension_set_doc [] |
| static const char | arg_handle_render_frame_doc [] |
| static const char | arg_handle_render_animation_doc [] |
| static const char | arg_handle_scene_set_doc [] |
| static const char | arg_handle_frame_start_set_doc [] |
| static const char | arg_handle_frame_end_set_doc [] |
| static const char | arg_handle_frame_skip_set_doc [] |
| static const char | arg_handle_python_file_run_doc [] |
| static const char | arg_handle_python_text_run_doc [] |
| static const char | arg_handle_python_expr_run_doc [] |
| static const char | arg_handle_python_console_run_doc [] |
| static const char | arg_handle_python_exit_code_set_doc [] |
| static const char | arg_handle_python_use_system_env_set_doc [] |
| static const char | arg_handle_addons_set_doc [] |
| static const char | arg_handle_profile_gpu_set_doc [] |
| static const char | arg_handle_load_last_file_doc [] |
| static void | print_version_full () |
| static void | print_version_short () |
| static int | arg_handle_print_version (int, const char **, void *) |
| static void | print_help (bArgs *ba, bool all) |
| static void | help_print_ds_fn (void *ds_v, const char *format, va_list args) |
| static char * | main_args_help_as_string (bool all) |
| static int | arg_handle_print_help (int, const char **, void *data) |
| static int | arg_handle_arguments_end (int, const char **, void *) |
| static int | arg_handle_python_set (int, const char **, void *data) |
| static int | arg_handle_internet_allow_set (int, const char **, void *data) |
| static int | arg_handle_crash_handler_disable (int, const char **, void *) |
| static int | arg_handle_abort_handler_disable (int, const char **, void *) |
| static void | clog_abort_on_error_callback (void *fp) |
| static int | arg_handle_debug_exit_on_error (int, const char **, void *) |
| static int | arg_handle_quiet_set (int, const char **, void *) |
| static void | background_mode_set () |
| static int | arg_handle_background_mode_set (int, const char **, void *) |
| static int | arg_handle_command_set (int argc, const char **argv, void *data) |
| static int | arg_handle_disable_depsgraph_on_file_load (int, const char **, void *) |
| static int | arg_handle_disable_liboverride_auto_resync (int, const char **, void *) |
| static int | arg_handle_log_level_set (int argc, const char **argv, void *) |
| static int | arg_handle_log_show_basename_set (int, const char **, void *) |
| static int | arg_handle_log_show_backtrace_set (int, const char **, void *) |
| static int | arg_handle_log_show_timestamp_set (int, const char **, void *) |
| static int | arg_handle_log_file_set (int argc, const char **argv, void *) |
| static int | arg_handle_log_set (int argc, const char **argv, void *) |
| static int | arg_handle_debug_mode_set (int, const char **, void *data) |
| static int | arg_handle_debug_mode_generic_set (int, const char **, void *data) |
| static int | arg_handle_debug_mode_io (int, const char **, void *) |
| static int | arg_handle_debug_mode_all (int, const char **, void *) |
| static int | arg_handle_debug_mode_libmv (int, const char **, void *) |
| static int | arg_handle_debug_mode_cycles (int, const char **, void *) |
| static int | arg_handle_debug_mode_memory_set (int, const char **, void *) |
| static int | arg_handle_debug_value_set (int argc, const char **argv, void *) |
| static int | arg_handle_debug_gpu_set (int, const char **, void *) |
| static int | arg_handle_debug_gpu_compile_shaders_set (int, const char **, void *) |
| static int | arg_handle_debug_gpu_scope_capture_set (int argc, const char **argv, void *) |
| static int | arg_handle_debug_gpu_renderdoc_set (int, const char **, void *) |
| static int | arg_handle_gpu_backend_set (int argc, const char **argv, void *) |
| static int | arg_handle_debug_fpe_set (int, const char **, void *) |
| static int | arg_handle_app_template (int argc, const char **argv, void *) |
| static int | arg_handle_factory_startup_set (int, const char **, void *) |
| static int | arg_handle_enable_event_simulate (int, const char **, void *) |
| static int | arg_handle_env_system_set (int argc, const char **argv, void *) |
| static int | arg_handle_playback_mode (int argc, const char **argv, void *) |
| static int | arg_handle_window_geometry (int argc, const char **argv, void *) |
| static int | arg_handle_native_pixels_set (int, const char **, void *) |
| static int | arg_handle_with_borders (int, const char **, void *) |
| static int | arg_handle_without_borders (int, const char **, void *) |
| static int | arg_handle_window_maximized (int, const char **, void *) |
| static int | arg_handle_no_window_focus (int, const char **, void *) |
| static int | arg_handle_start_with_console (int, const char **, void *) |
| static bool | arg_handle_extension_registration (const bool do_register, const bool all_users) |
| static int | arg_handle_register_extension (int argc, const char **argv, void *data) |
| static int | arg_handle_register_extension_all (int argc, const char **argv, void *data) |
| static int | arg_handle_unregister_extension (int argc, const char **argv, void *data) |
| static int | arg_handle_unregister_extension_all (int argc, const char **argv, void *data) |
| static int | arg_handle_audio_disable (int, const char **, void *) |
| static int | arg_handle_audio_set (int argc, const char **argv, void *) |
| static int | arg_handle_output_set (int argc, const char **argv, void *data) |
| static int | arg_handle_engine_set (int argc, const char **argv, void *data) |
| static int | arg_handle_image_type_set (int argc, const char **argv, void *data) |
| static int | arg_handle_threads_set (int argc, const char **argv, void *) |
| static int | arg_handle_verbosity_set (int argc, const char **argv, void *) |
| static int | arg_handle_extension_set (int argc, const char **argv, void *data) |
| static int | arg_handle_render_frame (int argc, const char **argv, void *data) |
| static int | arg_handle_render_animation (int, const char **, void *data) |
| static int | arg_handle_scene_set (int argc, const char **argv, void *data) |
| static int | arg_handle_frame_start_set (int argc, const char **argv, void *data) |
| static int | arg_handle_frame_end_set (int argc, const char **argv, void *data) |
| static int | arg_handle_frame_skip_set (int argc, const char **argv, void *data) |
| static int | arg_handle_python_file_run (int argc, const char **argv, void *data) |
| static int | arg_handle_python_text_run (int argc, const char **argv, void *data) |
| static int | arg_handle_python_expr_run (int argc, const char **argv, void *data) |
| static int | arg_handle_python_console_run (int, const char **, void *data) |
| static int | arg_handle_python_exit_code_set (int argc, const char **argv, void *) |
| static int | arg_handle_python_use_system_env_set (int, const char **, void *) |
| static int | arg_handle_addons_set (int argc, const char **argv, void *data) |
| static int | arg_handle_profile_gpu_set (int, const char **, void *) |
| static bool | handle_load_file (bContext *C, const char *filepath_arg, const bool load_empty_file) |
| int | main_args_handle_load_file (int, const char **argv, void *data) |
| static int | arg_handle_load_last_file (int, const char **, void *data) |
| void | main_args_setup (bContext *C, bArgs *ba, bool all) |
| #define CB | ( | a | ) | a##_doc, a |
Referenced by main_args_setup().
| #define CB_ALL | ( | a | ) | (all ? a##_doc_all : a##_doc), a |
Referenced by main_args_setup().
Referenced by main_args_setup().
| #define PRINT | ( | ... | ) | BLI_args_printf(ba, __VA_ARGS__) |
Referenced by print_help().
| #define printf __ERROR__ |
| #define PY_DISABLE_AUTO "" |
Definition at line 949 of file creator_args.cc.
| #define PY_ENABLE_AUTO ", (default, non-standard compilation option)" |
Definition at line 948 of file creator_args.cc.
|
static |
Definition at line 1008 of file creator_args.cc.
References app_state, ApplicationState::signal, and ApplicationState::use_abort_handler.
Referenced by main_args_setup().
|
static |
Definition at line 2494 of file creator_args.cc.
References BLI_assert, BLI_snprintf(), BPY_run_string_exec(), data, free(), str, and UNUSED_VARS.
Referenced by main_args_setup().
|
static |
Definition at line 1613 of file creator_args.cc.
References app_template, STREQ, and WM_init_state_app_template_set().
Referenced by main_args_setup().
|
static |
Definition at line 938 of file creator_args.cc.
Referenced by main_args_setup().
|
static |
Definition at line 1894 of file creator_args.cc.
References BKE_sound_force_device().
Referenced by main_args_setup().
|
static |
Definition at line 1904 of file creator_args.cc.
References BKE_sound_force_device(), and STREQ.
Referenced by main_args_setup().
|
static |
Definition at line 1069 of file creator_args.cc.
References background_mode_set(), G, and print_version_short().
Referenced by main_args_setup().
|
static |
Definition at line 1085 of file creator_args.cc.
References arg_handle_command_set(), background_mode_set(), BKE_blender_cli_command_exec(), BKE_blender_cli_command_print_help(), BLI_assert_unreachable, data, G, main_arg_deferred_exit_code_set(), main_arg_deferred_is_set(), main_arg_deferred_setup(), and STREQ.
Referenced by arg_handle_command_set(), and main_args_setup().
|
static |
Definition at line 999 of file creator_args.cc.
References app_state, ApplicationState::signal, and ApplicationState::use_crash_handler.
Referenced by main_args_setup().
|
static |
Definition at line 1024 of file creator_args.cc.
References CLG_error_fn_set(), clog_abort_on_error_callback(), and MEM_enable_fail_on_memleak().
Referenced by main_args_setup().
|
static |
Definition at line 1604 of file creator_args.cc.
References main_signal_setup_fpe().
Referenced by main_args_setup().
|
static |
Definition at line 1464 of file creator_args.cc.
References G, and G_DEBUG_GPU_COMPILE_SHADERS.
Referenced by main_args_setup().
|
static |
Definition at line 1488 of file creator_args.cc.
References G, G_DEBUG_GPU, and G_DEBUG_GPU_RENDERDOC.
Referenced by main_args_setup().
|
static |
Definition at line 1475 of file creator_args.cc.
Referenced by main_args_setup().
|
static |
Definition at line 1452 of file creator_args.cc.
References CLG_type_filter_include(), G, and G_DEBUG_GPU.
Referenced by main_args_setup().
|
static |
Definition at line 1384 of file creator_args.cc.
References CCL_start_debug_logging(), G, G_DEBUG_ALL, and libmv_startDebugLogging().
Referenced by main_args_setup().
|
static |
Definition at line 1410 of file creator_args.cc.
References CCL_start_debug_logging().
Referenced by main_args_setup().
|
static |
Definition at line 1366 of file creator_args.cc.
References data, G, and POINTER_AS_INT.
Referenced by main_args_setup().
|
static |
Definition at line 1375 of file creator_args.cc.
References G, and G_DEBUG_IO.
Referenced by main_args_setup().
|
static |
Definition at line 1399 of file creator_args.cc.
References libmv_startDebugLogging().
Referenced by main_args_setup().
|
static |
Definition at line 1421 of file creator_args.cc.
References MEM_set_memory_debug.
Referenced by main_args_setup().
|
static |
Definition at line 1280 of file creator_args.cc.
References BKE_blender_version_string(), BLI_args_print(), BLI_mempool_set_memory_debug(), build_date, build_platform, build_time, build_type, data, G, G_DEBUG, MEM_set_memory_debug, and printf.
Referenced by main_args_setup().
|
static |
Definition at line 1430 of file creator_args.cc.
References G, parse_int(), and value.
Referenced by main_args_setup().
|
static |
Definition at line 1129 of file creator_args.cc.
References G, and G_BACKGROUND_NO_DEPSGRAPH.
Referenced by main_args_setup().
|
static |
Definition at line 1143 of file creator_args.cc.
References G, and G_LIBOVERRIDE_NO_AUTO_RESYNC.
Referenced by main_args_setup().
|
static |
Definition at line 1637 of file creator_args.cc.
References G, and G_FLAG_EVENT_SIMULATE.
Referenced by main_args_setup().
|
static |
Definition at line 1961 of file creator_args.cc.
References BLI_findstring(), CTX_data_scene(), data, DEG_id_tag_update(), RenderData::engine, Scene::id, ID_RECALC_SYNC_TO_EVAL, LISTBASE_FOREACH, offsetof, printf, Scene::r, R_engines, scene, STREQ, and STRNCPY_UTF8.
Referenced by main_args_setup().
|
static |
Definition at line 1656 of file creator_args.cc.
References BLI_assert_unreachable, and BLI_setenv().
Referenced by main_args_setup().
|
static |
Definition at line 1794 of file creator_args.cc.
References BLI_windows_register_blend_extension(), BLI_windows_unregister_blend_extension(), MEM_freeN(), result, and WM_platform_associate_set().
Referenced by arg_handle_register_extension(), arg_handle_register_extension_all(), arg_handle_unregister_extension(), and arg_handle_unregister_extension_all().
|
static |
Definition at line 2098 of file creator_args.cc.
References CTX_data_scene(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_SYNC_TO_EVAL, Scene::r, R_EXTENSION, RenderData::scemode, and scene.
Referenced by main_args_setup().
|
static |
Definition at line 1627 of file creator_args.cc.
References G, and G_FLAG_USERPREF_NO_SAVE_ON_EXIT.
Referenced by main_args_setup().
|
static |
Definition at line 2276 of file creator_args.cc.
References CTX_data_scene(), data, DEG_id_tag_update(), RenderData::efra, Scene::id, ID_RECALC_SYNC_TO_EVAL, MAXFRAME, MINAFRAME, parse_int_relative_clamp(), Scene::r, and scene.
Referenced by main_args_setup().
|
static |
Definition at line 2310 of file creator_args.cc.
References CTX_data_scene(), data, DEG_id_tag_update(), RenderData::frame_step, Scene::id, ID_RECALC_SYNC_TO_EVAL, MAXFRAME, parse_int_clamp(), Scene::r, and scene.
Referenced by main_args_setup().
|
static |
Definition at line 2242 of file creator_args.cc.
References CTX_data_scene(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_SYNC_TO_EVAL, MAXFRAME, MINAFRAME, parse_int_relative_clamp(), Scene::r, scene, and RenderData::sfra.
Referenced by main_args_setup().
|
static |
Definition at line 1520 of file creator_args.cc.
References GPU_BACKEND_METAL, GPU_BACKEND_NONE, GPU_BACKEND_OPENGL, GPU_backend_type_selection_set_override(), GPU_BACKEND_VULKAN, and STREQ.
Referenced by main_args_setup().
|
static |
Definition at line 2005 of file creator_args.cc.
References BKE_image_format_set(), BKE_imtype_from_arg(), CTX_data_scene(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_SYNC_TO_EVAL, RenderData::im_format, Scene::r, R_IMF_IMTYPE_INVALID, and scene.
Referenced by main_args_setup().
|
static |
Definition at line 982 of file creator_args.cc.
References data, G, G_FLAG_INTERNET_ALLOW, G_FLAG_INTERNET_OVERRIDE_PREF_OFFLINE, and G_FLAG_INTERNET_OVERRIDE_PREF_ONLINE.
Referenced by main_args_setup().
|
static |
Definition at line 2626 of file creator_args.cc.
References BLI_listbase_is_empty(), data, RecentFile::filepath, G, and handle_load_file().
Referenced by main_args_setup().
|
static |
Definition at line 1207 of file creator_args.cc.
References BLI_fopen(), CLG_output_set(), G, and UNLIKELY.
Referenced by main_args_setup().
|
static |
Definition at line 1155 of file creator_args.cc.
References CLG_level_set(), G, and parse_int_clamp().
Referenced by main_args_setup().
|
static |
Definition at line 1240 of file creator_args.cc.
References CLG_type_filter_exclude(), and CLG_type_filter_include().
Referenced by main_args_setup().
|
static |
Definition at line 1187 of file creator_args.cc.
References BLI_system_backtrace(), and CLG_backtrace_fn_set().
Referenced by main_args_setup().
|
static |
Definition at line 1178 of file creator_args.cc.
References CLG_output_use_basename_set().
Referenced by main_args_setup().
|
static |
Definition at line 1198 of file creator_args.cc.
References CLG_output_use_timestamp_set().
Referenced by main_args_setup().
|
static |
Definition at line 1743 of file creator_args.cc.
References WM_init_native_pixels().
Referenced by main_args_setup().
|
static |
Definition at line 1779 of file creator_args.cc.
References WM_init_window_focus_set().
Referenced by main_args_setup().
|
static |
Definition at line 1939 of file creator_args.cc.
References CTX_data_scene(), data, DEG_id_tag_update(), Scene::id, ID_RECALC_SYNC_TO_EVAL, RenderData::pic, Scene::r, scene, and STRNCPY().
Referenced by main_args_setup().
|
static |
Definition at line 1701 of file creator_args.cc.
References G, and WM_main_playanim().
Referenced by main_args_setup().
|
static |
Definition at line 922 of file creator_args.cc.
References BLI_assert_unreachable, data, and print_help().
Referenced by main_args_setup().
|
static |
Definition at line 627 of file creator_args.cc.
References BLI_assert_unreachable, and print_version_full().
Referenced by main_args_setup().
|
static |
|
static |
Definition at line 2434 of file creator_args.cc.
References BPY_run_string_eval(), data, and UNUSED_VARS.
Referenced by main_args_setup().
|
static |
Definition at line 2452 of file creator_args.cc.
References app_state, ApplicationState::exit_code_on_error, max, min, parse_int_strict_range(), and ApplicationState::python.
Referenced by main_args_setup().
|
static |
Definition at line 2407 of file creator_args.cc.
References app_state, BPY_run_string_exec(), data, ApplicationState::exit_code_on_error, ApplicationState::python, UNUSED_VARS, and WM_exit().
Referenced by main_args_setup().
|
static |
Definition at line 2336 of file creator_args.cc.
References app_state, BLI_path_canonicalize_native(), BPY_run_filepath(), data, ApplicationState::exit_code_on_error, FILE_MAX, ApplicationState::python, STRNCPY(), UNUSED_VARS, and WM_exit().
Referenced by main_args_setup().
|
static |
Definition at line 962 of file creator_args.cc.
References data, G, and G_FLAG_SCRIPT_AUTOEXEC.
Referenced by main_args_setup().
|
static |
Definition at line 2368 of file creator_args.cc.
References app_state, BKE_libblock_find_name(), BPY_run_text(), CTX_data_main(), data, ApplicationState::exit_code_on_error, ID_TXT, ApplicationState::python, UNUSED_VARS, and WM_exit().
Referenced by main_args_setup().
|
static |
Definition at line 2481 of file creator_args.cc.
References BPY_python_use_system_env().
Referenced by main_args_setup().
|
static |
|
static |
Definition at line 1822 of file creator_args.cc.
References arg_handle_extension_registration(), arg_handle_register_extension(), background_mode_set(), data, G, main_arg_deferred_is_set(), and main_arg_deferred_setup().
Referenced by arg_handle_register_extension(), and main_args_setup().
|
static |
Definition at line 1840 of file creator_args.cc.
References arg_handle_extension_registration(), arg_handle_register_extension_all(), background_mode_set(), data, G, main_arg_deferred_is_set(), and main_arg_deferred_setup().
Referenced by arg_handle_register_extension_all(), and main_args_setup().
|
static |
Definition at line 2191 of file creator_args.cc.
References BKE_reports_free(), BKE_reports_init(), CTX_data_main(), CTX_data_scene(), data, RenderData::efra, RenderData::frame_step, Scene::r, RE_NewSceneRender(), RE_RenderAnim(), RE_SetReports(), RPT_STORE, scene, and RenderData::sfra.
Referenced by main_args_setup().
|
static |
Definition at line 2136 of file creator_args.cc.
References BKE_reports_free(), BKE_reports_init(), CTX_data_main(), CTX_data_scene(), data, RenderData::efra, frame, RenderData::frame_step, MAXFRAME, MEM_freeN(), MINAFRAME, parse_int_range_relative_clamp_n(), Scene::r, RE_NewSceneRender(), RE_RenderAnim(), RE_SetReports(), RPT_STORE, scene, and RenderData::sfra.
Referenced by main_args_setup().
|
static |
Definition at line 2215 of file creator_args.cc.
References BKE_scene_set_name(), CTX_data_main(), CTX_data_scene_set(), CTX_wm_manager(), CTX_wm_window(), data, ListBase::first, scene, wmWindowManager::windows, and WM_window_set_active_scene().
Referenced by main_args_setup().
|
static |
Definition at line 1788 of file creator_args.cc.
References WM_init_state_start_with_console_set().
Referenced by main_args_setup().
|
static |
Definition at line 2039 of file creator_args.cc.
References BLENDER_MAX_THREADS, BLI_system_num_threads_override_set(), max, min, and parse_int_strict_range().
Referenced by main_args_setup().
|
static |
Definition at line 1858 of file creator_args.cc.
References arg_handle_extension_registration(), arg_handle_unregister_extension(), background_mode_set(), data, G, main_arg_deferred_is_set(), and main_arg_deferred_setup().
Referenced by arg_handle_unregister_extension(), and main_args_setup().
|
static |
Definition at line 1876 of file creator_args.cc.
References arg_handle_extension_registration(), arg_handle_unregister_extension_all(), background_mode_set(), data, G, main_arg_deferred_is_set(), and main_arg_deferred_setup().
Referenced by arg_handle_unregister_extension_all(), and main_args_setup().
|
static |
Definition at line 2071 of file creator_args.cc.
References CCL_logging_verbosity_set(), libmv_setLoggingVerbosity(), and parse_int().
Referenced by main_args_setup().
|
static |
Definition at line 1717 of file creator_args.cc.
References params, parse_int(), UNPACK4, and WM_init_state_size_set().
Referenced by main_args_setup().
|
static |
Definition at line 1770 of file creator_args.cc.
References WM_init_state_maximized_set().
Referenced by main_args_setup().
|
static |
Definition at line 1752 of file creator_args.cc.
References WM_init_state_normal_set().
Referenced by main_args_setup().
|
static |
Definition at line 1761 of file creator_args.cc.
References WM_init_state_fullscreen_set().
Referenced by main_args_setup().
|
static |
Shared by --background & --command.
Definition at line 1041 of file creator_args.cc.
References BKE_sound_force_device(), and G.
Referenced by arg_handle_background_mode_set(), arg_handle_command_set(), arg_handle_register_extension(), arg_handle_register_extension_all(), arg_handle_unregister_extension(), and arg_handle_unregister_extension_all().
|
static |
Definition at line 101 of file creator_args.cc.
References BuildDefs::win32, BuildDefs::with_cycles, BuildDefs::with_cycles_logging, BuildDefs::with_ffmpeg, BuildDefs::with_freestyle, BuildDefs::with_libmv, BuildDefs::with_opencolorio, BuildDefs::with_renderdoc, and BuildDefs::with_xr_openxr.
Referenced by main_args_setup(), and print_help().
|
static |
Definition at line 1014 of file creator_args.cc.
References BLI_system_backtrace().
Referenced by arg_handle_debug_exit_on_error().
|
static |
Implementation for arg_handle_load_last_file, also used by --open-last.
Definition at line 2533 of file creator_args.cc.
References BKE_blendfile_extension_check(), BKE_reports_free(), BKE_reports_init(), BLI_exists(), BLI_path_canonicalize_native(), CTX_wm_window_set(), FILE_MAX, G, G_MAIN, printf, RPT_PRINT, STRNCPY(), WM_exit(), and WM_file_read().
Referenced by arg_handle_load_last_file(), and main_args_handle_load_file().
|
static |
Definition at line 895 of file creator_args.cc.
References BLI_dynstr_vappendf().
Referenced by main_args_help_as_string().
|
static |
Definition at line 497 of file creator_args.cc.
References app_state, BLI_assert, BA_ArgCallback_Deferred::exit_code, and ApplicationState::main_arg_deferred.
Referenced by arg_handle_command_set().
| void main_arg_deferred_free | ( | ) |
Definition at line 487 of file creator_args.cc.
References app_state, BA_ArgCallback_Deferred::argc, BA_ArgCallback_Deferred::argv, ApplicationState::main_arg_deferred, and MEM_freeN().
Referenced by main().
| int main_arg_deferred_handle | ( | ) |
Handle an argument which requested deferred evaluation. Needed when arguments which evaluate early need Python to be initialized for example.
Definition at line 504 of file creator_args.cc.
References app_state, BA_ArgCallback_Deferred::argc, BA_ArgCallback_Deferred::argv, BA_ArgCallback_Deferred::data, BA_ArgCallback_Deferred::exit_code, BA_ArgCallback_Deferred::func, and ApplicationState::main_arg_deferred.
Referenced by main().
|
static |
Definition at line 467 of file creator_args.cc.
References app_state, and ApplicationState::main_arg_deferred.
Referenced by arg_handle_command_set(), arg_handle_register_extension(), arg_handle_register_extension_all(), arg_handle_unregister_extension(), and arg_handle_unregister_extension_all().
|
static |
Definition at line 472 of file creator_args.cc.
References app_state, BA_ArgCallback_Deferred::argc, BA_ArgCallback_Deferred::argv, BLI_assert, BA_ArgCallback_Deferred::data, data, BA_ArgCallback_Deferred::exit_code, BA_ArgCallback_Deferred::func, ApplicationState::main_arg_deferred, and MEM_callocN().
Referenced by arg_handle_command_set(), arg_handle_register_extension(), arg_handle_register_extension_all(), arg_handle_unregister_extension(), and arg_handle_unregister_extension_all().
| int main_args_handle_load_file | ( | int | argc, |
| const char ** | argv, | ||
| void * | data ) |
Handler for loading blend files.
Definition at line 2607 of file creator_args.cc.
References data, and handle_load_file().
Referenced by main().
|
static |
Definition at line 901 of file creator_args.cc.
References all(), BLI_args_create(), BLI_args_destroy(), BLI_args_print_fn_set(), BLI_dynstr_free(), BLI_dynstr_get_cstring(), BLI_dynstr_new(), help_print_ds_fn(), main_args_setup(), and print_help().
Referenced by main_args_setup().
| all | When enabled, all arguments are initialized even for configurations that don't apply to the current system. Used for documentation (see Python API: bpy.app.help_text(all=True)). |
Expand the doc-string from the function.
A version of CB that expands an additional suffix.
A version of CB that uses all, needed when the doc-string depends on build options.
Definition at line 2641 of file creator_args.cc.
References all(), arg_handle_abort_handler_disable(), arg_handle_addons_set(), arg_handle_app_template(), arg_handle_arguments_end(), arg_handle_audio_disable(), arg_handle_audio_set(), arg_handle_background_mode_set(), arg_handle_command_set(), arg_handle_crash_handler_disable(), arg_handle_debug_exit_on_error(), arg_handle_debug_fpe_set(), arg_handle_debug_gpu_compile_shaders_set(), arg_handle_debug_gpu_renderdoc_set(), arg_handle_debug_gpu_scope_capture_set(), arg_handle_debug_gpu_set(), arg_handle_debug_mode_all(), arg_handle_debug_mode_cycles(), arg_handle_debug_mode_generic_set(), arg_handle_debug_mode_io(), arg_handle_debug_mode_libmv(), arg_handle_debug_mode_memory_set(), arg_handle_debug_mode_set(), arg_handle_debug_value_set(), arg_handle_disable_depsgraph_on_file_load(), arg_handle_disable_liboverride_auto_resync(), arg_handle_enable_event_simulate(), arg_handle_engine_set(), arg_handle_env_system_set(), arg_handle_extension_set(), arg_handle_factory_startup_set(), arg_handle_frame_end_set(), arg_handle_frame_skip_set(), arg_handle_frame_start_set(), arg_handle_gpu_backend_set(), arg_handle_image_type_set(), arg_handle_internet_allow_set(), arg_handle_load_last_file(), arg_handle_log_file_set(), arg_handle_log_level_set(), arg_handle_log_set(), arg_handle_log_show_backtrace_set(), arg_handle_log_show_basename_set(), arg_handle_log_show_timestamp_set(), arg_handle_native_pixels_set(), arg_handle_no_window_focus(), arg_handle_output_set(), arg_handle_playback_mode(), arg_handle_print_help(), arg_handle_print_version(), arg_handle_profile_gpu_set(), arg_handle_python_console_run(), arg_handle_python_exit_code_set(), arg_handle_python_expr_run(), arg_handle_python_file_run(), arg_handle_python_set(), arg_handle_python_text_run(), arg_handle_python_use_system_env_set(), arg_handle_quiet_set(), arg_handle_register_extension(), arg_handle_register_extension_all(), arg_handle_render_animation(), arg_handle_render_frame(), arg_handle_scene_set(), arg_handle_start_with_console(), arg_handle_threads_set(), arg_handle_unregister_extension(), arg_handle_unregister_extension_all(), arg_handle_verbosity_set(), arg_handle_window_geometry(), arg_handle_window_maximized(), arg_handle_with_borders(), arg_handle_without_borders(), ARG_PASS_ENVIRONMENT, ARG_PASS_FINAL, ARG_PASS_SETTINGS, ARG_PASS_SETTINGS_FORCE, ARG_PASS_SETTINGS_GUI, BLI_args_add(), BLI_args_add_case(), BLI_args_pass_set(), BPY_python_app_help_text_fn, build_defs_init(), CB, CB_ALL, CB_EX, depsgraph, G_DEBUG_DEPSGRAPH, G_DEBUG_DEPSGRAPH_BUILD, G_DEBUG_DEPSGRAPH_EVAL, G_DEBUG_DEPSGRAPH_NO_THREADS, G_DEBUG_DEPSGRAPH_PRETTY, G_DEBUG_DEPSGRAPH_TAG, G_DEBUG_DEPSGRAPH_TIME, G_DEBUG_DEPSGRAPH_UID, G_DEBUG_EVENTS, G_DEBUG_FFMPEG, G_DEBUG_FREESTYLE, G_DEBUG_GHOST, G_DEBUG_GPU_FORCE_VULKAN_LOCAL_READ, G_DEBUG_GPU_FORCE_WORKAROUNDS, G_DEBUG_HANDLERS, G_DEBUG_JOBS, G_DEBUG_PYTHON, G_DEBUG_WINTAB, G_DEBUG_WM, G_DEBUG_XR, G_DEBUG_XR_TIME, main_args_help_as_string(), BuildDefs::with_cycles_logging, BuildDefs::with_ffmpeg, BuildDefs::with_freestyle, BuildDefs::with_libmv, BuildDefs::with_renderdoc, and BuildDefs::with_xr_openxr.
Referenced by main(), and main_args_help_as_string().
|
static |
Definition at line 291 of file creator_args.cc.
References parse_int_strict_range(), and str.
Referenced by arg_handle_debug_value_set(), arg_handle_verbosity_set(), arg_handle_window_geometry(), and parse_int_clamp().
|
static |
Definition at line 299 of file creator_args.cc.
References CLAMP, max, min, parse_int(), and str.
Referenced by arg_handle_frame_skip_set(), and arg_handle_log_level_set().
|
static |
Parse a number as a range, eg: 1..4.
The str_end_range argument is a result of parse_int_range_sep_search.
Definition at line 209 of file creator_args.cc.
References parse_int_relative(), pos, and str.
Referenced by parse_int_range_relative_clamp().
|
static |
Definition at line 241 of file creator_args.cc.
References CLAMP, max, min, parse_int_range_relative(), pos, and str.
Referenced by parse_int_range_relative_clamp_n().
|
static |
Version of parse_int_relative_clamp & parse_int_range_relative_clamp that parses a comma separated list of numbers.
Definition at line 369 of file creator_args.cc.
References ELEM, len, max, MEM_freeN(), MEM_malloc_arrayN(), min, parse_int_range_relative_clamp(), parse_int_range_sep_search(), parse_int_relative_clamp(), pos, and str.
Referenced by arg_handle_render_frame().
|
static |
Definition at line 186 of file creator_args.cc.
References str.
Referenced by parse_int_range_relative_clamp_n().
|
static |
Definition at line 148 of file creator_args.cc.
References pos, str, and value.
Referenced by parse_int_range_relative(), and parse_int_relative_clamp().
|
static |
Definition at line 225 of file creator_args.cc.
References CLAMP, max, min, parse_int_relative(), pos, and str.
Referenced by arg_handle_frame_end_set(), arg_handle_frame_start_set(), and parse_int_range_relative_clamp_n().
|
static |
No clamping, fails with any number outside the range.
Definition at line 264 of file creator_args.cc.
References max, min, str, and value.
Referenced by arg_handle_python_exit_code_set(), arg_handle_threads_set(), and parse_int().
|
static |
Definition at line 635 of file creator_args.cc.
References all(), BKE_blender_version_string(), BLI_args_has_other_doc(), BLI_args_print_arg_doc(), BLI_args_print_other_doc(), build_defs_init(), PRINT, BuildDefs::win32, BuildDefs::with_cycles, BuildDefs::with_cycles_logging, BuildDefs::with_ffmpeg, BuildDefs::with_freestyle, BuildDefs::with_libmv, BuildDefs::with_opencolorio, BuildDefs::with_renderdoc, and BuildDefs::with_xr_openxr.
Referenced by arg_handle_print_help(), and main_args_help_as_string().
|
static |
Definition at line 590 of file creator_args.cc.
References BKE_blender_version_string(), build_branch, build_cflags, build_commit_date, build_commit_time, build_cxxflags, build_date, build_hash, build_linkflags, build_platform, build_system, build_time, build_type, and printf.
Referenced by arg_handle_print_version().
|
static |
Definition at line 609 of file creator_args.cc.
References BKE_blender_version_string(), build_date, build_hash, build_time, and printf.
Referenced by arg_handle_background_mode_set().
|
static |
Definition at line 1005 of file creator_args.cc.
|
static |
Definition at line 2491 of file creator_args.cc.
|
static |
Definition at line 1610 of file creator_args.cc.
|
static |
Definition at line 934 of file creator_args.cc.
|
static |
Definition at line 1891 of file creator_args.cc.
|
static |
Definition at line 1900 of file creator_args.cc.
|
static |
Definition at line 1063 of file creator_args.cc.
|
static |
Definition at line 1078 of file creator_args.cc.
|
static |
Definition at line 996 of file creator_args.cc.
|
static |
Definition at line 1021 of file creator_args.cc.
|
static |
Definition at line 1601 of file creator_args.cc.
|
static |
Definition at line 1461 of file creator_args.cc.
|
static |
Definition at line 1485 of file creator_args.cc.
|
static |
Definition at line 1472 of file creator_args.cc.
|
static |
Definition at line 1449 of file creator_args.cc.
|
static |
Definition at line 1381 of file creator_args.cc.
|
static |
Definition at line 1407 of file creator_args.cc.
|
static |
Definition at line 1333 of file creator_args.cc.
|
static |
Definition at line 1336 of file creator_args.cc.
|
static |
Definition at line 1345 of file creator_args.cc.
|
static |
Definition at line 1348 of file creator_args.cc.
|
static |
Definition at line 1351 of file creator_args.cc.
|
static |
Definition at line 1339 of file creator_args.cc.
|
static |
Definition at line 1342 of file creator_args.cc.
|
static |
Definition at line 1354 of file creator_args.cc.
|
static |
Definition at line 1306 of file creator_args.cc.
|
static |
Definition at line 1297 of file creator_args.cc.
|
static |
Definition at line 1300 of file creator_args.cc.
|
static |
Definition at line 1316 of file creator_args.cc.
|
static |
Definition at line 1357 of file creator_args.cc.
|
static |
Definition at line 1309 of file creator_args.cc.
|
static |
Definition at line 1330 of file creator_args.cc.
|
static |
Definition at line 1303 of file creator_args.cc.
|
static |
Definition at line 1319 of file creator_args.cc.
|
static |
Definition at line 1312 of file creator_args.cc.
|
static |
Definition at line 1322 of file creator_args.cc.
|
static |
Definition at line 1327 of file creator_args.cc.
|
static |
Definition at line 1372 of file creator_args.cc.
|
static |
Definition at line 1396 of file creator_args.cc.
|
static |
Definition at line 1418 of file creator_args.cc.
|
static |
Definition at line 1273 of file creator_args.cc.
|
static |
Definition at line 1427 of file creator_args.cc.
|
static |
Definition at line 1118 of file creator_args.cc.
|
static |
Definition at line 1137 of file creator_args.cc.
|
static |
Definition at line 1634 of file creator_args.cc.
|
static |
Definition at line 1957 of file creator_args.cc.
|
static |
Definition at line 1643 of file creator_args.cc.
|
static |
Definition at line 1652 of file creator_args.cc.
|
static |
Definition at line 1649 of file creator_args.cc.
|
static |
Definition at line 1646 of file creator_args.cc.
|
static |
Definition at line 2095 of file creator_args.cc.
|
static |
Definition at line 1624 of file creator_args.cc.
|
static |
Definition at line 2273 of file creator_args.cc.
|
static |
Definition at line 2307 of file creator_args.cc.
|
static |
Definition at line 2239 of file creator_args.cc.
|
static |
Definition at line 1504 of file creator_args.cc.
|
static |
Definition at line 1498 of file creator_args.cc.
|
static |
Definition at line 1997 of file creator_args.cc.
|
static |
Definition at line 978 of file creator_args.cc.
|
static |
Definition at line 975 of file creator_args.cc.
|
static |
Definition at line 2623 of file creator_args.cc.
|
static |
Definition at line 1204 of file creator_args.cc.
|
static |
Definition at line 1151 of file creator_args.cc.
|
static |
Definition at line 1230 of file creator_args.cc.
|
static |
Definition at line 1184 of file creator_args.cc.
|
static |
Definition at line 1175 of file creator_args.cc.
|
static |
Definition at line 1195 of file creator_args.cc.
|
static |
Definition at line 1740 of file creator_args.cc.
|
static |
Definition at line 1776 of file creator_args.cc.
|
static |
Definition at line 1921 of file creator_args.cc.
|
static |
Definition at line 1679 of file creator_args.cc.
|
static |
Definition at line 916 of file creator_args.cc.
|
static |
Definition at line 919 of file creator_args.cc.
|
static |
Definition at line 624 of file creator_args.cc.
|
static |
Definition at line 2519 of file creator_args.cc.
|
static |
Definition at line 2431 of file creator_args.cc.
|
static |
Definition at line 2448 of file creator_args.cc.
|
static |
Definition at line 2404 of file creator_args.cc.
|
static |
Definition at line 2333 of file creator_args.cc.
|
static |
Definition at line 955 of file creator_args.cc.
|
static |
Definition at line 952 of file creator_args.cc.
|
static |
Definition at line 2365 of file creator_args.cc.
|
static |
Definition at line 2477 of file creator_args.cc.
|
static |
Definition at line 1031 of file creator_args.cc.
|
static |
Definition at line 1837 of file creator_args.cc.
|
static |
Definition at line 1819 of file creator_args.cc.
|
static |
Definition at line 2188 of file creator_args.cc.
|
static |
Definition at line 2128 of file creator_args.cc.
|
static |
Definition at line 2212 of file creator_args.cc.
|
static |
Definition at line 1785 of file creator_args.cc.
|
static |
Definition at line 2035 of file creator_args.cc.
|
static |
Definition at line 1873 of file creator_args.cc.
|
static |
Definition at line 1855 of file creator_args.cc.
|
static |
Definition at line 2068 of file creator_args.cc.
|
static |
Definition at line 1714 of file creator_args.cc.
|
static |
Definition at line 1767 of file creator_args.cc.
|
static |
Definition at line 1749 of file creator_args.cc.
|
static |
Definition at line 1758 of file creator_args.cc.