Blender
V3.3
|
#include <cstdlib>
#include <cstring>
#include "MEM_guardedalloc.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_utildefines.h"
#include "BLT_translation.h"
#include "BKE_anim_data.h"
#include "BKE_animsys.h"
#include "BKE_brush.h"
#include "BKE_context.h"
#include "BKE_curve.h"
#include "BKE_editmesh.h"
#include "BKE_global.h"
#include "BKE_image.h"
#include "BKE_layer.h"
#include "BKE_lib_id.h"
#include "BKE_linestyle.h"
#include "BKE_main.h"
#include "BKE_material.h"
#include "BKE_node.h"
#include "BKE_object.h"
#include "BKE_report.h"
#include "BKE_scene.h"
#include "BKE_texture.h"
#include "BKE_vfont.h"
#include "BKE_workspace.h"
#include "BKE_world.h"
#include "NOD_composite.h"
#include "DEG_depsgraph.h"
#include "DEG_depsgraph_build.h"
#include "RNA_access.h"
#include "WM_api.h"
#include "WM_types.h"
#include "ED_curve.h"
#include "ED_mesh.h"
#include "ED_node.h"
#include "ED_object.h"
#include "ED_paint.h"
#include "ED_render.h"
#include "ED_scene.h"
#include "ED_screen.h"
#include "RNA_define.h"
#include "RNA_prototypes.h"
#include "UI_interface.h"
#include "RE_engine.h"
#include "RE_pipeline.h"
#include "engines/eevee/eevee_lightcache.h"
#include "render_intern.hh"
Go to the source code of this file.
Light Cache Bake Operator | |
enum | { LIGHTCACHE_SUBSET_ALL = 0 , LIGHTCACHE_SUBSET_DIRTY , LIGHTCACHE_SUBSET_CUBE } |
static void | light_cache_bake_tag_cache (Scene *scene, wmOperator *op) |
static int | light_cache_bake_modal (bContext *C, wmOperator *op, const wmEvent *event) |
static void | light_cache_bake_cancel (bContext *C, wmOperator *op) |
static int | light_cache_bake_exec (bContext *C, wmOperator *op) |
static int | light_cache_bake_invoke (bContext *C, wmOperator *op, const wmEvent *UNUSED(event)) |
void | SCENE_OT_light_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) |
anonymous enum |
Enumerator | |
---|---|
LIGHTCACHE_SUBSET_ALL | |
LIGHTCACHE_SUBSET_DIRTY | |
LIGHTCACHE_SUBSET_CUBE |
Definition at line 1331 of file render_shading.cc.
|
static |
Definition at line 2520 of file render_shading.cc.
References BKE_material_copybuf_copy(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, OPERATOR_CANCELLED, and OPERATOR_FINISHED.
Referenced by MATERIAL_OT_copy().
Definition at line 2600 of file render_shading.cc.
References GS, id, ID_LS, ID_PA, mtexcopied, mtexcopybuf, and ID::name.
Referenced by copy_mtex_exec().
|
static |
Definition at line 2664 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().
Definition at line 2679 of file render_shading.cc.
References C, CTX_data_pointer_get_type(), and PointerRNA::owner_id.
Referenced by TEXTURE_OT_slot_copy().
Definition at line 2595 of file render_shading.cc.
References mtexcopied.
Referenced by copy_mtex_exec(), and WM_init().
Definition at line 1223 of file render_shading.cc.
References BLI_gset_add(), BLI_gset_str_new(), FOREACH_SCENE_OBJECT_BEGIN, FOREACH_SCENE_OBJECT_END, World::lightgroup, LightgroupMembership::name, scene, and Scene::world.
Referenced by view_layer_add_used_lightgroups_exec(), and view_layer_remove_unused_lightgroups_exec().
|
static |
Definition at line 1378 of file render_shading.cc.
References C, CTX_wm_manager(), wmOperator::customdata, scene, WM_JOB_TYPE_RENDER, and WM_jobs_kill_type().
Referenced by SCENE_OT_light_cache_bake().
|
static |
Definition at line 1388 of file render_shading.cc.
References C, RenderData::cfra, CTX_data_depsgraph_pointer(), CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_update_for_newframe(), EEVEE_lightbake_job(), EEVEE_lightbake_job_data_alloc(), EEVEE_lightbake_job_data_free(), G, light_cache_bake_tag_cache(), NA_EDITED, NC_SCENE, OPERATOR_FINISHED, Scene::r, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_light_cache_bake().
|
static |
Definition at line 1414 of file render_shading.cc.
References C, RenderData::cfra, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), CTX_wm_manager(), CTX_wm_window(), wmOperator::customdata, EEVEE_lightbake_job_create(), light_cache_bake_tag_cache(), OPERATOR_CANCELLED, OPERATOR_RUNNING_MODAL, wmOperator::ptr, Scene::r, RNA_int_get(), scene, WM_cursor_wait(), WM_event_add_modal_handler(), and WM_jobs_start().
Referenced by SCENE_OT_light_cache_bake().
|
static |
Catch escape key to cancel.
Definition at line 1356 of file render_shading.cc.
References BKE_report(), C, CTX_wm_manager(), wmOperator::customdata, Scene::eevee, EVT_ESCKEY, LightCache::flag, if(), SceneEEVEE::light_cache_data, LIGHTCACHE_INVALID, OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, OPERATOR_RUNNING_MODAL, wmOperator::reports, RPT_ERROR, scene, wmEvent::type, WM_JOB_TYPE_RENDER, and WM_jobs_test().
Referenced by SCENE_OT_light_cache_bake().
|
static |
Definition at line 1337 of file render_shading.cc.
References Scene::eevee, LightCache::flag, SceneEEVEE::light_cache_data, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_CUBE, LIGHTCACHE_SUBSET_DIRTY, LIGHTCACHE_UPDATE_CUBE, LIGHTCACHE_UPDATE_GRID, wmOperator::ptr, RNA_enum_get(), and scene.
Referenced by light_cache_bake_exec(), and light_cache_bake_invoke().
|
static |
Definition at line 1508 of file render_shading.cc.
References C, CTX_data_scene(), CTX_wm_manager(), DEG_id_tag_update(), Scene::eevee, EEVEE_lightcache_free(), EEVEE_lightcache_info_update(), Scene::id, ID_RECALC_COPY_ON_WRITE, SceneEEVEE::light_cache_data, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, WM_event_add_notifier(), WM_JOB_TYPE_LIGHT_BAKE, and WM_jobs_kill_type().
Referenced by SCENE_OT_light_cache_free().
Definition at line 1501 of file render_shading.cc.
References C, CTX_data_scene(), Scene::eevee, SceneEEVEE::light_cache_data, and scene.
Referenced by SCENE_OT_light_cache_free().
void MATERIAL_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 2534 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 794 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 2572 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_material_exec().
Referenced by ED_operatortypes_render().
|
static |
Definition at line 166 of file render_shading.cc.
References BKE_object_material_slot_add(), C, CTX_data_main(), CTX_data_scene(), ED_object_context(), 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, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_add().
|
static |
Definition at line 262 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(), Object::data, DEG_id_tag_update(), ED_curve_nurb_select_check(), ELEM, ListBase::first, Object::id, ID_RECALC_GEOMETRY, BMFace::mat_nr, Nurb::mat_nr, CharInfo::mat_nr, MEM_freeN, NC_GEOM, ND_DATA, Nurb::next, OB_CURVES_LEGACY, OB_FONT, OB_MESH, OB_SURF, object_array_for_shading_edit_mode_enabled(), OPERATOR_CANCELLED, OPERATOR_FINISHED, EditFont::textbufinfo, Object::totcol, Object::type, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_assign().
|
static |
Definition at line 522 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, CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_main(), Object::data, DEG_id_tag_update(), ED_object_context(), 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 371 of file render_shading.cc.
References Freestyle::a, Object::actcol, Nurb::bezt, BKE_curve_editNurbs_get(), BKE_editmesh_from_object(), BKE_object_material_get(), Nurb::bp, C, CTX_data_active_object(), Object::data, DEG_id_tag_update(), EDBM_deselect_by_material(), ELEM, BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, ListBase::first, BezTriple::hide, BPoint::hide, ID_RECALC_SELECT, Nurb::mat_nr, MEM_freeN, NC_GEOM, ND_SELECT, Nurb::next, OB_CURVES_LEGACY, OB_MESH, OB_SURF, object_array_for_shading_edit_mode_enabled(), OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, select(), SELECT, Object::totcol, Object::type, and WM_event_add_notifier().
Referenced by material_slot_deselect_exec(), and material_slot_select_exec().
|
static |
Definition at line 497 of file render_shading.cc.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_deselect().
|
static |
Definition at line 583 of file render_shading.cc.
References Object::actcol, BKE_object_material_remap(), C, DEG_id_tag_update(), ED_object_context(), 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 211 of file render_shading.cc.
References BKE_object_material_slot_remove(), BKE_report(), C, CTX_data_edit_object(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_object_context(), 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, scene, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove().
|
static |
Definition at line 664 of file render_shading.cc.
References Object::actcol, BKE_object_is_in_editmode(), BKE_object_material_slot_remove(), BKE_object_material_slot_used(), BKE_report(), BKE_reportf(), C, CTX_data_active_object(), CTX_data_main(), CTX_data_scene(), DEG_id_tag_update(), ED_paint_proj_mesh_data_check(), Object::id, ID_RECALC_GEOMETRY, MEM_freeN, 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, scene, Object::totcol, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove_unused().
|
static |
Definition at line 478 of file render_shading.cc.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_select().
|
static |
Definition at line 739 of file render_shading.cc.
References Object::actcol, BKE_gpencil_material_add(), BKE_id_copy_ex(), 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, NC_MATERIAL, OB_GPENCIL, OPERATOR_FINISHED, 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 815 of file render_shading.cc.
References BKE_id_copy(), BKE_texture_add(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DATA_, Tex::id, id_us_min(), NA_ADDED, NC_TEXTURE, OPERATOR_FINISHED, 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 868 of file render_shading.cc.
References BKE_id_copy_ex(), BKE_world_add(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, 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(), World::use_nodes, and WM_event_add_notifier().
Referenced by WORLD_OT_new().
|
static |
Definition at line 123 of file render_shading.cc.
References C, ED_object_array_in_mode_or_selected(), and object_array_for_shading_edit_mode_disabled_filter().
Referenced by material_slot_remove_unused_exec().
|
static |
Definition at line 112 of file render_shading.cc.
References BKE_object_is_in_editmode(), C, object_materials_supported_poll_ex(), and user_data.
Referenced by object_array_for_shading_edit_mode_disabled().
|
static |
Definition at line 106 of file render_shading.cc.
References C, ED_object_array_in_mode_or_selected(), and object_array_for_shading_edit_mode_enabled_filter().
Referenced by material_slot_assign_exec(), and material_slot_de_select().
|
static |
Definition at line 95 of file render_shading.cc.
References BKE_object_is_in_editmode(), C, object_materials_supported_poll_ex(), and user_data.
Referenced by object_array_for_shading_edit_mode_enabled().
Definition at line 154 of file render_shading.cc.
References C, ED_object_context(), and object_materials_supported_poll_ex().
Referenced by MATERIAL_OT_new(), 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 135 of file render_shading.cc.
References Object::actcol, C, data, Object::data, ED_operator_object_active_local_editable_ex(), ID_IS_LINKED, 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_material_slot_add | ( | wmOperatorType * | ot | ) |
Definition at line 190 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 350 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 563 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 502 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 630 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 241 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 718 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 483 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 2555 of file render_shading.cc.
References BKE_material_copybuf_paste(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, DEG_id_tag_update(), Material::id, ID_RECALC_COPY_ON_WRITE, NC_MATERIAL, ND_SHADING_LINKS, OPERATOR_CANCELLED, OPERATOR_FINISHED, and WM_event_add_notifier().
Referenced by MATERIAL_OT_paste().
Definition at line 2624 of file render_shading.cc.
References BLI_assert_msg, GS, id, ID_LS, ID_PA, id_us_min(), id_us_plus(), mtexcopied, mtexcopybuf, ID::name, and MTex::tex.
Referenced by paste_mtex_exec().
|
static |
Definition at line 2708 of file render_shading.cc.
References C, CTX_data_pointer_get_type(), PointerRNA::data, Light::id, FreestyleLineStyle::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 1558 of file render_shading.cc.
References RenderData::actview, BKE_scene_add_render_view(), BLI_listbase_count(), C, CTX_data_scene(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, Scene::r, scene, RenderData::views, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_add().
|
static |
Definition at line 1590 of file render_shading.cc.
References RenderData::actview, BKE_scene_remove_render_view(), BLI_findlink(), C, CTX_data_scene(), NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, scene, RenderData::views, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_remove().
Definition at line 1550 of file render_shading.cc.
References RenderData::actview, C, CTX_data_scene(), Scene::r, and scene.
Referenced by SCENE_OT_render_view_remove().
void SCENE_OT_light_cache_bake | ( | wmOperatorType * | ot | ) |
Definition at line 1447 of file render_shading.cc.
References wmOperatorType::cancel, wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, wmOperatorType::invoke, light_cache_bake_cancel(), light_cache_bake_exec(), light_cache_bake_invoke(), light_cache_bake_modal(), LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_CUBE, LIGHTCACHE_SUBSET_DIRTY, wmOperatorType::modal, wmOperatorType::name, ot, wmOperatorType::prop, PROP_SKIP_SAVE, RNA_def_enum(), RNA_def_int(), RNA_def_property_flag(), and wmOperatorType::srna.
Referenced by ED_operatortypes_render().
void SCENE_OT_light_cache_free | ( | wmOperatorType * | ot | ) |
Definition at line 1532 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::idname, light_cache_free_exec(), light_cache_free_poll(), wmOperatorType::name, ot, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
void SCENE_OT_render_view_add | ( | wmOperatorType * | ot | ) |
Definition at line 1570 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 1605 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 944 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 1049 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 1153 of file render_shading.cc.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, 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 1267 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 1000 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 1101 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 1203 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 1311 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 848 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 2686 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 2491 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 2750 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 2439 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(), type, and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_move().
|
static |
Definition at line 1021 of file render_shading.cc.
References BKE_view_layer_add_aov(), BKE_view_layer_verify_aov(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), RenderData::engine, Scene::id, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, Scene::r, RE_engine_create(), RE_engine_free(), RE_engines_find(), scene, RenderEngineType::update_render_passes, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_aov().
|
static |
Definition at line 925 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, ViewLayer::name, NC_SCENE, ND_LAYER, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), scene, 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 1121 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_str_replace_char(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, ViewLayer::lightgroups, LISTBASE_FOREACH, MAX_NAME, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::ptr, RNA_string_get(), RNA_struct_property_is_set(), scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_lightgroup().
|
static |
Definition at line 1241 of file render_shading.cc.
References BKE_view_layer_add_lightgroup(), BLI_findstring(), BLI_gset_free(), C, 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, Scene::id, ViewLayer::lightgroups, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_add_used_lightgroups().
|
static |
Definition at line 1069 of file render_shading.cc.
References ViewLayer::active_aov, BKE_view_layer_remove_aov(), BKE_view_layer_verify_aov(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), RenderData::engine, Scene::id, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, Scene::r, RE_engine_create(), RE_engine_free(), RE_engines_find(), scene, RenderEngineType::update_render_passes, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_aov().
|
static |
Definition at line 985 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, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 1181 of file render_shading.cc.
References ViewLayer::active_lightgroup, BKE_view_layer_remove_lightgroup(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), Scene::id, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_lightgroup().
Definition at line 979 of file render_shading.cc.
References C, CTX_data_scene(), ListBase::first, ListBase::last, scene, and Scene::view_layers.
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 1287 of file render_shading.cc.
References BKE_view_layer_remove_lightgroup(), BLI_gset_free(), BLI_gset_haskey(), C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), DEG_id_tag_update(), DEG_relations_tag_update(), get_used_lightgroups(), Scene::id, ViewLayer::lightgroups, LISTBASE_FOREACH_MUTABLE, NC_SCENE, ND_LAYER, Scene::nodetree, ntreeCompositUpdateRLayers(), OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove_unused_lightgroups().
void WORLD_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 905 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 2592 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), ED_render_clear_mtex_copybuf(), and paste_mtex_copybuf().
|
static |
Definition at line 2593 of file render_shading.cc.
Referenced by copy_mtex_copybuf(), and paste_mtex_copybuf().