|
Blender
V2.93
|
#include <stdlib.h>#include <string.h>#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_font.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_workspace.h"#include "BKE_world.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 "UI_interface.h"#include "RE_engine.h"#include "RE_pipeline.h"#include "engines/eevee/eevee_lightcache.h"#include "render_intern.h"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 (void) |
| 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 1130 of file render_shading.c.
|
static |
Definition at line 2312 of file render_shading.c.
References BKE_material_copybuf_copy(), C, CTX_data_main(), CTX_data_pointer_get_type(), PointerRNA::data, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, and RNA_Material.
Referenced by MATERIAL_OT_copy().
|
static |
Definition at line 2390 of file render_shading.c.
References GS, id, ID_LS, ID_PA, mtexcopied, mtexcopybuf, ID::name, and NULL.
Referenced by copy_mtex_exec().
|
static |
Definition at line 2454 of file render_shading.c.
References C, copy_mtex_copybuf(), CTX_data_pointer_get_type(), ED_render_clear_mtex_copybuf(), NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, and RNA_TextureSlot.
Referenced by TEXTURE_OT_slot_copy().
|
static |
Definition at line 2469 of file render_shading.c.
References C, CTX_data_pointer_get_type(), NULL, PointerRNA::owner_id, and RNA_TextureSlot.
Referenced by TEXTURE_OT_slot_copy().
| void ED_render_clear_mtex_copybuf | ( | void | ) |
Definition at line 2385 of file render_shading.c.
References mtexcopied.
Referenced by copy_mtex_exec(), and WM_init().
|
static |
Definition at line 1177 of file render_shading.c.
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 1187 of file render_shading.c.
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 1213 of file render_shading.c.
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 |
Definition at line 1155 of file render_shading.c.
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 1136 of file render_shading.c.
References Scene::eevee, LightCache::flag, SceneEEVEE::light_cache_data, LIGHTCACHE_SUBSET_ALL, LIGHTCACHE_SUBSET_CUBE, LIGHTCACHE_SUBSET_DIRTY, LIGHTCACHE_UPDATE_CUBE, LIGHTCACHE_UPDATE_GRID, NULL, wmOperator::ptr, RNA_enum_get(), and scene.
Referenced by light_cache_bake_exec(), and light_cache_bake_invoke().
|
static |
Definition at line 1307 of file render_shading.c.
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, NULL, 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().
|
static |
Definition at line 1300 of file render_shading.c.
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 2325 of file render_shading.c.
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 803 of file render_shading.c.
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 2362 of file render_shading.c.
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 178 of file render_shading.c.
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, NULL, 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 274 of file render_shading.c.
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, NULL, OB_CURVE, 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 534 of file render_shading.c.
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().
|
static |
Definition at line 383 of file render_shading.c.
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, NULL, OB_CURVE, 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 509 of file render_shading.c.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_deselect().
|
static |
Definition at line 594 of file render_shading.c.
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 223 of file render_shading.c.
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, NULL, 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 675 of file render_shading.c.
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(), Object::data, 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, NULL, 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 490 of file render_shading.c.
References C, and material_slot_de_select().
Referenced by OBJECT_OT_material_slot_select().
|
static |
Definition at line 750 of file render_shading.c.
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(), if(), LIB_ID_COPY_ACTIONS, LIB_ID_COPY_DEFAULT, NA_ADDED, NC_MATERIAL, NULL, OB_GPENCIL, OPERATOR_FINISHED, ptr, RNA_id_pointer_create(), RNA_Material, RNA_Object, 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 824 of file render_shading.c.
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, NULL, OPERATOR_FINISHED, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_Texture, tex, UI_context_active_but_prop_get_templateID(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_new().
|
static |
Definition at line 877 of file render_shading.c.
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, NULL, OPERATOR_FINISHED, ptr, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_World, UI_context_active_but_prop_get_templateID(), World::use_nodes, and WM_event_add_notifier().
Referenced by WORLD_OT_new().
|
static |
Definition at line 135 of file render_shading.c.
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 124 of file render_shading.c.
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 118 of file render_shading.c.
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 107 of file render_shading.c.
References BKE_object_is_in_editmode(), C, object_materials_supported_poll_ex(), and user_data.
Referenced by object_array_for_shading_edit_mode_enabled().
|
static |
Definition at line 166 of file render_shading.c.
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 147 of file render_shading.c.
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 202 of file render_shading.c.
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 362 of file render_shading.c.
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 574 of file render_shading.c.
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 514 of file render_shading.c.
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 641 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_move_exec(), wmOperatorType::name, NULL, 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 253 of file render_shading.c.
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 729 of file render_shading.c.
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 495 of file render_shading.c.
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 2346 of file render_shading.c.
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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_Material, and WM_event_add_notifier().
Referenced by MATERIAL_OT_paste().
|
static |
Definition at line 2414 of file render_shading.c.
References BLI_assert, GS, id, ID_LS, ID_PA, id_us_min(), id_us_plus(), MEM_mallocN, mtexcopied, mtexcopybuf, ID::name, NULL, and MTex::tex.
Referenced by paste_mtex_exec().
|
static |
Definition at line 2498 of file render_shading.c.
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, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, PointerRNA::owner_id, ParticleSystem::part, paste_mtex_copybuf(), RNA_FreestyleLineStyle, RNA_Light, RNA_Material, RNA_ParticleSystem, RNA_TextureSlot, RNA_World, and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_paste().
|
static |
Definition at line 1357 of file render_shading.c.
References RenderData::actview, BKE_scene_add_render_view(), BLI_listbase_count(), C, CTX_data_scene(), NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_FINISHED, Scene::r, scene, RenderData::views, and WM_event_add_notifier().
Referenced by SCENE_OT_render_view_add().
|
static |
Definition at line 1389 of file render_shading.c.
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().
|
static |
Definition at line 1349 of file render_shading.c.
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 1246 of file render_shading.c.
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, NULL, 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 1331 of file render_shading.c.
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 1369 of file render_shading.c.
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 1403 of file render_shading.c.
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 953 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, NULL, 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 1058 of file render_shading.c.
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_remove | ( | wmOperatorType * | ot | ) |
Definition at line 1009 of file render_shading.c.
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 1110 of file render_shading.c.
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 TEXTURE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 857 of file render_shading.c.
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 2476 of file render_shading.c.
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 2283 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, 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 2539 of file render_shading.c.
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 2237 of file render_shading.c.
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, NULL, OPERATOR_FINISHED, PointerRNA::owner_id, wmOperator::ptr, RNA_enum_get(), RNA_TextureSlot, set_active_mtex(), type, and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_move().
|
static |
Definition at line 1030 of file render_shading.c.
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(), NULL, 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 934 of file render_shading.c.
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 1078 of file render_shading.c.
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(), NULL, 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 994 of file render_shading.c.
References C, CTX_data_main(), CTX_data_scene(), CTX_data_view_layer(), ED_scene_view_layer_delete(), NC_SCENE, ND_RENDER_OPTIONS, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, scene, and WM_event_add_notifier().
Referenced by SCENE_OT_view_layer_remove().
|
static |
Definition at line 988 of file render_shading.c.
References C, CTX_data_scene(), ListBase::first, ListBase::last, scene, and Scene::view_layers.
Referenced by SCENE_OT_view_layer_remove().
| void WORLD_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 914 of file render_shading.c.
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 2382 of file render_shading.c.
Referenced by copy_mtex_copybuf(), ED_render_clear_mtex_copybuf(), and paste_mtex_copybuf().
|
static |
Definition at line 2383 of file render_shading.c.
Referenced by copy_mtex_copybuf(), and paste_mtex_copybuf().