|
Blender V4.3
|
#include <cstdlib>#include <cstring>#include "MEM_guardedalloc.h"#include "BLI_listbase.h"#include "BLI_string.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_linestyle.h"#include "BKE_modifier.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.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 353 of file buttons_texture.cc.
References BLI_findindex(), BLI_findlink(), BLI_listbase_clear(), BLI_listbase_count_at_most(), buttons_texture_users_from_context(), PointerRNA::data, bNode::flag, GS, ID_TE, ButsContextTexture::index, LISTBASE_FOREACH, LISTBASE_FOREACH_MUTABLE, ID::name, ButsTextureUser::node, NODE_ACTIVE_TEXTURE, ButsTextureUser::ntree, SpaceProperties::pinid, ButsTextureUser::prop, ButsTextureUser::ptr, RNA_property_pointer_get(), RNA_struct_is_a(), tex, ButsContextTexture::texture, SpaceProperties::texuser, PointerRNA::type, ButsContextTexture::user, and ButsContextTexture::users.
Referenced by buttons_context_compute().
|
static |
Definition at line 212 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 167 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, Object::id, LISTBASE_FOREACH, NodesModifierData::modifier, N_, ModifierData::name, NODE_GROUP, node_tree, ptr, RNA_pointer_create(), RNA_property_pointer_get(), RNA_struct_find_property(), RNA_struct_is_a(), RNA_struct_ui_icon(), SOCK_TEXTURE, SOCK_UNAVAIL, tex, PointerRNA::type, and users.
Referenced by buttons_texture_modifier_foreach(), and buttons_texture_modifier_geonodes_users_add().
|
static |
Definition at line 110 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, ButsTextureUser::node, node, ButsTextureUser::ntree, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, and users.
Referenced by buttons_texture_users_find_nodetree().
|
static |
Definition at line 89 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, and users.
Referenced by buttons_texture_modifier_foreach(), and buttons_texture_users_from_context().
|
static |
Definition at line 62 of file buttons_texture.cc.
References BLI_addtail(), BLI_listbase_count(), ButsTextureUser::category, ButsTextureUser::icon, ButsTextureUser::id, ButsTextureUser::index, ButsTextureUser::name, ButsTextureUser::node, node, ButsTextureUser::ntree, ButsTextureUser::prop, ButsTextureUser::ptr, ptr, ButsTextureUser::socket, and users.
Referenced by buttons_texture_modifier_geonodes_users_add().
|
static |
Definition at line 135 of file buttons_texture.cc.
References buttons_texture_user_node_add(), buttons_texture_users_find_nodetree(), bNodeTree::id, LISTBASE_FOREACH, PropertyRNA::name, NODE_CLASS_TEXTURE, NODE_GROUP, bNodeTree::nodes, ptr, RNA_pointer_create(), RNA_struct_find_property(), RNA_struct_ui_icon(), PointerRNA::type, and users.
Referenced by buttons_texture_users_find_nodetree(), and buttons_texture_users_from_context().
|
static |
Definition at line 235 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_property_add(), buttons_texture_users_find_nodetree(), CTX_data_scene(), CTX_wm_window(), SpaceProperties::flag, PartDeflect::forcefield, GS, Brush::id, FreestyleLineStyle::id, Object::id, ParticleSettings::id, ID_BR, ID_LS, ID_OB, ID_SCE, IFACE_, linestyle, Brush::mask_mtex, MAX_MTEX, Brush::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(), RNA_struct_find_property(), RNA_struct_ui_icon(), SB_TEX_USER_LIMITED, scene, wmWindow::scene, users, and WM_window_get_active_view_layer().
Referenced by buttons_texture_context_compute().
Definition at line 581 of file buttons_texture.cc.
References 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 600 of file buttons_texture.cc.
References find_area_properties().
Referenced by template_texture_select(), and uiTemplateTextureShow().
|
static |
Definition at line 417 of file buttons_texture.cc.
References CTX_data_main(), PointerRNA::data, ED_node_set_active(), find_space_properties(), ButsContextTexture::index, ButsTextureUser::index, MAX_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(), tex, 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 610 of file buttons_texture.cc.
References BCONTEXT_TEXTURE, PointerRNA::data, ED_area_tag_redraw(), find_area_properties(), ListBase::first, SpaceProperties::mainb, SpaceProperties::mainbuser, ButsTextureUser::next, SpaceProperties::preview, ButsTextureUser::prop, ButsTextureUser::ptr, template_texture_select(), SpaceProperties::texuser, and ButsContextTexture::users.
Referenced by uiTemplateTextureShow().
Definition at line 470 of file buttons_texture.cc.
References but_func_argN_copy(), but_func_argN_free(), uiBlock::buttons, CTX_wm_space_properties(), PointerRNA::data, uiBut::drawflag, Tex::id, IFACE_, ListBase::last, LISTBASE_FOREACH, ID::name, RNA_property_pointer_get(), SNPRINTF, STREQ, template_texture_select(), tex, SpaceProperties::texuser, UI_BTYPE_BUT, UI_but_funcN_set(), UI_BUT_TEXT_LEFT, UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextBut(), uiItemL(), uiLayoutGetBlock(), 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 648 of file buttons_texture.cc.
References BCONTEXT_TEXTURE, 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(), SpaceProperties::texuser, TIP_, UI_BTYPE_BUT, UI_but_disable(), UI_but_func_set(), UI_UNIT_X, UI_UNIT_Y, uiDefIconBut(), uiLayoutGetBlock(), and ButsContextTexture::users.
Referenced by template_ID().
Definition at line 529 of file buttons_texture.cc.
References CTX_wm_space_properties(), uiBut::flag, ButsTextureUser::icon, ButsTextureUser::name, STRNCPY, template_texture_user_menu(), SpaceProperties::texuser, TIP_, UI_but_type_set_menu_from_pulldown(), UI_MAX_NAME_STR, UI_UNIT_X, UI_UNIT_Y, uiDefIconTextMenuBut(), uiDefMenuBut(), uiItemL(), uiLayoutGetBlock(), and ButsContextTexture::user.