|
Blender
V2.59
|
#include <stdlib.h>#include <string.h>#include "MEM_guardedalloc.h"#include "DNA_curve_types.h"#include "DNA_lamp_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_blenlib.h"#include "BLI_math.h"#include "BLI_editVert.h"#include "BLI_listbase.h"#include "BLI_utildefines.h"#include "BKE_animsys.h"#include "BKE_context.h"#include "BKE_depsgraph.h"#include "BKE_font.h"#include "BKE_global.h"#include "BKE_icons.h"#include "BKE_image.h"#include "BKE_library.h"#include "BKE_main.h"#include "BKE_material.h"#include "BKE_node.h"#include "BKE_report.h"#include "BKE_scene.h"#include "BKE_texture.h"#include "BKE_world.h"#include "IMB_imbuf.h"#include "IMB_imbuf_types.h"#include "GPU_material.h"#include "RNA_access.h"#include "WM_api.h"#include "WM_types.h"#include "ED_curve.h"#include "ED_mesh.h"#include "ED_render.h"#include "ED_screen.h"#include "RNA_define.h"#include "UI_interface.h"#include "render_intern.h"Go to the source code of this file.
Definition in file render_shading.c.
| static int copy_material_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 869 of file render_shading.c.
References copy_matcopybuf(), CTX_data_pointer_get_type(), PointerRNA::data, NC_MATERIAL, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_Material, and WM_event_add_notifier().
Referenced by MATERIAL_OT_copy().
| static void copy_mtex_copybuf | ( | ID * | id | ) | [static] |
Definition at line 934 of file render_shading.c.
References GS, ID_LA, ID_MA, ID_PA, ID_WO, ID::name, and NULL.
Referenced by copy_mtex_exec().
| static int copy_mtex_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1006 of file render_shading.c.
References copy_mtex_copybuf(), CTX_data_pointer_get_type(), PointerRNA::data, ED_render_clear_mtex_copybuf(), PointerRNA::id, NC_TEXTURE, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_TextureSlot, and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_copy().
| static int copy_mtex_poll | ( | bContext * | C | ) | [static] |
Definition at line 1023 of file render_shading.c.
References CTX_data_pointer_get_type(), PointerRNA::data, PointerRNA::id, NULL, and RNA_TextureSlot.
Referenced by TEXTURE_OT_slot_copy().
| void ED_render_clear_mtex_copybuf | ( | void | ) |
Definition at line 929 of file render_shading.c.
Referenced by copy_mtex_exec(), and WM_init().
| static int envmap_clear_all_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 837 of file render_shading.c.
References BKE_free_envmapdata(), CTX_data_main(), Tex::env, ListBase::first, Tex::id, NA_EDITED, NC_TEXTURE, ID::next, OPERATOR_FINISHED, Main::tex, and WM_event_add_notifier().
Referenced by TEXTURE_OT_envmap_clear_all().
| static int envmap_clear_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 797 of file render_shading.c.
References BKE_free_envmapdata(), CTX_data_pointer_get_type(), PointerRNA::data, Tex::env, NA_EDITED, NC_TEXTURE, OPERATOR_FINISHED, RNA_Texture, and WM_event_add_notifier().
Referenced by TEXTURE_OT_envmap_clear().
| static int envmap_clear_poll | ( | bContext * | C | ) | [static] |
Definition at line 808 of file render_shading.c.
References CTX_data_pointer_get_type(), EnvMap::cube, PointerRNA::data, Tex::env, NULL, EnvMap::ok, and RNA_Texture.
Referenced by TEXTURE_OT_envmap_clear(), and TEXTURE_OT_envmap_clear_all().
| static int envmap_save_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 720 of file render_shading.c.
References BKE_add_image_extension(), CTX_data_pointer_get_type(), CTX_data_scene(), PointerRNA::data, Tex::env, FILE_MAX, RenderData::imtype, NC_TEXTURE, OPERATOR_FINISHED, wmOperator::ptr, Scene::r, R_EXTENSION, RNA_string_get(), RNA_Texture, save_envmap(), RenderData::scemode, WM_cursor_wait(), and WM_event_add_notifier().
Referenced by envmap_save_invoke(), and TEXTURE_OT_envmap_save().
| static int envmap_save_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | UNUSEDevent | ||
| ) | [static] |
Definition at line 745 of file render_shading.c.
References envmap_save_exec(), G, Global::main, Main::name, OPERATOR_RUNNING_MODAL, wmOperator::ptr, RNA_boolean_set(), RNA_property_is_set(), RNA_string_set(), USER_RELPATHS, and WM_event_add_fileselect().
Referenced by TEXTURE_OT_envmap_save().
| static int envmap_save_poll | ( | bContext * | C | ) | [static] |
Definition at line 763 of file render_shading.c.
References CTX_data_pointer_get_type(), EnvMap::cube, PointerRNA::data, Tex::env, NULL, EnvMap::ok, and RNA_Texture.
Referenced by TEXTURE_OT_envmap_save().
| void MATERIAL_OT_copy | ( | wmOperatorType * | ot | ) |
Definition at line 883 of file render_shading.c.
References copy_material_exec(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 394 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_material_exec(), OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| void MATERIAL_OT_paste | ( | wmOperatorType * | ot | ) |
Definition at line 911 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and paste_material_exec().
Referenced by ED_operatortypes_render().
| static int material_slot_add_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 92 of file render_shading.c.
References CTX_data_pointer_get_type(), PointerRNA::data, NC_OBJECT, ND_DRAW, ND_OB_SHADING, object_add_material_slot(), OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_Object, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_add().
| static int material_slot_assign_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 157 of file render_shading.c.
References Object::actcol, BKE_font_getselection(), Nurb::charidx, CTX_data_pointer_get_type(), DAG_id_tag_update(), PointerRNA::data, Object::data, ED_curve_editnurbs(), ELEM, EditFace::f, EditMesh::faces, ListBase::first, i, Object::id, isNurbsel(), Nurb::mat_nr, EditFace::mat_nr, CharInfo::mat_nr, NC_GEOM, ND_DATA, EditFace::next, Nurb::next, OB_CURVE, OB_FONT, OB_MESH, OB_RECALC_DATA, OB_SURF, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_Object, SELECT, EditFont::textbufinfo, Object::type, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_assign().
| static int material_slot_copy_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 323 of file render_shading.c.
References Object::actcol, assign_matarar(), CTX_DATA_BEGIN, CTX_DATA_END, CTX_data_pointer_get_type(), PointerRNA::data, Object::data, give_matarar(), NC_OBJECT, ND_DRAW, OPERATOR_CANCELLED, OPERATOR_FINISHED, RNA_Object, Object::totcol, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_copy().
| static int material_slot_de_select | ( | bContext * | C, |
| int | select | ||
| ) | [static] |
Definition at line 217 of file render_shading.c.
References Object::actcol, Nurb::bezt, Nurb::bp, CTX_data_pointer_get_type(), PointerRNA::data, Object::data, ED_curve_editnurbs(), ELEM, EM_deselect_by_material(), EM_select_by_material(), BezTriple::f1, BPoint::f1, BezTriple::f2, BezTriple::f3, ListBase::first, BezTriple::hide, BPoint::hide, Nurb::mat_nr, NC_GEOM, ND_SELECT, Nurb::next, OB_CURVE, OB_MESH, OB_SURF, OPERATOR_CANCELLED, OPERATOR_FINISHED, Nurb::pntsu, Nurb::pntsv, RNA_Object, SELECT, Object::type, and WM_event_add_notifier().
Referenced by material_slot_deselect_exec(), and material_slot_select_exec().
| static int material_slot_deselect_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 303 of file render_shading.c.
References material_slot_de_select().
Referenced by OBJECT_OT_material_slot_deselect().
| static int material_slot_remove_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 121 of file render_shading.c.
References BKE_report(), CTX_data_edit_object(), CTX_data_pointer_get_type(), DAG_id_tag_update(), PointerRNA::data, Object::id, NC_OBJECT, ND_DRAW, ND_OB_SHADING, OB_RECALC_DATA, object_remove_material_slot(), OPERATOR_CANCELLED, OPERATOR_FINISHED, wmOperator::reports, RNA_Object, RPT_ERROR, and WM_event_add_notifier().
Referenced by OBJECT_OT_material_slot_remove().
| static int material_slot_select_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 284 of file render_shading.c.
References material_slot_de_select().
Referenced by OBJECT_OT_material_slot_select().
| static int new_material_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 364 of file render_shading.c.
References add_material(), copy_material(), CTX_data_pointer_get_type(), PointerRNA::data, Material::id, NA_ADDED, NC_MATERIAL, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_Material, RNA_property_pointer_set(), RNA_property_update(), uiIDContextProperty(), ID::us, and WM_event_add_notifier().
Referenced by MATERIAL_OT_new().
| static int new_texture_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 410 of file render_shading.c.
References add_texture(), copy_texture(), CTX_data_pointer_get_type(), PointerRNA::data, Tex::id, NA_ADDED, NC_TEXTURE, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_Texture, uiIDContextProperty(), ID::us, and WM_event_add_notifier().
Referenced by TEXTURE_OT_new().
| static int new_world_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 456 of file render_shading.c.
References add_world(), copy_world(), CTX_data_pointer_get_type(), PointerRNA::data, World::id, NA_ADDED, NC_WORLD, OPERATOR_FINISHED, RNA_id_pointer_create(), RNA_property_pointer_set(), RNA_property_update(), RNA_World, uiIDContextProperty(), ID::us, and WM_event_add_notifier().
Referenced by WORLD_OT_new().
| void OBJECT_OT_material_slot_add | ( | wmOperatorType * | ot | ) |
Definition at line 106 of file render_shading.c.
References wmOperatorType::description, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_add_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_assign | ( | wmOperatorType * | ot | ) |
Definition at line 202 of file render_shading.c.
References wmOperatorType::description, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_assign_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 348 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_copy_exec(), wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_deselect | ( | wmOperatorType * | ot | ) |
Definition at line 308 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_deselect_exec(), wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_remove | ( | wmOperatorType * | ot | ) |
Definition at line 142 of file render_shading.c.
References wmOperatorType::description, ED_operator_object_active_editable(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_remove_exec(), wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void OBJECT_OT_material_slot_select | ( | wmOperatorType * | ot | ) |
Definition at line 289 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, material_slot_select_exec(), wmOperatorType::name, OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| static int paste_material_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 897 of file render_shading.c.
References CTX_data_pointer_get_type(), PointerRNA::data, NC_MATERIAL, ND_SHADING_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, paste_matcopybuf(), RNA_Material, and WM_event_add_notifier().
Referenced by MATERIAL_OT_paste().
| static void paste_mtex_copybuf | ( | ID * | id | ) | [static] |
Definition at line 964 of file render_shading.c.
References BLI_assert, GS, ID_LA, ID_MA, ID_PA, id_us_plus(), ID_WO, MEM_mallocN(), ID::name, NULL, and MTex::tex.
Referenced by paste_mtex_exec().
| static int paste_mtex_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 1045 of file render_shading.c.
References CTX_data_pointer_get_type(), PointerRNA::data, Lamp::id, World::id, PointerRNA::id, Material::id, ParticleSettings::id, NC_TEXTURE, ND_SHADING_DRAW, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ParticleSystem::part, paste_mtex_copybuf(), RNA_Lamp, RNA_Material, RNA_ParticleSystem, RNA_TextureSlot, RNA_World, and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_paste().
| static int render_layer_add_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 502 of file render_shading.c.
References RenderData::actlay, BLI_countlist(), CTX_data_scene(), RenderData::layers, NC_SCENE, ND_RENDER_OPTIONS, OPERATOR_FINISHED, Scene::r, scene_add_render_layer(), and WM_event_add_notifier().
Referenced by SCENE_OT_render_layer_add().
| static int render_layer_remove_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 528 of file render_shading.c.
References RenderData::actlay, BLI_countlist(), BLI_findlink(), BLI_remlink(), CMP_NODE_R_LAYERS, CTX_data_scene(), bNode::custom1, ListBase::first, bNode::id, RenderData::layers, MEM_freeN(), NC_SCENE, ND_RENDER_OPTIONS, bNode::next, bNodeTree::nodes, Scene::nodetree, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, Scene::r, bNode::type, and WM_event_add_notifier().
Referenced by SCENE_OT_render_layer_remove().
| static int save_envmap | ( | wmOperator * | op, |
| Scene * | scene, | ||
| EnvMap * | env, | ||
| char * | str, | ||
| int | imtype | ||
| ) | [static] |
Definition at line 664 of file render_shading.c.
References BKE_report(), BKE_reportf(), BKE_write_ibuf(), BLI_path_abs(), BLI_path_rel(), RenderData::color_mgt_flag, EnvMap::cube, ENV_CUBE, ENV_PLANE, G, IB_PROFILE_LINEAR_RGB, IB_rectfloat, IMB_allocImBuf(), IMB_freeImBuf(), IMB_rectcpy(), Global::main, Main::name, NULL, OPERATOR_CANCELLED, OPERATOR_FINISHED, ImBuf::profile, wmOperator::ptr, RenderData::quality, Scene::r, R_COLOR_MANAGEMENT, wmOperator::reports, RNA_boolean_get(), RNA_struct_find_property(), RPT_ERROR, RenderData::subimtype, EnvMap::type, and ImBuf::x.
Referenced by envmap_save_exec().
| void SCENE_OT_render_layer_add | ( | wmOperatorType * | ot | ) |
Definition at line 514 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and render_layer_add_exec().
Referenced by ED_operatortypes_render().
| void SCENE_OT_render_layer_remove | ( | wmOperatorType * | ot | ) |
Definition at line 560 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and render_layer_remove_exec().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_envmap_clear | ( | wmOperatorType * | ot | ) |
Definition at line 822 of file render_shading.c.
References wmOperatorType::description, envmap_clear_exec(), envmap_clear_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_envmap_clear_all | ( | wmOperatorType * | ot | ) |
Definition at line 851 of file render_shading.c.
References wmOperatorType::description, envmap_clear_all_exec(), envmap_clear_poll(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_envmap_save | ( | wmOperatorType * | ot | ) |
Definition at line 777 of file render_shading.c.
References wmOperatorType::description, envmap_save_exec(), envmap_save_invoke(), envmap_save_poll(), wmOperatorType::exec, FILE_SAVE, FILE_SPECIAL, wmOperatorType::flag, FOLDERFILE, wmOperatorType::idname, IMAGEFILE, wmOperatorType::invoke, MOVIEFILE, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, WM_FILESEL_FILEPATH, WM_FILESEL_RELPATH, and WM_operator_properties_filesel().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 440 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_texture_exec(), OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_copy | ( | wmOperatorType * | ot | ) |
Definition at line 1030 of file render_shading.c.
References copy_mtex_exec(), copy_mtex_poll(), wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_move | ( | wmOperatorType * | ot | ) |
Definition at line 638 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, NULL, OPTYPE_REGISTER, OPTYPE_UNDO, RNA_def_enum(), wmOperatorType::srna, and texture_slot_move().
Referenced by ED_operatortypes_render().
| void TEXTURE_OT_slot_paste | ( | wmOperatorType * | ot | ) |
Definition at line 1075 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, OPTYPE_REGISTER, OPTYPE_UNDO, and paste_mtex_exec().
Referenced by ED_operatortypes_render().
| static int texture_slot_move | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 574 of file render_shading.c.
References BKE_animdata_fix_paths_rename(), BKE_animdata_from_id(), CTX_data_pointer_get_type(), CTX_data_scene(), DAG_id_tag_update(), PointerRNA::data, give_active_mtex(), GS, PointerRNA::id, ID_MA, MAX_MTEX, ID::name, NC_TEXTURE, NULL, OPERATOR_FINISHED, wmOperator::ptr, RNA_enum_get(), RNA_TextureSlot, Material::septex, set_active_mtex(), and WM_event_add_notifier().
Referenced by TEXTURE_OT_slot_move().
| void WORLD_OT_new | ( | wmOperatorType * | ot | ) |
Definition at line 486 of file render_shading.c.
References wmOperatorType::description, wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, new_world_exec(), OPTYPE_REGISTER, and OPTYPE_UNDO.
Referenced by ED_operatortypes_render().
short mtexcopied = 0 [static] |
Definition at line 926 of file render_shading.c.
MTex mtexcopybuf [static] |
Definition at line 927 of file render_shading.c.