71 for (
int i = 0; i < path->
len; i++) {
85 for (
int i = 0; i < path->
len; i++) {
276 #ifdef WITH_HAIR_NODES
281 #ifdef WITH_POINT_CLOUD
531 #ifdef WITH_FREESTYLE
532 static bool buttons_context_linestyle_pinnable(
const bContext *
C,
ViewLayer *view_layer)
564 memset(path, 0,
sizeof(*path));
600 #ifdef WITH_FREESTYLE
601 if (buttons_context_linestyle_pinnable(
C, view_layer)) {
722 sbuts->
dataicon = ICON_OUTLINER_DATA_LIGHT;
741 if ((flag & (1 << sbuts->
mainb)) == 0) {
751 if (flag & (1 << i)) {
761 if (!(flag & (1 << sbuts->
mainb))) {
782 for (
int i = 0; i < path->
len; ++i) {
832 "texture_user_property",
837 "particle_system_editable",
848 #ifdef WITH_HAIR_NODES
851 #ifdef WITH_POINT_CLOUD
944 #ifdef WITH_HAIR_NODES
950 #ifdef WITH_POINT_CLOUD
985 int matnr = ob->
actcol - 1;
1201 for (
int i = 0; i < path->
len; i++) {
1226 uiItemL(row,
"", ICON_SMALL_TRI_RIGHT_VEC);
1241 if (name != namebuf) {
1259 "BUTTONS_OT_toggle_pin");
1265 strcpy(pt->
idname,
"PROPERTIES_PT_context");
1266 strcpy(pt->
label,
N_(
"Context"));
1279 if (path->
len == 0) {
1283 for (
int i = path->
len - 1; i >= 0; i--) {
Blender kernel action and pose functionality.
struct bPoseChannel * BKE_pose_channel_find_name(const struct bPose *pose, const char *name)
struct ScrArea * CTX_wm_area(const bContext *C)
struct Scene * CTX_data_scene(const bContext *C)
void CTX_data_dir_set(bContextDataResult *result, const char **dir)
struct SpaceProperties * CTX_wm_space_properties(const bContext *C)
bool CTX_data_equals(const char *member, const char *str)
void CTX_data_pointer_set(bContextDataResult *result, struct ID *id, StructRNA *type, void *data)
bool CTX_data_dir(const char *member)
@ CTX_RESULT_MEMBER_NOT_FOUND
struct wmWindow * CTX_wm_window(const bContext *C)
struct ViewLayer * BKE_view_layer_default_view(const struct Scene *scene)
Blender kernel freestyle line style functionality.
FreestyleLineStyle * BKE_linestyle_active_from_view_layer(struct ViewLayer *view_layer)
General operations, lookup, etc. for materials.
struct Material * BKE_object_material_get(struct Object *ob, short act)
struct ModifierData * BKE_modifiers_findby_type(const struct Object *ob, ModifierType type)
General operations, lookup, etc. for blender objects.
struct ModifierData * BKE_object_active_modifier(const struct Object *ob)
struct Paint * BKE_paint_get_active(struct Scene *sce, struct ViewLayer *view_layer)
struct Brush * BKE_paint_brush(struct Paint *paint)
struct ParticleSystem * psys_get_current(struct Object *ob)
void BLI_addtail(struct ListBase *listbase, void *vlink) ATTR_NONNULL(1)
#define BLT_I18NCONTEXT_DEFAULT_BPYRNA
Object groups, one object can be in many groups at once.
@ FREESTYLE_CONTROL_EDITOR_MODE
@ eModifierType_Collision
@ eModifierType_DynamicPaint
#define OB_TYPE_SUPPORT_MATERIAL(_type)
#define OBACT(_view_layer)
@ BCONTEXT_BONE_CONSTRAINT
bool PE_poll(struct bContext *C)
bool ED_area_has_shared_border(struct ScrArea *a, struct ScrArea *b)
_GL_VOID GLfloat value _GL_VOID_RET _GL_VOID const GLuint GLboolean *residences _GL_BOOL_RET _GL_VOID GLsizei GLfloat GLfloat GLfloat GLfloat const GLubyte *bitmap _GL_VOID_RET _GL_VOID GLenum type
Read Guarded memory(de)allocation.
StructRNA RNA_MaterialSlot
StructRNA RNA_CollisionModifier
StructRNA RNA_DynamicPaintModifier
StructRNA RNA_ParticleSystem
StructRNA RNA_GreasePencil
StructRNA RNA_ParticleSettingsTextureSlot
StructRNA RNA_FreestyleLineStyle
StructRNA RNA_FluidModifier
StructRNA RNA_LineStyleTextureSlot
StructRNA RNA_ClothModifier
StructRNA RNA_SoftBodyModifier
StructRNA RNA_ParticleSettings
void uiItemL(uiLayout *layout, const char *name, int icon)
void uiLayoutSetAlignment(uiLayout *layout, char alignment)
uiLayout * uiLayoutRow(uiLayout *layout, bool align)
void uiItemSpacer(uiLayout *layout)
void uiLayoutSetEmboss(uiLayout *layout, eUIEmbossType emboss)
void uiItemO(uiLayout *layout, const char *name, int icon, const char *opname)
void uiItemLDrag(uiLayout *layout, struct PointerRNA *ptr, const char *name, int icon)
static bool buttons_context_path(const bContext *C, SpaceProperties *sbuts, ButsContextPath *path, int mainb, int flag)
static bool buttons_context_path_shaderfx(ButsContextPath *path)
static bool buttons_context_path_bone(ButsContextPath *path)
static bool buttons_context_path_scene(ButsContextPath *path)
static int set_pointer_type(ButsContextPath *path, bContextDataResult *result, StructRNA *type)
static bool buttons_context_path_data(ButsContextPath *path, int type)
const char * buttons_context_dir[]
static PointerRNA * get_pointer_type(ButsContextPath *path, StructRNA *type)
static bool buttons_panel_context_poll(const bContext *C, PanelType *UNUSED(pt))
int buttons_context(const bContext *C, const char *member, bContextDataResult *result)
void ED_buttons_set_context(const bContext *C, SpaceProperties *sbuts, PointerRNA *ptr, const int context)
ID * buttons_context_id_path(const bContext *C)
void buttons_context_compute(const bContext *C, SpaceProperties *sbuts)
void buttons_context_register(ARegionType *art)
static bool buttons_context_path_material(ButsContextPath *path)
static bool buttons_context_path_texture(const bContext *C, ButsContextPath *path, ButsContextTexture *ct)
static bool buttons_context_path_pose_bone(ButsContextPath *path)
static bool buttons_context_path_object(ButsContextPath *path)
static int buttons_shading_new_context(const bContext *C, int flag)
static bool buttons_context_path_particle(ButsContextPath *path)
bool ED_buttons_should_sync_with_outliner(const bContext *C, const SpaceProperties *sbuts, ScrArea *area)
static bool buttons_context_path_view_layer(ButsContextPath *path, wmWindow *win)
static bool buttons_context_path_linestyle(ButsContextPath *path, wmWindow *window)
static bool buttons_shading_context(const bContext *C, int mainb)
static bool is_pointer_in_path(ButsContextPath *path, PointerRNA *ptr)
static bool buttons_context_path_brush(const bContext *C, ButsContextPath *path)
static bool buttons_context_path_collection(const bContext *C, ButsContextPath *path, wmWindow *window)
static bool buttons_context_path_world(ButsContextPath *path)
static void buttons_panel_context_draw(const bContext *C, Panel *panel)
static bool buttons_context_path_modifier(ButsContextPath *path)
FreestyleLineStyle linestyle
void(* MEM_freeN)(void *vmemh)
void *(* MEM_callocN)(size_t len, const char *str)
static void area(int d1, int d2, int e1, int e2, float weights[2])
bool RNA_struct_is_a(const StructRNA *type, const StructRNA *srna)
void RNA_pointer_create(ID *id, StructRNA *type, void *data, PointerRNA *r_ptr)
void RNA_id_pointer_create(ID *id, PointerRNA *r_ptr)
char * RNA_struct_name_get_alloc(PointerRNA *ptr, char *fixedbuf, int fixedlen, int *r_len)
int RNA_struct_ui_icon(const StructRNA *type)
struct SELECTID_Context context
struct ButsTextureUser * user
struct Collection * collection
void(* draw)(const struct bContext *C, struct Panel *panel)
bool(* poll)(const struct bContext *C, struct PanelType *pt)
char idname[BKE_ST_MAXNAME]
char translation_context[BKE_ST_MAXNAME]
char label[BKE_ST_MAXNAME]
struct Collection * master_collection
struct FreestyleConfig freestyle_config
LayerCollection * active_collection
struct EditBone * act_edbone
ViewLayer * WM_window_get_active_view_layer(const wmWindow *win)
Scene * WM_window_get_active_scene(const wmWindow *win)