本文整理汇总了C++中rna_pointer_inherit_refine函数的典型用法代码示例。如果您正苦于以下问题:C++ rna_pointer_inherit_refine函数的具体用法?C++ rna_pointer_inherit_refine怎么用?C++ rna_pointer_inherit_refine使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了rna_pointer_inherit_refine函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: rna_BoidSettings_active_boid_state_get
static PointerRNA rna_BoidSettings_active_boid_state_get(PointerRNA *ptr)
{
BoidSettings *boids = (BoidSettings *)ptr->data;
BoidState *state = (BoidState *)boids->states.first;
for (; state; state = state->next) {
if (state->flag & BOIDSTATE_CURRENT)
return rna_pointer_inherit_refine(ptr, &RNA_BoidState, state);
}
return rna_pointer_inherit_refine(ptr, &RNA_BoidState, NULL);
}
开发者ID:caomw,项目名称:blender-ui,代码行数:11,代码来源:rna_boid.c
示例2: rna_BoidState_active_boid_rule_get
static PointerRNA rna_BoidState_active_boid_rule_get(PointerRNA *ptr)
{
BoidState *state = (BoidState *)ptr->data;
BoidRule *rule = (BoidRule *)state->rules.first;
for (; rule; rule = rule->next) {
if (rule->flag & BOIDRULE_CURRENT)
return rna_pointer_inherit_refine(ptr, &RNA_BoidRule, rule);
}
return rna_pointer_inherit_refine(ptr, &RNA_BoidRule, NULL);
}
开发者ID:caomw,项目名称:blender-ui,代码行数:11,代码来源:rna_boid.c
示例3: rna_RenderEngine_camera_override_get
static PointerRNA rna_RenderEngine_camera_override_get(PointerRNA *ptr)
{
RenderEngine *engine = (RenderEngine *)ptr->data;
if (engine->re) {
Object *cam = RE_GetCamera(engine->re);
return rna_pointer_inherit_refine(ptr, &RNA_Object, cam);
}
else {
return rna_pointer_inherit_refine(ptr, &RNA_Object, engine->camera_override);
}
}
开发者ID:mgschwan,项目名称:blensor,代码行数:12,代码来源:rna_render.c
示例4: rna_Curve_active_nurb_get
static PointerRNA rna_Curve_active_nurb_get(PointerRNA *ptr)
{
Curve *cu= (Curve*)ptr->data;
Nurb *nu= NULL;
if(cu->editnurb)
nu = BLI_findlink(cu->editnurb, cu->actnu);
if(nu)
return rna_pointer_inherit_refine(ptr, &RNA_Nurb, nu);
return rna_pointer_inherit_refine(ptr, NULL, NULL);
}
开发者ID:jinjoh,项目名称:NOOR,代码行数:13,代码来源:rna_curve.c
示例5: rna_RenderEngine_render_get
static PointerRNA rna_RenderEngine_render_get(PointerRNA *ptr)
{
RenderEngine *engine = (RenderEngine *)ptr->data;
if (engine->re) {
RenderData *r = RE_engine_get_render_data(engine->re);
return rna_pointer_inherit_refine(ptr, &RNA_RenderSettings, r);
}
else {
return rna_pointer_inherit_refine(ptr, &RNA_RenderSettings, NULL);
}
}
开发者ID:mgschwan,项目名称:blensor,代码行数:13,代码来源:rna_render.c
示例6: rna_PaintSurface_active_get
static PointerRNA rna_PaintSurface_active_get(PointerRNA *ptr)
{
DynamicPaintCanvasSettings *canvas = (DynamicPaintCanvasSettings *)ptr->data;
DynamicPaintSurface *surface = canvas->surfaces.first;
int id = 0;
for (; surface; surface = surface->next) {
if (id == canvas->active_sur)
return rna_pointer_inherit_refine(ptr, &RNA_DynamicPaintSurface, surface);
id++;
}
return rna_pointer_inherit_refine(ptr, &RNA_DynamicPaintSurface, NULL);
}
开发者ID:244xiao,项目名称:blender,代码行数:13,代码来源:rna_dynamicpaint.c
示例7: rna_IDPreview_get
static PointerRNA rna_IDPreview_get(PointerRNA *ptr)
{
ID *id = (ID *)ptr->data;
PreviewImage *prv_img = BKE_previewimg_id_ensure(id);
return rna_pointer_inherit_refine(ptr, &RNA_ImagePreview, prv_img);
}
开发者ID:pawkoz,项目名称:dyplom,代码行数:7,代码来源:rna_ID.c
示例8: rna_render_slots_active_get
static PointerRNA rna_render_slots_active_get(PointerRNA *ptr)
{
Image *image = (Image *)ptr->id.data;
RenderSlot *render_slot = BKE_image_get_renderslot(image, image->render_slot);
return rna_pointer_inherit_refine(ptr, &RNA_RenderSlot, render_slot);
}
开发者ID:dfelinto,项目名称:blender,代码行数:7,代码来源:rna_image.c
示例9: rna_Mask_layer_active_get
static PointerRNA rna_Mask_layer_active_get(PointerRNA *ptr)
{
Mask *mask = (Mask *)ptr->id.data;
MaskLayer *masklay = BKE_mask_layer_active(mask);
return rna_pointer_inherit_refine(ptr, &RNA_MaskLayer, masklay);
}
开发者ID:ilent2,项目名称:Blender-Billboard-Modifier,代码行数:7,代码来源:rna_mask.c
示例10: rna_Group_objects_get
static PointerRNA rna_Group_objects_get(CollectionPropertyIterator *iter)
{
ListBaseIterator *internal = iter->internal;
/* we are actually iterating a GroupObject list, so override get */
return rna_pointer_inherit_refine(&iter->parent, &RNA_Object, ((GroupObject *)internal->link)->ob);
}
开发者ID:244xiao,项目名称:blender,代码行数:7,代码来源:rna_group.c
示例11: rna_Lamp_active_texture_get
static PointerRNA rna_Lamp_active_texture_get(PointerRNA *ptr)
{
Lamp *la = (Lamp *)ptr->data;
Tex *tex;
tex = give_current_lamp_texture(la);
return rna_pointer_inherit_refine(ptr, &RNA_Texture, tex);
}
开发者ID:mgschwan,项目名称:blensor,代码行数:8,代码来源:rna_lamp.c
示例12: rna_World_active_texture_get
static PointerRNA rna_World_active_texture_get(PointerRNA *ptr)
{
World *wo= (World*)ptr->data;
Tex *tex;
tex= give_current_world_texture(wo);
return rna_pointer_inherit_refine(ptr, &RNA_Texture, tex);
}
开发者ID:jinjoh,项目名称:NOOR,代码行数:8,代码来源:rna_world.c
示例13: rna_ViewLayer_objects_get
static PointerRNA rna_ViewLayer_objects_get(CollectionPropertyIterator *iter)
{
ListBaseIterator *internal = &iter->internal.listbase;
/* we are actually iterating a ObjectBase list */
Base *base = (Base *)internal->link;
return rna_pointer_inherit_refine(&iter->parent, &RNA_Object, base->object);
}
开发者ID:dfelinto,项目名称:blender,代码行数:8,代码来源:rna_layer.c
示例14: rna_ParticleEdit_brush_get
static PointerRNA rna_ParticleEdit_brush_get(PointerRNA *ptr)
{
ParticleEditSettings *pset = (ParticleEditSettings *)ptr->data;
ParticleBrushData *brush = NULL;
if (pset->brushtype != PE_BRUSH_NONE)
brush = &pset->brush[pset->brushtype];
return rna_pointer_inherit_refine(ptr, &RNA_ParticleBrush, brush);
}
开发者ID:244xiao,项目名称:blender,代码行数:10,代码来源:rna_sculpt_paint.c
示例15: rna_GPencilSculptSettings_brush_get
static PointerRNA rna_GPencilSculptSettings_brush_get(PointerRNA *ptr)
{
GP_BrushEdit_Settings *gset = (GP_BrushEdit_Settings *)ptr->data;
GP_EditBrush_Data *brush = NULL;
if ((gset->brushtype >= 0) && (gset->brushtype < TOT_GP_EDITBRUSH_TYPES))
brush = &gset->brush[gset->brushtype];
return rna_pointer_inherit_refine(ptr, &RNA_GPencilSculptBrush, brush);
}
开发者ID:Ichthyostega,项目名称:blender,代码行数:10,代码来源:rna_sculpt_paint.c
示例16: rna_KeyingSet_typeinfo_get
static PointerRNA rna_KeyingSet_typeinfo_get(PointerRNA *ptr)
{
KeyingSet *ks = (KeyingSet *)ptr->data;
KeyingSetInfo *ksi = NULL;
/* keying set info is only for builtin Keying Sets */
if ((ks->flag & KEYINGSET_ABSOLUTE) == 0)
ksi = ANIM_keyingset_info_find_name(ks->typeinfo);
return rna_pointer_inherit_refine(ptr, &RNA_KeyingSetInfo, ksi);
}
开发者ID:244xiao,项目名称:blender,代码行数:10,代码来源:rna_animation.c
示例17: rna_GPencil_active_layer_get
static PointerRNA rna_GPencil_active_layer_get(PointerRNA *ptr)
{
bGPdata *gpd= ptr->id.data;
if (GS(gpd->id.name) == ID_GD) { /* why would this ever be not GD */
bGPDlayer *gl;
for (gl= gpd->layers.first; gl; gl= gl->next) {
if(gl->flag & GP_LAYER_ACTIVE) {
break;
}
}
if(gl) {
return rna_pointer_inherit_refine(ptr, &RNA_GPencilLayer, gl);
}
}
return rna_pointer_inherit_refine(ptr, NULL, NULL);
}
开发者ID:OldBrunet,项目名称:BGERTPS,代码行数:20,代码来源:rna_gpencil.c
示例18: rna_ViewLayer_depsgraph_get
static PointerRNA rna_ViewLayer_depsgraph_get(PointerRNA *ptr)
{
ID *id = ptr->id.data;
if (GS(id->name) == ID_SCE) {
Scene *scene = (Scene *)id;
ViewLayer *view_layer = (ViewLayer *)ptr->data;
Depsgraph *depsgraph = BKE_scene_get_depsgraph(scene, view_layer, false);
return rna_pointer_inherit_refine(ptr, &RNA_Depsgraph, depsgraph);
}
return PointerRNA_NULL;
}
开发者ID:dfelinto,项目名称:blender,代码行数:11,代码来源:rna_layer.c
示例19: rna_Image_packed_file_get
static PointerRNA rna_Image_packed_file_get(PointerRNA *ptr)
{
Image *ima = (Image *)ptr->id.data;
if (BKE_image_has_packedfile(ima)) {
ImagePackedFile *imapf = ima->packedfiles.first;
return rna_pointer_inherit_refine(ptr, &RNA_PackedFile, imapf->packedfile);
}
else {
return PointerRNA_NULL;
}
}
开发者ID:dfelinto,项目名称:blender,代码行数:12,代码来源:rna_image.c
示例20: rna_ShapeKey_data_get
static PointerRNA rna_ShapeKey_data_get(CollectionPropertyIterator *iter)
{
Key *key = rna_ShapeKey_find_key(iter->parent.id.data);
StructRNA *type;
Curve *cu;
Nurb *nu;
if (GS(key->from->name) == ID_CU) {
cu = (Curve *)key->from;
nu = cu->nurb.first;
if (nu->bezt)
type = &RNA_ShapeKeyBezierPoint;
else
type = &RNA_ShapeKeyCurvePoint;
}
else
type = &RNA_ShapeKeyPoint;
return rna_pointer_inherit_refine(&iter->parent, type, rna_iterator_array_get(iter));
}
开发者ID:Walid-Shouman,项目名称:Blender,代码行数:21,代码来源:rna_key.c
注:本文中的rna_pointer_inherit_refine函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论