|
Blender V5.0
|
#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_library.hh"#include "BKE_lightprobe.h"#include "BKE_linestyle.h"#include "BKE_main.hh"#include "BKE_main_invariants.hh"#include "BKE_material.hh"#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 "ED_undo.hh"#include "RNA_define.hh"#include "RNA_prototypes.hh"#include "UI_interface.hh"#include "RE_engine.h"#include "RE_pipeline.h"#include "engines/eevee/eevee_lightcache.hh"#include "render_intern.hh"Go to the source code of this file.
Classes | |
| struct | BakeOperatorData |
Macros | |
| #define | SWAP_MEMBER(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 wmOperatorStatus | lightprobe_cache_bake_invoke (bContext *C, wmOperator *op, const wmEvent *) |
| static wmOperatorStatus | lightprobe_cache_bake_modal (bContext *C, wmOperator *op, const wmEvent *event) |
| static void | lightprobe_cache_bake_cancel (bContext *C, wmOperator *op) |
| static wmOperatorStatus | 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) |
| #define SWAP_MEMBER | ( | member | ) |
Referenced by paste_material_exec().
| anonymous enum |
| Enumerator | |
|---|---|
| LIGHTCACHE_SUBSET_ALL | |
| LIGHTCACHE_SUBSET_SELECTED | |
| LIGHTCACHE_SUBSET_ACTIVE | |
Definition at line 1443 of file render_shading.cc.
|
static |
Definition at line 2709 of file render_shading.cc.
References BKE_report(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, FILE_MAX, Material::id, blender::bke::blendfile::PartialWriteContext::id_add(), ID_IS_PACKED, material_copybuffer_filepath_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RPT_INFO, and blender::bke::blendfile::PartialWriteContext::write().
Referenced by MATERIAL_OT_copy().
|
static |
Definition at line 2986 of file render_shading.cc.
References GS, ID_LS, ID_PA, mtexcopied, and mtexcopybuf.
Referenced by copy_mtex_exec().
|
static |
Definition at line 3065 of file render_shading.cc.
References C, 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 3080 of file render_shading.cc.
References C, CTX_data_pointer_get_type(), and PointerRNA::owner_id.
Referenced by TEXTURE_OT_slot_copy().
| void ED_render_clear_mtex_copybuf | ( | ) |
Definition at line 2981 of file render_shading.cc.
References mtexcopied.
Referenced by copy_mtex_exec(), and WM_init().
|
static |
Definition at line 1336 of file render_shading.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add_as(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, World::lightgroup, LightgroupMembership::name, and Scene::world.
Referenced by view_layer_add_used_lightgroups_exec(), and view_layer_remove_unused_lightgroups_exec().
|
static |
Definition at line 1588 of file render_shading.cc.
References C, 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 1598 of file render_shading.cc.
References BKE_report(), C, RenderData::cfra, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), EEVEE_lightbake_job(), EEVEE_lightbake_job_data_alloc(), EEVEE_lightbake_job_data_free(), EEVEE_lightbake_update(), G, lightprobe_cache_irradiance_volume_subset_get(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, wmOperator::reports, and RPT_ERROR.
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1517 of file render_shading.cc.
References BKE_report(), C, RenderData::cfra, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, data, EEVEE_lightbake_job_create(), blender::Vector< T, InlineBufferCapacity, Allocator >::is_empty(), lightprobe_cache_irradiance_volume_subset_get(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, Scene::r, wmOperator::reports, RPT_WARNING, WM_cursor_wait(), WM_event_add_modal_handler(), and WM_jobs_start().
Referenced by OBJECT_OT_lightprobe_cache_bake().
|
static |
Definition at line 1556 of file render_shading.cc.
References BKE_report(), C, CTX_wm_manager(), wmOperator::customdata, data, 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 1665 of file render_shading.cc.
References BKE_lightprobe_cache_free(), C, 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 1449 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, C, 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, ObjectsInViewLayerParams::no_dup_data, OB_LIGHTPROBE, 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 114 of file render_shading.cc.
References BKE_tempdir_base(), BLI_path_join, and FILE_MAX.
Referenced by copy_material_exec(), and paste_material_exec().
| void MATERIAL_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2746 of file render_shading.cc.
References copy_material_exec(), material_slot_populated_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 886 of file render_shading.cc.
References new_material_exec(), object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 2957 of file render_shading.cc.
References object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paste_material_exec().
Referenced by ED_operatortypes_render().
|
static |
Definition at line 198 of file render_shading.cc.
References BKE_object_material_slot_add(), C, 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 308 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, C, CTX_data_active_object(), CTX_wm_view3d(), DEG_id_tag_update(), ED_curve_nurb_select_check(), Curve::editfont, ELEM, i, 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 546 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, C, blender::ed::object::context_object(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, DEG_id_tag_update(), i, 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().
|
static |
Definition at line 414 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(), C, 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 521 of file render_shading.cc.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_deselect().
|
static |
Definition at line 620 of file render_shading.cc.
References Object::actcol, BKE_object_material_remap(), C, blender::ed::object::context_object(), DEG_id_tag_update(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN(), MEM_malloc_arrayN(), 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 184 of file render_shading.cc.
References Object::actcol, C, and CTX_data_active_object().
Referenced by MATERIAL_OT_copy(), material_slot_remove_poll(), and OBJECT_OT_material_slot_copy().
|
static |
Definition at line 761 of file render_shading.cc.
References BKE_object_material_slot_remove(), BKE_reportf(), C, 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_INFO, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove_all().
|
static |
Definition at line 263 of file render_shading.cc.
References BKE_object_material_slot_remove(), C, blender::ed::object::context_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, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove().
|
static |
Definition at line 243 of file render_shading.cc.
References BKE_object_is_in_editmode(), C, blender::ed::object::context_object(), CTX_wm_operator_poll_msg_set(), material_slot_populated_poll(), and object_materials_supported_poll_ex().
Referenced by OBJECT_OT_material_slot_remove(), OBJECT_OT_material_slot_remove_all(), and OBJECT_OT_material_slot_remove_unused().
|
static |
Definition at line 701 of file render_shading.cc.
References BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_reportf(), C, 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_INFO, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove_unused().
|
static |
Definition at line 502 of file render_shading.cc.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_select().
|
static |
Definition at line 828 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(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DATA_, ED_node_shader_default(), Material::id, id_us_min(), LIB_ID_COPY_ACTIONS, LIB_ID_COPY_DEFAULT, NA_ADDED, name, NC_MATERIAL, OB_GREASE_PENCIL, OPERATOR_FINISHED, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_struct_is_a(), Object::type, UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by MATERIAL_OT_new().
|
static |
Definition at line 907 of file render_shading.cc.
References BKE_id_copy(), BKE_id_move_to_same_lib(), BKE_texture_add(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DATA_, ED_undo_push_op(), Tex::id, ID_IS_LINKED, id_us_min(), NA_ADDED, NC_TEXTURE, OPERATOR_FINISHED, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_new().
|
static |
Definition at line 970 of file render_shading.cc.
References BKE_id_copy_ex(), BKE_id_move_to_same_lib(), BKE_world_add(), BLT_I18NCONTEXT_ID_WORLD, C, 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, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by WORLD_OT_new().
Definition at line 147 of file render_shading.cc.
References C, object_array_for_shading_edit_mode_disabled_filter(), and blender::ed::object::objects_in_mode_or_selected().
Referenced by material_slot_remove_all_exec(), and material_slot_remove_unused_exec().
|
static |
Definition at line 136 of file render_shading.cc.
References BKE_object_is_in_editmode(), C, and object_materials_supported_poll_ex().
Referenced by object_array_for_shading_edit_mode_disabled().
Definition at line 130 of file render_shading.cc.
References C, 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 119 of file render_shading.cc.
References BKE_object_is_in_editmode(), C, and object_materials_supported_poll_ex().
Referenced by object_array_for_shading_edit_mode_enabled().
|
static |
Definition at line 178 of file render_shading.cc.
References C, 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(), and OBJECT_OT_material_slot_move().
Definition at line 159 of file render_shading.cc.
References Object::actcol, C, data, 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 material_slot_remove_poll(), 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 1626 of file render_shading.cc.
References 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(), ot, PROP_SKIP_SAVE, RNA_def_enum(), and RNA_def_property_flag().
Referenced by ED_operatortypes_render().
| void OBJECT_OT_lightprobe_cache_free | ( | wmOperatorType * | ot | ) |
Definition at line 1688 of file render_shading.cc.
References LIGHTCACHE_SUBSET_ACTIVE, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_SELECTED, lightprobe_cache_free_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_enum().
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_add | ( | wmOperatorType * | ot | ) |
Definition at line 222 of file render_shading.cc.
References material_slot_add_exec(), object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_assign | ( | wmOperatorType * | ot | ) |
Definition at line 393 of file render_shading.cc.
References material_slot_assign_exec(), object_materials_supported_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 599 of file render_shading.cc.
References material_slot_copy_exec(), material_slot_populated_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 526 of file render_shading.cc.
References material_slot_deselect_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_move | ( | wmOperatorType * | ot | ) |
Definition at line 667 of file render_shading.cc.
References material_slot_move_exec(), object_materials_supported_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, ot, and RNA_def_enum().
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove | ( | wmOperatorType * | ot | ) |
Definition at line 287 of file render_shading.cc.
References material_slot_remove_exec(), material_slot_remove_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove_all | ( | wmOperatorType * | ot | ) |
Definition at line 807 of file render_shading.cc.
References material_slot_remove_all_exec(), material_slot_remove_poll(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove_unused | ( | wmOperatorType * | ot | ) |
Definition at line 746 of file render_shading.cc.
References material_slot_remove_poll(), material_slot_remove_unused_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_select | ( | wmOperatorType * | ot | ) |
Definition at line 507 of file render_shading.cc.
References material_slot_select_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2806 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_ensure_invariants(), BKE_main_free(), BKE_main_new(), BKE_ntree_update_tag_all(), BKE_report(), BLI_assert, C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), DEG_relations_tag_update(), 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 2771 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 2783 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, name, offsetof, LibraryIDLinkCallbackData::user_data, and which_libbase().
Referenced by paste_material_exec().
|
static |
Definition at line 3010 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(), MEM_callocN(), mtexcopied, and mtexcopybuf.
Referenced by paste_mtex_exec().
|
static |
Definition at line 3109 of file render_shading.cc.
References C, CTX_data_pointer_get_type(), PointerRNA::data, FreestyleLineStyle::id, Light::id, Material::id, ParticleSettings::id, World::id, 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 1740 of file render_shading.cc.
References RenderData::actview, BKE_main_ensure_invariants(), BKE_ntree_update_tag_id_changed(), BKE_scene_add_render_view(), BLI_listbase_count(), C, CTX_data_main(), CTX_data_scene(), Scene::id, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, Scene::r, RenderData::views, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_add().
|
static |
Definition at line 1776 of file render_shading.cc.
References RenderData::actview, BKE_main_ensure_invariants(), BKE_ntree_update_tag_id_changed(), BKE_scene_remove_render_view(), BLI_findlink(), C, CTX_data_main(), CTX_data_scene(), Scene::id, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, RenderData::views, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_remove().
|
static |
Definition at line 1732 of file render_shading.cc.
References RenderData::actview, C, CTX_data_scene(), and Scene::r.
Referenced by SCENE_OT_render_view_remove().
| void SCENE_OT_render_view_add | ( | wmOperatorType * | ot | ) |
Definition at line 1756 of file render_shading.cc.
References 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 1795 of file render_shading.cc.
References OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 1057 of file render_shading.cc.
References OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), 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 1162 of file render_shading.cc.
References 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 1266 of file render_shading.cc.
References ViewLayerLightgroup::name, OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_string(), and view_layer_add_lightgroup_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_view_layer_add_used_lightgroups | ( | wmOperatorType * | ot | ) |
Definition at line 1380 of file render_shading.cc.
References 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 1113 of file render_shading.cc.
References OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, 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 1214 of file render_shading.cc.
References 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 1316 of file render_shading.cc.
References 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 1423 of file render_shading.cc.
References 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 950 of file render_shading.cc.
References new_texture_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 3087 of file render_shading.cc.
References copy_mtex_exec(), copy_mtex_poll(), OPTYPE_INTERNAL, OPTYPE_REGISTER, and ot.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_move | ( | wmOperatorType * | ot | ) |
Definition at line 2681 of file render_shading.cc.
References OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, RNA_def_enum(), and texture_slot_move_exec().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_paste | ( | wmOperatorType * | ot | ) |
Definition at line 3151 of file render_shading.cc.
References OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, ot, and paste_mtex_exec().
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2629 of file render_shading.cc.
References BKE_animdata_fix_paths_rename(), BKE_animdata_from_id(), C, 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 1134 of file render_shading.cc.
References BKE_view_layer_add_aov(), BKE_view_layer_verify_aov(), C, Scene::compositing_node_group, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), RenderData::engine, Scene::id, ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, Scene::r, 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 1030 of file render_shading.cc.
References BKE_view_layer_add(), C, CTX_data_main(), CTX_data_scene(), CTX_wm_window(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, ID_RECALC_BASE_FLAGS, ViewLayer::name, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), VIEWLAYER_ADD_COPY, VIEWLAYER_ADD_NEW, 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 1234 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_string_replace_char(), C, Scene::compositing_node_group, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, ID_RECALC_SYNC_TO_EVAL, ViewLayer::lightgroups, LISTBASE_FOREACH, MAX_NAME, 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 1354 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_findstring(), C, Scene::compositing_node_group, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), get_used_lightgroups(), Scene::id, ID_RECALC_SYNC_TO_EVAL, ViewLayer::lightgroups, name, 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 1182 of file render_shading.cc.
References ViewLayer::active_aov, BKE_view_layer_remove_aov(), BKE_view_layer_verify_aov(), C, Scene::compositing_node_group, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), RenderData::engine, Scene::id, ID_RECALC_SYNC_TO_EVAL, NC_SCENE, ND_LAYER, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, Scene::r, 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 1098 of file render_shading.cc.
References C, 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 1294 of file render_shading.cc.
References ViewLayer::active_lightgroup, BKE_view_layer_remove_lightgroup(), C, Scene::compositing_node_group, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, 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 1092 of file render_shading.cc.
References C, CTX_data_scene(), ListBase::first, ListBase::last, and Scene::view_layers.
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 1400 of file render_shading.cc.
References BKE_view_layer_remove_lightgroup(), C, Scene::compositing_node_group, blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::contains_as(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), get_used_lightgroups(), Scene::id, 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 1010 of file render_shading.cc.
References new_world_exec(), OPTYPE_INTERNAL, OPTYPE_REGISTER, OPTYPE_UNDO, and ot.
Referenced by ED_operatortypes_render().
|
static |
Definition at line 2978 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), ED_render_clear_mtex_copybuf(), and paste_mtex_copybuf().
|
static |
Definition at line 2979 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), and paste_mtex_copybuf().