|
Blender V5.0
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_string_utf8.h"#include "BLI_utildefines.h"#include "BLT_translation.hh"#include "DNA_ID.h"#include "DNA_brush_types.h"#include "DNA_linestyle_types.h"#include "DNA_modifier_types.h"#include "DNA_node_types.h"#include "DNA_object_force_types.h"#include "DNA_object_types.h"#include "DNA_particle_types.h"#include "DNA_scene_types.h"#include "DNA_screen_types.h"#include "DNA_space_types.h"#include "DNA_windowmanager_types.h"#include "BKE_context.hh"#include "BKE_layer.hh"#include "BKE_lib_id.hh"#include "BKE_linestyle.h"#include "BKE_modifier.hh"#include "BKE_node_legacy_types.hh"#include "BKE_node_runtime.hh"#include "BKE_paint.hh"#include "BKE_particle.h"#include "RNA_access.hh"#include "RNA_prototypes.hh"#include "UI_interface_layout.hh"#include "UI_resources.hh"#include "ED_node.hh"#include "ED_screen.hh"#include "WM_api.hh"#include "WM_types.hh"#include "../interface/interface_intern.hh"#include "buttons_intern.hh"Go to the source code of this file.
| void buttons_texture_context_compute | ( | const bContext * | C, |
| SpaceProperties * | sbuts ) |
Definition at line 367 of file buttons_texture.cc.
References BLI_findindex(), BLI_findlink(), BLI_listbase_clear(), BLI_listbase_count_at_most(), buttons_texture_users_from_context(), C, PointerRNA::data, bNode::flag, GS, ID_TE, ButsContextTexture::index, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, MEM_callocN(), ID::name, ButsTextureUser::node, NODE_ACTIVE_TEXTURE, ButsTextureUser::ntree, SpaceProperties::pinid, ButsTextureUser::prop, ButsTextureUser::ptr, RNA_property_pointer_get(), RNA_struct_is_a(), ButsContextTexture::texture, SpaceProperties::texuser, PointerRNA::type, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by buttons_context_compute().
|
static |
Definition at line 220 of file buttons_texture.cc.
References BKE_modifier_get_info(), buttons_texture_modifier_geonodes_users_add(), buttons_texture_user_property_add(), eModifierType_Nodes, ModifierTypeInfo::icon, Object::id, N_, ModifierData::name, NodesModifierData::node_group, ptr, ModifierData::type, and users.
Referenced by buttons_texture_users_from_context().
|
static |
Definition at line 175 of file buttons_texture.cc.
References blender::Set< Key, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::add(), buttons_texture_modifier_geonodes_users_add(), buttons_texture_user_socket_property_add(), PointerRNA::data, bNodeTree::id, Object::id, LISTBASE_FOREACH, NodesModifierData::modifier, N_, ModifierData::name, ptr, RNA_pointer_create_discrete(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_is_a(), RNA_struct_ui_icon(), SOCK_TEXTURE, SOCK_UNAVAIL, PointerRNA::type, and users.
Referenced by buttons_texture_modifier_foreach(), and buttons_texture_modifier_geonodes_users_add().
|
static |
Definition at line 137 of file buttons_texture.cc.
References BKE_id_name(), buttons_texture_user_property_add(), Tex::id, ptr, RNA_pointer_create_discrete(), RNA_struct_find_property(), RNA_struct_ui_icon(), MTex::tex, and users.
Referenced by buttons_texture_users_from_context().
|
static |
Definition at line 112 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, name, ButsTextureUser::node, ButsTextureUser::ntree, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, and users.
Referenced by buttons_texture_users_find_nodetree().
|
static |
Definition at line 91 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, name, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, and users.
Referenced by buttons_texture_modifier_foreach(), buttons_texture_user_mtex_add(), and buttons_texture_users_from_context().
|
static |
Definition at line 64 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, name, ButsTextureUser::node, ButsTextureUser::ntree, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, ButsTextureUser::socket, and users.
Referenced by buttons_texture_modifier_geonodes_users_add().
|
static |
Definition at line 149 of file buttons_texture.cc.
References buttons_texture_user_node_add(), buttons_texture_users_find_nodetree(), bNodeTree::id, NODE_CLASS_TEXTURE, ptr, RNA_pointer_create_discrete(), RNA_struct_ui_icon(), and users.
Referenced by buttons_texture_users_find_nodetree(), and buttons_texture_users_from_context().
|
static |
Definition at line 243 of file buttons_texture.cc.
References BKE_linestyle_active_from_view_layer(), BKE_modifiers_foreach_tex_link(), BKE_paint_brush(), BKE_paint_get_active_from_context(), BKE_view_layer_active_object_get(), BKE_view_layer_default_view(), BKE_view_layer_synced_ensure(), BLI_listbase_clear(), buttons_texture_modifier_foreach(), buttons_texture_user_mtex_add(), buttons_texture_user_property_add(), buttons_texture_users_find_nodetree(), C, Scene::compositing_node_group, CTX_data_scene(), CTX_wm_window(), SpaceProperties::flag, PartDeflect::forcefield, GS, i, Brush::id, FreestyleLineStyle::id, Object::id, ParticleSettings::id, Scene::id, ID_BR, ID_LS, ID_OB, ID_SCE, IFACE_, Brush::mask_mtex, MAX_MTEX, Brush::mtex, FreestyleLineStyle::mtex, ParticleSettings::mtex, N_, ID::name, ParticleSystem::name, FreestyleLineStyle::nodetree, ParticleSystem::part, Object::pd, PFIELD_TEXTURE, SpaceProperties::pinid, psys_get_current(), ptr, RNA_pointer_create_discrete(), RNA_struct_find_property(), RNA_struct_ui_icon(), SB_TEX_USER_LIMITED, wmWindow::scene, MTex::tex, users, and WM_window_get_active_view_layer().
Referenced by buttons_texture_context_compute().
Definition at line 584 of file buttons_texture.cc.
References bScreen::areabase, C, CTX_data_active_object(), CTX_wm_screen(), GS, ID_OB, LISTBASE_FOREACH, ID::name, SpaceProperties::pinid, and SPACE_PROPERTIES.
Referenced by find_space_properties(), and template_texture_show().
|
static |
Definition at line 603 of file buttons_texture.cc.
References C, find_area_properties(), ListBase::first, and ScrArea::spacedata.
Referenced by template_texture_select(), and uiTemplateTextureShow().
|
static |
Definition at line 431 of file buttons_texture.cc.
References C, CTX_data_main(), PointerRNA::data, ED_node_set_active(), find_space_properties(), ButsContextTexture::index, ButsTextureUser::index, MAX_MTEX, ParticleSettings::mtex, NA_SELECTED, NC_NODE, ButsTextureUser::node, blender::bke::node_set_selected(), ButsTextureUser::ntree, PointerRNA::owner_id, SpaceProperties::preview, ButsTextureUser::prop, ButsTextureUser::ptr, RNA_property_pointer_get(), RNA_struct_is_a(), ParticleSettings::texact, ButsContextTexture::texture, SpaceProperties::texuser, PointerRNA::type, ButsContextTexture::user, and WM_event_add_notifier().
Referenced by template_texture_show(), and template_texture_user_menu().
|
static |
Definition at line 613 of file buttons_texture.cc.
References BCONTEXT_TEXTURE, C, PointerRNA::data, ED_area_tag_redraw(), find_area_properties(), ListBase::first, SpaceProperties::mainb, SpaceProperties::mainbuser, ButsTextureUser::next, SpaceProperties::preview, ButsTextureUser::prop, ButsTextureUser::ptr, ScrArea::spacedata, template_texture_select(), SpaceProperties::texuser, and ButsContextTexture::users.
Referenced by uiTemplateTextureShow().
Definition at line 484 of file buttons_texture.cc.
References uiLayout::block(), But, but_func_argN_copy(), but_func_argN_free(), uiBlock::buttons, C, CTX_wm_space_properties(), PointerRNA::data, uiBut::drawflag, Tex::id, IFACE_, uiLayout::label(), Vector< T, InlineBufferCapacity, Allocator >::last(), LISTBASE_FOREACH, ID::name, name, RNA_property_pointer_get(), SNPRINTF_UTF8, STREQ, template_texture_select(), SpaceProperties::texuser, UI_but_funcN_set(), UI_BUT_TEXT_LEFT, UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), and ButsContextTexture::users.
Referenced by uiTemplateTextureUser().
| void uiTemplateTextureShow | ( | uiLayout * | layout, |
| const bContext * | C, | ||
| PointerRNA * | ptr, | ||
| PropertyRNA * | prop ) |
Button to quickly show texture in Properties Editor texture tab.
Definition at line 651 of file buttons_texture.cc.
References BCONTEXT_TEXTURE, uiLayout::block(), But, C, CTX_wm_space_properties(), PointerRNA::data, find_space_properties(), ListBase::first, SpaceProperties::mainb, ButsTextureUser::next, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, RNA_property_pointer_get(), template_texture_show(), texture(), SpaceProperties::texuser, TIP_, UI_but_disable(), UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), and ButsContextTexture::users.
Referenced by template_ID().
Definition at line 532 of file buttons_texture.cc.
References uiLayout::block(), C, CTX_wm_space_properties(), uiBut::flag, ButsTextureUser::icon, uiLayout::label(), ButsTextureUser::name, name, STRNCPY_UTF8, template_texture_user_menu(), SpaceProperties::texuser, TIP_, UI_BUT_ICON_SUBMENU, UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextMenuBut(), uiDefMenuBut(), and ButsContextTexture::user.