|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "DNA_ID.h"#include "DNA_curve_types.h"#include "DNA_light_types.h"#include "DNA_lightprobe_types.h"#include "DNA_material_types.h"#include "DNA_node_types.h"#include "DNA_object_types.h"#include "DNA_particle_types.h"#include "DNA_scene_types.h"#include "DNA_space_types.h"#include "DNA_world_types.h"#include "BLI_listbase.h"#include "BLI_math_vector.h"#include "BLI_path_utils.hh"#include "BLI_string.h"#include "BLI_string_utils.hh"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "BKE_anim_data.hh"#include "BKE_animsys.h"#include "BKE_appdir.hh"#include "BKE_blender_copybuffer.hh"#include "BKE_blendfile.hh"#include "BKE_brush.hh"#include "BKE_context.hh"#include "BKE_curve.hh"#include "BKE_editmesh.hh"#include "BKE_global.hh"#include "BKE_image.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_lib_query.hh"#include "BKE_lib_remap.hh"#include "BKE_lightprobe.h"#include "BKE_linestyle.h"#include "BKE_main.hh"#include "BKE_material.h"#include "BKE_node.hh"#include "BKE_node_runtime.hh"#include "BKE_node_tree_update.hh"#include "BKE_object.hh"#include "BKE_report.hh"#include "BKE_scene.hh"#include "BKE_texture.h"#include "BKE_vfont.hh"#include "BKE_workspace.hh"#include "BKE_world.h"#include "NOD_composite.hh"#include "DEG_depsgraph.hh"#include "DEG_depsgraph_build.hh"#include "DEG_depsgraph_query.hh"#include "RNA_access.hh"#include "WM_api.hh"#include "WM_types.hh"#include "ED_curve.hh"#include "ED_mesh.hh"#include "ED_node.hh"#include "ED_object.hh"#include "ED_paint.hh"#include "ED_render.hh"#include "ED_scene.hh"#include "ED_screen.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "RE_engine.h"#include "RE_pipeline.h"#include "engines/eevee_next/eevee_lightcache.hh"#include "render_intern.hh"Go to the source code of this file.
Classes | |
| struct | BakeOperatorData |
Macros | |
| #define | SWAP_MEMBER(member) std::swap(ma->member, ma_from->member) |
Light Cache Bake Operator | |
| enum | { LIGHTCACHE_SUBSET_ALL = 0 , LIGHTCACHE_SUBSET_SELECTED , LIGHTCACHE_SUBSET_ACTIVE } |
| static blender::Vector< Object * > | lightprobe_cache_irradiance_volume_subset_get (bContext *C, wmOperator *op) |
| static int | lightprobe_cache_bake_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static int | lightprobe_cache_bake_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | lightprobe_cache_bake_cancel (bContext *C, wmOperator *op) |
| static int | lightprobe_cache_bake_exec (bContext *C, wmOperator *op) |
| void | OBJECT_OT_lightprobe_cache_bake (wmOperatorType *ot) |
#MTex Copy/Paste Utilities | |
| static short | mtexcopied = 0 |
| static MTex | mtexcopybuf |
| void | ED_render_clear_mtex_copybuf () |
| static void | copy_mtex_copybuf (ID *id) |
| static void | paste_mtex_copybuf (ID *id) |
Referenced by paste_material_exec().
| anonymous enum |
| Enumerator | |
|---|---|
| LIGHTCACHE_SUBSET_ALL | |
| LIGHTCACHE_SUBSET_SELECTED | |
| LIGHTCACHE_SUBSET_ACTIVE | |
Definition at line 1351 of file render_shading.cc.
|
static |
Definition at line 2605 of file render_shading.cc.
References BKE_main_blendfile_path(), BKE_report(), CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, FILE_MAX, Material::id, blender::bke::blendfile::PartialWriteContext::id_add(), material_copybuffer_filepath_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_INFO.
Referenced by MATERIAL_OT_copy().
|
static |
Definition at line 2877 of file render_shading.cc.
References GS, ID_LS, ID_PA, int, mtexcopied, and mtexcopybuf.
Referenced by copy_mtex_exec().
|
static |
Definition at line 2956 of file render_shading.cc.
References copy_mtex_copybuf(), CTX_data_pointer_get_type(), ED_render_clear_mtex_copybuf(), OPERATOR_CANCELLED, OPERATOR_FINISHED, and PointerRNA::owner_id.
Referenced by TEXTURE_OT_slot_copy().
|
static |
Definition at line 2971 of file render_shading.cc.
References CTX_data_pointer_get_type(), and PointerRNA::owner_id.
Referenced by TEXTURE_OT_slot_copy().
| void ED_render_clear_mtex_copybuf | ( | ) |
Definition at line 2872 of file render_shading.cc.
References mtexcopied.
Referenced by copy_mtex_exec(), and WM_init().
Definition at line 1242 of file render_shading.cc.
References BLI_gset_add(), BLI_gset_str_new(), FOREACH_SCENE_OBJECT_BEGIN, and FOREACH_SCENE_OBJECT_END.
Referenced by view_layer_add_used_lightgroups_exec(), and view_layer_remove_unused_lightgroups_exec().
|
static |
Definition at line 1484 of file render_shading.cc.
References CTX_wm_manager(), wmOperator::customdata, WM_JOB_TYPE_LIGHT_BAKE, and WM_jobs_kill_type().
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1494 of file render_shading.cc.
References BKE_report(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), EEVEE_NEXT_lightbake_job(), EEVEE_NEXT_lightbake_job_data_alloc(), EEVEE_NEXT_lightbake_job_data_free(), EEVEE_NEXT_lightbake_update(), G, lightprobe_cache_irradiance_volume_subset_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, and RPT_ERROR.
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1425 of file render_shading.cc.
References CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, data, EEVEE_NEXT_lightbake_job_create(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), lightprobe_cache_irradiance_volume_subset_get(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, scene, WM_cursor_wait(), WM_event_add_modal_handler(), and WM_jobs_start().
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1457 of file render_shading.cc.
References BKE_report(), CTX_wm_manager(), wmOperator::customdata, EVT_ESCKEY, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::reports, RPT_ERROR, wmEvent::type, WM_JOB_TYPE_LIGHT_BAKE, and WM_jobs_test().
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1561 of file render_shading.cc.
References BKE_lightprobe_cache_free(), CTX_data_scene(), CTX_wm_manager(), DEG_id_tag_update(), ID_RECALC_SHADING, ID_RECALC_SYNC_TO_EVAL, lightprobe_cache_irradiance_volume_subset_get(), NC_OBJECT, ND_DRAW, OPERATOR_FINISHED, WM_event_add_notifier(), WM_JOB_TYPE_LIGHT_BAKE, and WM_jobs_kill_type().
Referenced by OBJECT_OT_lightprobe_cache_free().
|
static |
Definition at line 1357 of file render_shading.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), BKE_lightprobe_cache_create(), BKE_lightprobe_cache_free(), BKE_view_layer_array_selected_objects_params(), BLI_assert_unreachable, CTX_data_active_object(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), ObjectsInViewLayerParams::filter_fn, FOREACH_OBJECT_BEGIN, FOREACH_OBJECT_END, ID_RECALC_SHADING, ID_RECALC_SYNC_TO_EVAL, LIGHTCACHE_SUBSET_ACTIVE, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_SELECTED, LIGHTPROBE_TYPE_VOLUME, OB_LIGHTPROBE, parameters, wmOperator::ptr, and RNA_enum_get().
Referenced by lightprobe_cache_bake_exec(), lightprobe_cache_bake_invoke(), and lightprobe_cache_free_exec().
|
static |
Definition at line 111 of file render_shading.cc.
References BKE_tempdir_base(), and BLI_path_join.
Referenced by copy_material_exec(), and paste_material_exec().
| void MATERIAL_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2637 of file render_shading.cc.
References copy_material_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 805 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_material_exec(), object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 2848 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, paste_material_exec(), and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
|
static |
Definition at line 187 of file render_shading.cc.
References BKE_object_material_slot_add(), blender::ed::object::context_object(), CTX_data_main(), CTX_data_scene(), ED_paint_proj_mesh_data_check(), Object::mode, NC_MATERIAL, NC_OBJECT, NC_SCENE, ND_DRAW, ND_OB_SHADING, ND_SHADING_PREVIEW, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_add().
|
static |
Definition at line 283 of file render_shading.cc.
References Object::actcol, BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BKE_object_material_get(), BKE_vfont_select_get(), BMEditMesh::bm, BM_elem_flag_test, BM_ELEM_SELECT, BM_FACES_OF_MESH, BM_ITER_MESH, CTX_data_active_object(), CTX_wm_view3d(), DEG_id_tag_update(), ED_curve_nurb_select_check(), ELEM, ID_RECALC_GEOMETRY, LISTBASE_FOREACH, BMFace::mat_nr, CharInfo::mat_nr, NC_GEOM, ND_DATA, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_SURF, object_array_for_shading_edit_mode_enabled(), OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::textbufinfo, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_assign().
|
static |
Definition at line 520 of file render_shading.cc.
References Object::actcol, BKE_object_material_array_assign(), BKE_object_material_array_p(), BKE_object_material_len_p(), BLI_assert, blender::ed::object::context_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, DEG_id_tag_update(), ID_RECALC_GEOMETRY, Object::mat, Object::matbits, MEM_callocN, MEM_freeN(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, Object::totcol, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_copy().
Definition at line 388 of file render_shading.cc.
References Object::actcol, BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BKE_object_material_get(), BKE_object_material_index_get_with_hint(), CTX_data_active_object(), DEG_id_tag_update(), EDBM_deselect_by_material(), ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, BezTriple::hide, BPoint::hide, ID_RECALC_SELECT, LISTBASE_FOREACH, NC_GEOM, ND_SELECT, OB_CURVES_LEGACY, OB_MESH, OB_SURF, object_array_for_shading_edit_mode_enabled(), OPERATOR_CANCELLED, OPERATOR_FINISHED, SELECT, select(), and WM_event_add_notifier().
Referenced by material_slot_deselect_exec(), and material_slot_select_exec().
|
static |
Definition at line 495 of file render_shading.cc.
References material_slot_de_select().
Referenced by OBJECT_OT_material_slot_deselect().
|
static |
Definition at line 593 of file render_shading.cc.
References Object::actcol, BKE_object_material_remap(), blender::ed::object::context_object(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN(), MEM_mallocN, NC_OBJECT, ND_DATA, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, range_vn_u(), RNA_enum_get(), Object::totcol, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_move().
|
static |
Definition at line 232 of file render_shading.cc.
References BKE_object_material_slot_remove(), BKE_report(), blender::ed::object::context_object(), CTX_data_edit_object(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_paint_proj_mesh_data_check(), Object::id, ID_RECALC_GEOMETRY, Object::mode, NC_MATERIAL, NC_OBJECT, NC_SCENE, ND_DRAW, ND_OB_SHADING, ND_SHADING_PREVIEW, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove().
|
static |
Definition at line 674 of file render_shading.cc.
References BKE_object_is_in_editmode(), BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_report(), BKE_reportf(), CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_paint_proj_mesh_data_check(), ID_RECALC_GEOMETRY, Object::mode, NC_MATERIAL, NC_OBJECT, NC_SCENE, ND_DRAW, ND_OB_SHADING, ND_SHADING_PREVIEW, ND_TOOLSETTINGS, OB_MODE_TEXTURE_PAINT, object_array_for_shading_edit_mode_disabled(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_ERROR, RPT_INFO, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove_unused().
|
static |
Definition at line 476 of file render_shading.cc.
References material_slot_de_select().
Referenced by OBJECT_OT_material_slot_select().
|
static |
Definition at line 746 of file render_shading.cc.
References Object::actcol, BKE_gpencil_material_add(), BKE_id_copy_ex(), BKE_id_move_to_same_lib(), BKE_material_add(), BKE_object_material_get_p(), BKE_object_material_slot_add(), CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DATA_, ED_node_shader_default(), ELEM, Material::id, id_us_min(), LIB_ID_COPY_ACTIONS, LIB_ID_COPY_DEFAULT, NA_ADDED, NC_MATERIAL, OB_GPENCIL_LEGACY, OB_GREASE_PENCIL, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_is_a(), Object::type, PointerRNA::type, UI_context_active_but_prop_get_templateID(), Material::use_nodes, and WM_event_add_notifier().
Referenced by MATERIAL_OT_new().
|
static |
Definition at line 826 of file render_shading.cc.
References BKE_id_copy(), BKE_id_move_to_same_lib(), BKE_texture_add(), CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DATA_, Tex::id, id_us_min(), NA_ADDED, NC_TEXTURE, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), tex, UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_new().
|
static |
Definition at line 883 of file render_shading.cc.
References BKE_id_copy_ex(), BKE_id_move_to_same_lib(), BKE_world_add(), BLT_I18NCONTEXT_ID_WORLD, CTX_DATA_, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, ED_node_shader_default(), World::id, id_us_min(), LIB_ID_COPY_ACTIONS, LIB_ID_COPY_DEFAULT, NA_ADDED, NC_WORLD, OPERATOR_FINISHED, PointerRNA::owner_id, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), UI_context_active_but_prop_get_templateID(), World::use_nodes, and WM_event_add_notifier().
Referenced by WORLD_OT_new().
Definition at line 144 of file render_shading.cc.
References object_array_for_shading_edit_mode_disabled_filter(), and blender::ed::object::objects_in_mode_or_selected().
Referenced by material_slot_remove_unused_exec().
|
static |
Definition at line 133 of file render_shading.cc.
References BKE_object_is_in_editmode(), and object_materials_supported_poll_ex().
Referenced by object_array_for_shading_edit_mode_disabled().
Definition at line 127 of file render_shading.cc.
References object_array_for_shading_edit_mode_enabled_filter(), and blender::ed::object::objects_in_mode_or_selected().
Referenced by material_slot_assign_exec(), and material_slot_de_select().
|
static |
Definition at line 116 of file render_shading.cc.
References BKE_object_is_in_editmode(), and object_materials_supported_poll_ex().
Referenced by object_array_for_shading_edit_mode_enabled().
|
static |
Definition at line 175 of file render_shading.cc.
References blender::ed::object::context_object(), and object_materials_supported_poll_ex().
Referenced by MATERIAL_OT_new(), MATERIAL_OT_paste(), OBJECT_OT_material_slot_add(), OBJECT_OT_material_slot_assign(), OBJECT_OT_material_slot_move(), OBJECT_OT_material_slot_remove(), and OBJECT_OT_material_slot_remove_unused().
Definition at line 156 of file render_shading.cc.
References Object::actcol, Object::data, ED_operator_object_active_local_editable_ex(), ID_IS_EDITABLE, ID_IS_OVERRIDE_LIBRARY, Object::matbits, OB_TYPE_SUPPORT_MATERIAL, and Object::type.
Referenced by object_array_for_shading_edit_mode_disabled_filter(), object_array_for_shading_edit_mode_enabled_filter(), and object_materials_supported_poll().
| void OBJECT_OT_lightprobe_cache_bake | ( | wmOperatorType * | ot | ) |
Definition at line 1522 of file render_shading.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, LIGHTCACHE_SUBSET_ACTIVE, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_SELECTED, lightprobe_cache_bake_cancel(), lightprobe_cache_bake_exec(), lightprobe_cache_bake_invoke(), lightprobe_cache_bake_modal(), wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_lightprobe_cache_free | ( | wmOperatorType * | ot | ) |
Definition at line 1584 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, LIGHTCACHE_SUBSET_ACTIVE, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_SELECTED, lightprobe_cache_free_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_add | ( | wmOperatorType * | ot | ) |
Definition at line 211 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_add_exec(), wmOperatorType::name, object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_assign | ( | wmOperatorType * | ot | ) |
Definition at line 367 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_assign_exec(), wmOperatorType::name, object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 573 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_copy_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 500 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_deselect_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_move | ( | wmOperatorType * | ot | ) |
Definition at line 640 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_move_exec(), wmOperatorType::name, object_materials_supported_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, RNA_def_enum(), and wmOperatorType::srna.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove | ( | wmOperatorType * | ot | ) |
Definition at line 262 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_remove_exec(), wmOperatorType::name, object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove_unused | ( | wmOperatorType * | ot | ) |
Definition at line 725 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_remove_unused_exec(), wmOperatorType::name, object_materials_supported_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_select | ( | wmOperatorType * | ot | ) |
Definition at line 481 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_select_exec(), wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2696 of file render_shading.cc.
References bNodeTree::adt, b, BKE_copybuffer_read(), BKE_libblock_remap(), BKE_library_foreach_ID_link(), BKE_main_blendfile_path_from_global(), BKE_main_free(), BKE_main_new(), BKE_ntree_update_tag_all(), BKE_report(), BLI_assert, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), ED_node_tree_propagate_change(), FILE_MAX, Main::filepath, FILTER_ID_IM, FILTER_ID_MA, FILTER_ID_NT, FILTER_ID_OB, FILTER_ID_TXT, flag, bNodeTree::id, Material::id, ID_FLAG_CLIPBOARD_MARK, ID_RECALC_SYNC_TO_EVAL, ID_REMAP_FORCE_UI_POINTERS, IDWALK_NOP, LISTBASE_FOREACH, material_copybuffer_filepath_get(), Main::materials, MEM_freeN(), NC_MATERIAL, ND_SHADING_LINKS, blender::bke::node_tree_free_embedded_tree(), Material::nodetree, OPERATOR_CANCELLED, OPERATOR_FINISHED, bNodeTree::owner_id, paste_material_nodetree_ids_decref(), paste_material_nodetree_ids_relink_or_clear(), wmOperator::reports, RPT_ERROR, RPT_WARNING, STRNCPY, SWAP_MEMBER, and WM_event_add_notifier().
Referenced by MATERIAL_OT_paste().
|
static |
Clear ID's as freeing the data-block doesn't handle reference counting.
Definition at line 2661 of file render_shading.cc.
References LibraryIDLinkCallbackData::cb_flag, LibraryIDLinkCallbackData::id_pointer, id_us_min(), IDWALK_CB_USER, and IDWALK_RET_NOP.
Referenced by paste_material_exec().
|
static |
Re-map ID's from the clipboard to ID's in bmain, by name.
Definition at line 2673 of file render_shading.cc.
References BLI_findstring(), LibraryIDLinkCallbackData::cb_flag, GS, id_lib_extern(), LibraryIDLinkCallbackData::id_pointer, id_us_ensure_real(), id_us_min(), id_us_plus(), IDWALK_CB_USER, IDWALK_CB_USER_ONE, IDWALK_RET_NOP, offsetof, LibraryIDLinkCallbackData::user_data, and which_libbase().
Referenced by paste_material_exec().
|
static |
Definition at line 2901 of file render_shading.cc.
References BLI_assert_msg, BLI_findindex(), G_MAIN, GS, id_lib_extern(), ID_LS, ID_PA, id_us_min(), id_us_plus(), int, MEM_callocN, mtexcopied, mtexcopybuf, and MTex::tex.
Referenced by paste_mtex_exec().
|
static |
Definition at line 3000 of file render_shading.cc.
References CTX_data_pointer_get_type(), PointerRNA::data, FreestyleLineStyle::id, Light::id, Material::id, ParticleSettings::id, World::id, linestyle, NC_TEXTURE, ND_SHADING_LINKS, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, ParticleSystem::part, paste_mtex_copybuf(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_paste().
|
static |
Definition at line 1636 of file render_shading.cc.
References BKE_ntree_update_tag_id_changed(), BKE_scene_add_render_view(), BLI_listbase_count(), CTX_data_main(), CTX_data_scene(), ED_node_tree_propagate_change(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_add().
|
static |
Definition at line 1672 of file render_shading.cc.
References BKE_ntree_update_tag_id_changed(), BKE_scene_remove_render_view(), BLI_findlink(), CTX_data_main(), CTX_data_scene(), ED_node_tree_propagate_change(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_remove().
|
static |
Definition at line 1628 of file render_shading.cc.
References CTX_data_scene().
Referenced by SCENE_OT_render_view_remove().
| void SCENE_OT_render_view_add | ( | wmOperatorType * | ot | ) |
Definition at line 1652 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and render_view_add_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_render_view_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1691 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, render_view_remove_exec(), and render_view_remove_poll().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_add | ( | wmOperatorType * | ot | ) |
Definition at line 963 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_enum(), wmOperatorType::srna, view_layer_add_exec(), VIEWLAYER_ADD_COPY, VIEWLAYER_ADD_EMPTY, VIEWLAYER_ADD_NEW, and WM_menu_invoke().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_add_aov | ( | wmOperatorType * | ot | ) |
Definition at line 1068 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view_layer_add_aov_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_add_lightgroup | ( | wmOperatorType * | ot | ) |
Definition at line 1172 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, ViewLayerLightgroup::name, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::prop, RNA_def_string(), wmOperatorType::srna, and view_layer_add_lightgroup_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_add_used_lightgroups | ( | wmOperatorType * | ot | ) |
Definition at line 1287 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view_layer_add_used_lightgroups_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1019 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, wmOperatorType::poll, view_layer_remove_exec(), and view_layer_remove_poll().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_remove_aov | ( | wmOperatorType * | ot | ) |
Definition at line 1120 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view_layer_remove_aov_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_remove_lightgroup | ( | wmOperatorType * | ot | ) |
Definition at line 1222 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view_layer_remove_lightgroup_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_remove_unused_lightgroups | ( | wmOperatorType * | ot | ) |
Definition at line 1331 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and view_layer_remove_unused_lightgroups_exec().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 863 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_texture_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2978 of file render_shading.cc.
References copy_mtex_exec(), copy_mtex_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_move | ( | wmOperatorType * | ot | ) |
Definition at line 2577 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), wmOperatorType::srna, and texture_slot_move_exec().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_paste | ( | wmOperatorType * | ot | ) |
Definition at line 3042 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paste_mtex_exec().
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2525 of file render_shading.cc.
References BKE_animdata_fix_paths_rename(), BKE_animdata_from_id(), CTX_data_pointer_get_type(), CTX_data_scene(), DEG_id_tag_update(), give_active_mtex(), MAX_MTEX, NC_TEXTURE, OPERATOR_FINISHED, PointerRNA::owner_id, wmOperator::ptr, RNA_enum_get(), set_active_mtex(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_move().
|
static |
Definition at line 1040 of file render_shading.cc.
References BKE_view_layer_add_aov(), BKE_view_layer_verify_aov(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, RE_engine_create(), RE_engine_free(), RE_engines_find(), RenderEngineType::update_render_passes, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_aov().
|
static |
Definition at line 944 of file render_shading.cc.
References BKE_view_layer_add(), CTX_data_main(), CTX_data_scene(), CTX_wm_window(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_BASE_FLAGS, ViewLayer::name, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), WM_event_add_notifier(), WM_window_get_active_view_layer(), and WM_window_set_active_view_layer().
Referenced by SCENE_OT_view_layer_add().
|
static |
Definition at line 1140 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_string_replace_char(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_SYNC_TO_EVAL, ViewLayer::lightgroups, LISTBASE_FOREACH, MAX_NAME, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), RNA_struct_property_is_set(), STREQ, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_lightgroup().
|
static |
Definition at line 1260 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_findstring(), BLI_gset_free(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), get_used_lightgroups(), GSET_FOREACH_BEGIN, GSET_FOREACH_END, ID_RECALC_SYNC_TO_EVAL, ViewLayer::lightgroups, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), offsetof, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_used_lightgroups().
|
static |
Definition at line 1088 of file render_shading.cc.
References ViewLayer::active_aov, BKE_view_layer_remove_aov(), BKE_view_layer_verify_aov(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, RE_engine_create(), RE_engine_free(), RE_engines_find(), RenderEngineType::update_render_passes, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_aov().
|
static |
Definition at line 1004 of file render_shading.cc.
References CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_scene_view_layer_delete(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 1200 of file render_shading.cc.
References ViewLayer::active_lightgroup, BKE_view_layer_remove_lightgroup(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_lightgroup().
|
static |
Definition at line 998 of file render_shading.cc.
References CTX_data_scene().
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 1307 of file render_shading.cc.
References BKE_view_layer_remove_lightgroup(), BLI_gset_free(), BLI_gset_haskey(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), get_used_lightgroups(), ID_RECALC_SYNC_TO_EVAL, ViewLayer::lightgroups, LISTBASE_FOREACH_MUTABLE, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_unused_lightgroups().
| void WORLD_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 924 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_world_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2869 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), ED_render_clear_mtex_copybuf(), and paste_mtex_copybuf().
|
static |
Definition at line 2870 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), and paste_mtex_copybuf().