41 #include "RNA_prototypes.h"
56 for (
int i = 0; i < path->
len; i++) {
70 for (
int i = 0; i < path->
len; i++) {
264 #ifdef WITH_POINT_CLOUD
514 #ifdef WITH_FREESTYLE
515 static bool buttons_context_linestyle_pinnable(
const bContext *
C,
ViewLayer *view_layer)
547 memset(path, 0,
sizeof(*path));
583 #ifdef WITH_FREESTYLE
584 if (buttons_context_linestyle_pinnable(
C, view_layer)) {
705 sbuts->
dataicon = ICON_OUTLINER_DATA_LIGHT;
724 if ((flag & (1 << sbuts->
mainb)) == 0) {
734 if (flag & (1 << i)) {
744 if (!(flag & (1 << sbuts->
mainb))) {
765 for (
int i = 0; i < path->
len; ++i) {
815 "texture_user_property",
820 "particle_system_editable",
832 #ifdef WITH_POINT_CLOUD
929 #ifdef WITH_POINT_CLOUD
964 int matnr = ob->
actcol - 1;
1182 for (
int i = 0; i < path->
len; i++) {
1201 ptr->
type == &RNA_ViewLayer)) {
1207 uiItemL(row,
"", ICON_RIGHTARROW);
1222 if (name != namebuf) {
1240 "BUTTONS_OT_toggle_pin");
1246 strcpy(pt->
idname,
"PROPERTIES_PT_context");
1247 strcpy(pt->
label,
N_(
"Context"));
1260 if (path->
len == 0) {
1264 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
void CTX_data_pointer_set_ptr(bContextDataResult *result, const PointerRNA *ptr)
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.
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)
_W64 unsigned int uintptr_t
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)