style cleanup: casts, some casts had odd formatting, but very few. Style checker script detects this now so easy to detect this if new code is added that doesnt follow blenders style.
This commit is contained in:
@@ -651,10 +651,10 @@ ARegion *ui_tooltip_create(bContext *C, ARegion *butregion, uiBut *but)
|
||||
ofsx = 0; //(but->block->panel) ? but->block->panel->ofsx : 0;
|
||||
ofsy = 0; //(but->block->panel) ? but->block->panel->ofsy : 0;
|
||||
|
||||
rect_fl.xmin = (but->rect.xmin + but->rect.xmax) * 0.5f + ofsx - (TIP_BORDER_X );
|
||||
rect_fl.xmax = rect_fl.xmin + fontw + (TIP_BORDER_X );
|
||||
rect_fl.ymax = but->rect.ymin + ofsy - (TIP_BORDER_Y );
|
||||
rect_fl.ymin = rect_fl.ymax - fonth - (TIP_BORDER_Y );
|
||||
rect_fl.xmin = (but->rect.xmin + but->rect.xmax) * 0.5f + ofsx - TIP_BORDER_X;
|
||||
rect_fl.xmax = rect_fl.xmin + fontw + TIP_BORDER_X;
|
||||
rect_fl.ymax = but->rect.ymin + ofsy - TIP_BORDER_Y;
|
||||
rect_fl.ymin = rect_fl.ymax - fonth - TIP_BORDER_Y;
|
||||
|
||||
#undef TIP_MARGIN_Y
|
||||
#undef TIP_BORDER_X
|
||||
|
||||
@@ -277,7 +277,7 @@ static void rna_Particle_uv_on_emitter(ParticleData *particle, ParticleSystemMod
|
||||
|
||||
if (num != DMCACHE_NOTFOUND) {
|
||||
MFace *mface = modifier->dm->getTessFaceData(modifier->dm, num, CD_MFACE);
|
||||
MTFace *mtface = (MTFace*)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
MTFace *mtface = (MTFace *)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
mtface += num;
|
||||
|
||||
psys_interpolate_uvs(mtface, mface->v4, particle->fuv, n_uv);
|
||||
@@ -290,7 +290,7 @@ static void rna_Particle_uv_on_emitter(ParticleData *particle, ParticleSystemMod
|
||||
}
|
||||
|
||||
static void rna_ParticleSystem_co_hair(ParticleSystem *particlesystem, Object *object, ParticleSystemModifierData *modifier, int particle_no, int step,
|
||||
float n_co[3])
|
||||
float n_co[3])
|
||||
{
|
||||
ParticleSettings *part = 0;
|
||||
ParticleData *pars = 0;
|
||||
@@ -395,7 +395,7 @@ static void rna_ParticleSystem_uv_on_emitter(ParticleSystem *particlesystem, Par
|
||||
if (n_uv && ELEM(part->from, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
if (num != DMCACHE_NOTFOUND) {
|
||||
MFace *mface = modifier->dm->getTessFaceData(modifier->dm, num, CD_MFACE);
|
||||
MTFace *mtface = (MTFace*)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
MTFace *mtface = (MTFace *)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
mtface += num;
|
||||
|
||||
psys_interpolate_uvs(mtface, mface->v4, particle->fuv, n_uv);
|
||||
@@ -416,7 +416,7 @@ static void rna_ParticleSystem_uv_on_emitter(ParticleSystem *particlesystem, Par
|
||||
if (n_uv && ELEM(PART_FROM_FACE, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
if (cpa->num != DMCACHE_NOTFOUND) {
|
||||
MFace *mface = modifier->dm->getTessFaceData(modifier->dm, cpa->num, CD_MFACE);
|
||||
MTFace *mtface = (MTFace*)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
MTFace *mtface = (MTFace *)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
mtface += cpa->num;
|
||||
|
||||
psys_interpolate_uvs(mtface, mface->v4, cpa->fuv, n_uv);
|
||||
@@ -438,7 +438,7 @@ static void rna_ParticleSystem_uv_on_emitter(ParticleSystem *particlesystem, Par
|
||||
if (n_uv && ELEM(part->from, PART_FROM_FACE, PART_FROM_VOLUME)) {
|
||||
if (num != DMCACHE_NOTFOUND) {
|
||||
MFace *mface = modifier->dm->getTessFaceData(modifier->dm, num, CD_MFACE);
|
||||
MTFace *mtface = (MTFace*)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
MTFace *mtface = (MTFace *)CustomData_get_layer_n(&modifier->dm->faceData, CD_MTFACE, 0);
|
||||
mtface += num;
|
||||
|
||||
psys_interpolate_uvs(mtface, mface->v4, parent->fuv, n_uv);
|
||||
|
||||
@@ -137,7 +137,7 @@ static void engine_update_script_node(RenderEngine *engine, struct bNodeTree *nt
|
||||
FunctionRNA *func;
|
||||
|
||||
RNA_pointer_create(NULL, engine->type->ext.srna, engine, &ptr);
|
||||
RNA_pointer_create((ID*)ntree, &RNA_Node, node, &nodeptr);
|
||||
RNA_pointer_create((ID *)ntree, &RNA_Node, node, &nodeptr);
|
||||
func = &rna_RenderEngine_update_script_node_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
|
||||
@@ -280,7 +280,7 @@ static void rna_tracking_flushUpdate(Main *UNUSED(bmain), Scene *scene, PointerR
|
||||
|
||||
static void rna_trackingObject_tracks_begin(CollectionPropertyIterator *iter, PointerRNA *ptr)
|
||||
{
|
||||
MovieTrackingObject *object = (MovieTrackingObject * )ptr->data;
|
||||
MovieTrackingObject *object = (MovieTrackingObject *)ptr->data;
|
||||
|
||||
if (object->flag & TRACKING_OBJECT_CAMERA) {
|
||||
MovieClip *clip = (MovieClip *)ptr->id.data;
|
||||
@@ -294,7 +294,7 @@ static void rna_trackingObject_tracks_begin(CollectionPropertyIterator *iter, Po
|
||||
|
||||
static PointerRNA rna_trackingObject_reconstruction_get(PointerRNA *ptr)
|
||||
{
|
||||
MovieTrackingObject *object = (MovieTrackingObject * )ptr->data;
|
||||
MovieTrackingObject *object = (MovieTrackingObject *)ptr->data;
|
||||
|
||||
if (object->flag & TRACKING_OBJECT_CAMERA) {
|
||||
MovieClip *clip = (MovieClip *)ptr->id.data;
|
||||
|
||||
Reference in New Issue
Block a user