Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesrna/intern/rna_render.c
| Show First 20 Lines • Show All 498 Lines • ▼ Show 20 Lines | static void rna_def_render_engine(BlenderRNA *brna) | ||||
| RNA_def_boolean(func, "cancel", 0, "Cancel", "Don't mark tile as done, don't merge results unless forced"); | RNA_def_boolean(func, "cancel", 0, "Cancel", "Don't mark tile as done, don't merge results unless forced"); | ||||
| RNA_def_boolean(func, "do_merge_results", 0, "Merge Results", "Merge results even if cancel=true"); | RNA_def_boolean(func, "do_merge_results", 0, "Merge Results", "Merge results even if cancel=true"); | ||||
| func = RNA_def_function(srna, "test_break", "RE_engine_test_break"); | func = RNA_def_function(srna, "test_break", "RE_engine_test_break"); | ||||
| RNA_def_function_ui_description(func, "Test if the render operation should been canceled, this is a fast call that should be used regularly for responsiveness"); | RNA_def_function_ui_description(func, "Test if the render operation should been canceled, this is a fast call that should be used regularly for responsiveness"); | ||||
| prop = RNA_def_boolean(func, "do_break", 0, "Break", ""); | prop = RNA_def_boolean(func, "do_break", 0, "Break", ""); | ||||
| RNA_def_function_return(func, prop); | RNA_def_function_return(func, prop); | ||||
| func = RNA_def_function(srna, "active_view_get", "RE_engine_active_view_get"); | |||||
| prop = RNA_def_string(func, "view", NULL, 0, "View", "Single view active"); | |||||
| RNA_def_function_return(func, prop); | |||||
| func = RNA_def_function(srna, "active_view_set", "RE_engine_active_view_set"); | func = RNA_def_function(srna, "active_view_set", "RE_engine_active_view_set"); | ||||
| RNA_def_string(func, "view", NULL, 0, "View", "Single view to set as active"); /* NULL ok here */ | RNA_def_string(func, "view", NULL, 0, "View", "Single view to set as active"); /* NULL ok here */ | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| func = RNA_def_function(srna, "camera_shift_x", "RE_engine_get_camera_shift_x"); | func = RNA_def_function(srna, "camera_shift_x", "RE_engine_get_camera_shift_x"); | ||||
| prop = RNA_def_pointer(func, "camera", "Object", "", ""); | prop = RNA_def_pointer(func, "camera", "Object", "", ""); | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| prop = RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", ""); | |||||
| prop = RNA_def_float(func, "shift_x", 0.0f, 0.0f, FLT_MAX, "Shift X", "", 0.0f, FLT_MAX); | prop = RNA_def_float(func, "shift_x", 0.0f, 0.0f, FLT_MAX, "Shift X", "", 0.0f, FLT_MAX); | ||||
| RNA_def_function_return(func, prop); | RNA_def_function_return(func, prop); | ||||
| func = RNA_def_function(srna, "camera_model_matrix", "RE_engine_get_camera_model_matrix"); | func = RNA_def_function(srna, "camera_model_matrix", "RE_engine_get_camera_model_matrix"); | ||||
| prop = RNA_def_pointer(func, "camera", "Object", "", ""); | prop = RNA_def_pointer(func, "camera", "Object", "", ""); | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| prop = RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", ""); | |||||
| prop = RNA_def_float_matrix(func, "r_model_matrix", 4, 4, NULL, 0.0f, 0.0f, "Model Matrix", "Normalized camera model matrix", 0.0f, 0.0f); | prop = RNA_def_float_matrix(func, "r_model_matrix", 4, 4, NULL, 0.0f, 0.0f, "Model Matrix", "Normalized camera model matrix", 0.0f, 0.0f); | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| func = RNA_def_function(srna, "use_spherical_stereo", "RE_engine_get_spherical_stereo"); | |||||
sergey: You're calling boolean and function the same way by the looks of it? | |||||
Not Done Inline ActionsOne is the return parameter, the other the name of the function. Why is that a problem? dfelinto: One is the return parameter, the other the name of the function. Why is that a problem? | |||||
| prop = RNA_def_pointer(func, "camera", "Object", "", ""); | |||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | |||||
| prop = RNA_def_boolean(func, "use_spherical_stereo", 0, "Spherical Stereo", ""); | |||||
| RNA_def_function_return(func, prop); | |||||
| func = RNA_def_function(srna, "update_stats", "RE_engine_update_stats"); | func = RNA_def_function(srna, "update_stats", "RE_engine_update_stats"); | ||||
| RNA_def_function_ui_description(func, "Update and signal to redraw render status text"); | RNA_def_function_ui_description(func, "Update and signal to redraw render status text"); | ||||
| prop = RNA_def_string(func, "stats", NULL, 0, "Stats", ""); | prop = RNA_def_string(func, "stats", NULL, 0, "Stats", ""); | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| prop = RNA_def_string(func, "info", NULL, 0, "Info", ""); | prop = RNA_def_string(func, "info", NULL, 0, "Info", ""); | ||||
| RNA_def_property_flag(prop, PROP_REQUIRED); | RNA_def_property_flag(prop, PROP_REQUIRED); | ||||
| func = RNA_def_function(srna, "frame_set", "RE_engine_frame_set"); | func = RNA_def_function(srna, "frame_set", "RE_engine_frame_set"); | ||||
| ▲ Show 20 Lines • Show All 113 Lines • ▼ Show 20 Lines | static void rna_def_render_engine(BlenderRNA *brna) | ||||
| prop = RNA_def_property(srna, "bl_use_exclude_layers", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "bl_use_exclude_layers", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_EXCLUDE_LAYERS); | RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_EXCLUDE_LAYERS); | ||||
| RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); | RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); | ||||
| prop = RNA_def_property(srna, "bl_use_save_buffers", PROP_BOOLEAN, PROP_NONE); | prop = RNA_def_property(srna, "bl_use_save_buffers", PROP_BOOLEAN, PROP_NONE); | ||||
| RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_SAVE_BUFFERS); | RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_SAVE_BUFFERS); | ||||
| RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); | RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); | ||||
| prop = RNA_def_property(srna, "bl_use_spherical_stereo", PROP_BOOLEAN, PROP_NONE); | |||||
| RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_SPHERICAL_STEREO); | |||||
| RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); | |||||
| RNA_define_verify_sdna(1); | RNA_define_verify_sdna(1); | ||||
| } | } | ||||
| static void rna_def_render_result(BlenderRNA *brna) | static void rna_def_render_result(BlenderRNA *brna) | ||||
| { | { | ||||
| StructRNA *srna; | StructRNA *srna; | ||||
| FunctionRNA *func; | FunctionRNA *func; | ||||
| PropertyRNA *parm; | PropertyRNA *parm; | ||||
| ▲ Show 20 Lines • Show All 216 Lines • Show Last 20 Lines | |||||
You're calling boolean and function the same way by the looks of it?