Cleanup: use C++ style comments for disabled code
This commit is contained in:
parent
4f61843a7e
commit
1ef275963d
|
@ -145,7 +145,7 @@ static inline void curvemapping_minmax(/*const*/ BL::CurveMapping &cumap,
|
|||
float *min_x,
|
||||
float *max_x)
|
||||
{
|
||||
/* const int num_curves = cumap.curves.length(); */ /* Gives linking error so far. */
|
||||
// const int num_curves = cumap.curves.length(); /* Gives linking error so far. */
|
||||
const int num_curves = rgb_curve ? 4 : 3;
|
||||
*min_x = FLT_MAX;
|
||||
*max_x = -FLT_MAX;
|
||||
|
|
|
@ -871,7 +871,7 @@ void MEM_guarded_freeN(void *vmemh)
|
|||
|
||||
if (memh == NULL) {
|
||||
MemorY_ErroR("free", "attempt to free NULL pointer");
|
||||
/* print_error(err_stream, "%d\n", (memh+4000)->tag1); */
|
||||
// print_error(err_stream, "%d\n", (memh+4000)->tag1);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -360,7 +360,7 @@ void DM_init(DerivedMesh *dm,
|
|||
dm->needsFree = 1;
|
||||
dm->dirty = (DMDirtyFlag)0;
|
||||
|
||||
/* Don't use CustomData_reset(...); because we don't want to touch custom-data. */
|
||||
/* Don't use #CustomData_reset because we don't want to touch custom-data. */
|
||||
copy_vn_i(dm->vertData.typemap, CD_NUMTYPES, -1);
|
||||
copy_vn_i(dm->edgeData.typemap, CD_NUMTYPES, -1);
|
||||
copy_vn_i(dm->faceData.typemap, CD_NUMTYPES, -1);
|
||||
|
|
|
@ -638,7 +638,7 @@ void BKE_nurb_free(Nurb *nu)
|
|||
MEM_freeN(nu->knotsv);
|
||||
}
|
||||
nu->knotsv = NULL;
|
||||
/* if (nu->trim.first) freeNurblist(&(nu->trim)); */
|
||||
// if (nu->trim.first) freeNurblist(&(nu->trim));
|
||||
|
||||
MEM_freeN(nu);
|
||||
}
|
||||
|
|
|
@ -4246,7 +4246,7 @@ void CustomData_blend_write_prepare(CustomData *data,
|
|||
CustomDataLayer *layer = &data->layers[i];
|
||||
if (layer->flag & CD_FLAG_NOCOPY) { /* Layers with this flag set are not written to file. */
|
||||
data->totlayer--;
|
||||
/* CLOG_WARN(&LOG, "skipping layer %p (%s)", layer, layer->name); */
|
||||
// CLOG_WARN(&LOG, "skipping layer %p (%s)", layer, layer->name);
|
||||
}
|
||||
else {
|
||||
if (UNLIKELY((size_t)j >= write_layers_size)) {
|
||||
|
|
|
@ -1020,7 +1020,7 @@ Image *BKE_image_add_generated(Main *bmain,
|
|||
int view_id;
|
||||
const char *names[2] = {STEREO_LEFT_NAME, STEREO_RIGHT_NAME};
|
||||
|
||||
/* STRNCPY(ima->filepath, name); */ /* don't do this, this writes in ain invalid filepath! */
|
||||
// STRNCPY(ima->filepath, name); /* don't do this, this writes in ain invalid filepath! */
|
||||
ima->gen_x = width;
|
||||
ima->gen_y = height;
|
||||
ima->gen_type = gen_type;
|
||||
|
|
|
@ -292,10 +292,10 @@ static void maskrasterize_spline_differentiate_point_outset(float (*diff_feather
|
|||
co_curr = diff_points[k_curr];
|
||||
co_next = diff_points[k_next];
|
||||
|
||||
/* sub_v2_v2v2(d_prev, co_prev, co_curr); */ /* precalc */
|
||||
// sub_v2_v2v2(d_prev, co_prev, co_curr); /* precalc */
|
||||
sub_v2_v2v2(d_next, co_curr, co_next);
|
||||
|
||||
/* normalize_v2(d_prev); */ /* precalc */
|
||||
// normalize_v2(d_prev); /* precalc */
|
||||
normalize_v2(d_next);
|
||||
|
||||
if ((do_test == false) ||
|
||||
|
|
|
@ -289,7 +289,7 @@ void BKE_mball_texspace_calc(Object *ob)
|
|||
bb = ob->runtime.bb;
|
||||
|
||||
/* Weird one, this. */
|
||||
/* INIT_MINMAX(min, max); */
|
||||
// INIT_MINMAX(min, max);
|
||||
(min)[0] = (min)[1] = (min)[2] = 1.0e30f;
|
||||
(max)[0] = (max)[1] = (max)[2] = -1.0e30f;
|
||||
|
||||
|
|
|
@ -262,7 +262,7 @@ static void mesh_blend_write(BlendWriter *writer, ID *id, const void *id_address
|
|||
|
||||
CD_LAYERS_FREE(vlayers);
|
||||
CD_LAYERS_FREE(elayers);
|
||||
/* CD_LAYER_FREE(flayers); */ /* Never allocated. */
|
||||
// CD_LAYER_FREE(flayers); /* Never allocated. */
|
||||
CD_LAYERS_FREE(llayers);
|
||||
CD_LAYERS_FREE(players);
|
||||
|
||||
|
@ -942,7 +942,7 @@ Mesh *BKE_mesh_new_nomain(
|
|||
NULL, ID_ME, BKE_idtype_idcode_to_name(ID_ME), LIB_ID_CREATE_LOCALIZE);
|
||||
BKE_libblock_init_empty(&mesh->id);
|
||||
|
||||
/* Don't use CustomData_reset(...); because we don't want to touch custom-data. */
|
||||
/* Don't use #CustomData_reset because we don't want to touch custom-data. */
|
||||
copy_vn_i(mesh->vdata.typemap, CD_NUMTYPES, -1);
|
||||
copy_vn_i(mesh->edata.typemap, CD_NUMTYPES, -1);
|
||||
copy_vn_i(mesh->fdata.typemap, CD_NUMTYPES, -1);
|
||||
|
|
|
@ -272,8 +272,8 @@ static int mesh_nurbs_displist_to_mdata(const Curve *cu,
|
|||
}
|
||||
|
||||
if (totvert == 0) {
|
||||
/* error("can't convert"); */
|
||||
/* Make Sure you check ob->data is a curve */
|
||||
/* Make Sure you check ob->data is a curve. */
|
||||
// error("can't convert");
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
|
@ -165,7 +165,7 @@ void BKE_mesh_calc_normals_mapping_ex(MVert *mverts,
|
|||
pnors = (float(*)[3])MEM_calloc_arrayN((size_t)numPolys, sizeof(float[3]), __func__);
|
||||
}
|
||||
/* NO NEED TO ALLOC YET */
|
||||
/* if (!fnors) fnors = MEM_calloc_arrayN(numFaces, sizeof(float[3]), "face nors mesh.c"); */
|
||||
// if (!fnors) {fnors = MEM_calloc_arrayN(numFaces, sizeof(float[3]), "face nors mesh.c"); }
|
||||
|
||||
if (only_face_normals == false) {
|
||||
/* vertex normals are optional, they require some extra calculations,
|
||||
|
@ -200,7 +200,7 @@ void BKE_mesh_calc_normals_mapping_ex(MVert *mverts,
|
|||
if (pnors != r_polyNors) {
|
||||
MEM_freeN(pnors);
|
||||
}
|
||||
/* if (fnors != r_faceNors) MEM_freeN(fnors); */ /* NO NEED TO ALLOC YET */
|
||||
// if (fnors != r_faceNors) { MEM_freeN(fnors); } /* NO NEED TO ALLOC YET */
|
||||
|
||||
fnors = pnors = nullptr;
|
||||
}
|
||||
|
|
|
@ -530,7 +530,7 @@ static void ocean_compute_jacobian_jxx(TaskPool *__restrict pool, void *UNUSED(t
|
|||
for (j = 0; j <= o->_N / 2; j++) {
|
||||
fftw_complex mul_param;
|
||||
|
||||
/* init_complex(mul_param, -scale, 0); */
|
||||
// init_complex(mul_param, -scale, 0);
|
||||
init_complex(mul_param, -1, 0);
|
||||
|
||||
mul_complex_f(mul_param, mul_param, chop_amount);
|
||||
|
@ -563,7 +563,7 @@ static void ocean_compute_jacobian_jzz(TaskPool *__restrict pool, void *UNUSED(t
|
|||
for (j = 0; j <= o->_N / 2; j++) {
|
||||
fftw_complex mul_param;
|
||||
|
||||
/* init_complex(mul_param, -scale, 0); */
|
||||
// init_complex(mul_param, -scale, 0);
|
||||
init_complex(mul_param, -1, 0);
|
||||
|
||||
mul_complex_f(mul_param, mul_param, chop_amount);
|
||||
|
@ -596,7 +596,7 @@ static void ocean_compute_jacobian_jxz(TaskPool *__restrict pool, void *UNUSED(t
|
|||
for (j = 0; j <= o->_N / 2; j++) {
|
||||
fftw_complex mul_param;
|
||||
|
||||
/* init_complex(mul_param, -scale, 0); */
|
||||
// init_complex(mul_param, -scale, 0);
|
||||
init_complex(mul_param, -1, 0);
|
||||
|
||||
mul_complex_f(mul_param, mul_param, chop_amount);
|
||||
|
@ -1015,7 +1015,7 @@ bool BKE_ocean_init(struct Ocean *o,
|
|||
"ocean_fft_in_nz");
|
||||
|
||||
o->_N_x = (double *)MEM_mallocN(o->_M * o->_N * sizeof(double), "ocean_N_x");
|
||||
/* o->_N_y = (float *) fftwf_malloc(o->_M * o->_N * sizeof(float)); (MEM01) */
|
||||
// o->_N_y = (float *) fftwf_malloc(o->_M * o->_N * sizeof(float)); /* (MEM01) */
|
||||
o->_N_z = (double *)MEM_mallocN(o->_M * o->_N * sizeof(double), "ocean_N_z");
|
||||
|
||||
o->_N_x_plan = fftw_plan_dft_c2r_2d(o->_M, o->_N, o->_fft_in_nx, o->_N_x, FFTW_ESTIMATE);
|
||||
|
@ -1083,7 +1083,7 @@ void BKE_ocean_free_data(struct Ocean *oc)
|
|||
fftw_destroy_plan(oc->_N_x_plan);
|
||||
fftw_destroy_plan(oc->_N_z_plan);
|
||||
MEM_freeN(oc->_N_x);
|
||||
/* fftwf_free(oc->_N_y); (MEM01) */
|
||||
// fftwf_free(oc->_N_y); /* (MEM01) */
|
||||
MEM_freeN(oc->_N_z);
|
||||
}
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ static float ocean_spectrum_wind_and_damp(const Ocean *oc,
|
|||
float newval = val * pow(fabs(k_dot_w), oc->_wind_alignment);
|
||||
|
||||
/* Eliminate wavelengths smaller than cutoff. */
|
||||
/* val *= exp(-k2 * m_cutoff); */
|
||||
// val *= exp(-k2 * m_cutoff);
|
||||
|
||||
/* Reduce reflected waves. */
|
||||
if (k_dot_w < 0.0f) {
|
||||
|
|
|
@ -2277,7 +2277,7 @@ static void softbody_calc_forces(
|
|||
float fieldfactor = -1.0f, windfactor = 0.25;
|
||||
int do_deflector /*, do_selfcollision */, do_springcollision, do_aero;
|
||||
|
||||
/* gravity = sb->grav * sb_grav_force_scale(ob); */ /* UNUSED */
|
||||
// gravity = sb->grav * sb_grav_force_scale(ob); /* UNUSED */
|
||||
|
||||
/* check conditions for various options */
|
||||
do_deflector = query_external_colliders(depsgraph, sb->collision_group);
|
||||
|
@ -2749,7 +2749,7 @@ static void mesh_to_softbody(Object *ob)
|
|||
build_bps_springlist(ob); /* scan for springs attached to bodypoints ONCE */
|
||||
/* insert *other second order* springs if desired */
|
||||
if (sb->secondspring > 0.0000001f) {
|
||||
/* exploits the first run of build_bps_springlist(ob); */
|
||||
/* Exploits the first run of `build_bps_springlist(ob)`. */
|
||||
add_2nd_order_springs(ob, sb->secondspring);
|
||||
/* yes we need to do it again. */
|
||||
build_bps_springlist(ob);
|
||||
|
|
|
@ -108,7 +108,7 @@ int main(int argc, char **argv)
|
|||
}
|
||||
#endif
|
||||
|
||||
/* fprintf (fpout, "\\x%02x", getc(fpin)); */
|
||||
// fprintf(fpout, "\\x%02x", getc(fpin));
|
||||
fprintf(fpout, "%3d,", getc(fpin));
|
||||
}
|
||||
|
||||
|
|
|
@ -341,7 +341,7 @@ bool ED_gpencil_has_keyframe_v3d(Scene *UNUSED(scene), Object *ob, int cfra)
|
|||
return (gpl->actframe->framenum == cfra);
|
||||
}
|
||||
/* XXX: disabled as could be too much of a penalty */
|
||||
/* return BKE_gpencil_layer_frame_find(gpl, cfra); */
|
||||
// return BKE_gpencil_layer_frame_find(gpl, cfra);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -343,7 +343,7 @@ static int ui_block_align_butal_cmp(const void *a, const void *b)
|
|||
* stupid UI code produces widgets which have the same TOP and LEFT positions...
|
||||
* We do not care really,
|
||||
* because this happens when UI is way too small to be usable anyway. */
|
||||
/* BLI_assert(0); */
|
||||
// BLI_assert(0);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -2281,7 +2281,7 @@ static void ui_shadowbox(const rctf *rect, uint pos, uint color, float shadsize,
|
|||
immVertex2fv(pos, v3);
|
||||
|
||||
/* corner shape */
|
||||
/* immAttr4ub(color, 0, 0, 0, alpha); */ /* Not needed, done above in previous tri */
|
||||
// immAttr4ub(color, 0, 0, 0, alpha); /* Not needed, done above in previous tri. */
|
||||
immVertex2fv(pos, v3);
|
||||
immAttr4ub(color, 0, 0, 0, 0);
|
||||
immVertex2fv(pos, v4);
|
||||
|
@ -2293,7 +2293,7 @@ static void ui_shadowbox(const rctf *rect, uint pos, uint color, float shadsize,
|
|||
immVertex2fv(pos, v3);
|
||||
|
||||
/* bottom quad */
|
||||
/* immAttr4ub(color, 0, 0, 0, alpha); */ /* Not needed, done above in previous tri */
|
||||
// immAttr4ub(color, 0, 0, 0, alpha); /* Not needed, done above in previous tri. */
|
||||
immVertex2fv(pos, v3);
|
||||
immAttr4ub(color, 0, 0, 0, 0);
|
||||
immVertex2fv(pos, v6);
|
||||
|
|
|
@ -1582,7 +1582,7 @@ static void vgroup_fix(
|
|||
mag = normalize_v3(norm);
|
||||
if (mag) { /* zeros fix */
|
||||
d = -dot_v3v3(norm, coord);
|
||||
/* dist = (dot_v3v3(norm, m.co) + d); */ /* UNUSED */
|
||||
// dist = (dot_v3v3(norm, m.co) + d); /* UNUSED */
|
||||
moveCloserToDistanceFromPlane(
|
||||
depsgraph, scene_eval, object_eval, me, i, norm, coord, d, distToBe, strength, cp);
|
||||
}
|
||||
|
|
|
@ -2540,7 +2540,7 @@ void file_directory_enter_handle(bContext *C, void *UNUSED(arg_unused), void *UN
|
|||
|
||||
/* don't do for now because it selects entire text instead of
|
||||
* placing cursor at the end */
|
||||
/* UI_textbutton_activate_but(C, but); */
|
||||
// UI_textbutton_activate_but(C, but);
|
||||
}
|
||||
#if defined(WIN32)
|
||||
else if (!can_create_dir(params->dir)) {
|
||||
|
|
|
@ -364,7 +364,7 @@ static void graph_panel_key_properties(const bContext *C, Panel *panel)
|
|||
}
|
||||
|
||||
block = uiLayoutGetBlock(layout);
|
||||
/* UI_block_func_handle_set(block, do_graph_region_buttons, NULL); */
|
||||
// UI_block_func_handle_set(block, do_graph_region_buttons, NULL);
|
||||
uiLayoutSetPropSep(layout, true);
|
||||
uiLayoutSetPropDecorate(layout, false);
|
||||
|
||||
|
|
|
@ -1773,7 +1773,7 @@ static void tree_element_to_path(TreeElement *te,
|
|||
char buf[128], *name;
|
||||
|
||||
temnext = (TreeElement *)(ld->next->data);
|
||||
/* tsenext = TREESTORE(temnext); */ /* UNUSED */
|
||||
// tsenext = TREESTORE(temnext); /* UNUSED */
|
||||
|
||||
nextptr = &temnext->rnaptr;
|
||||
name = RNA_struct_name_get_alloc(nextptr, buf, sizeof(buf), NULL);
|
||||
|
|
|
@ -968,9 +968,9 @@ void ElementResize(const TransInfo *t,
|
|||
float obsizemat[3][3];
|
||||
/* Reorient the size mat to fit the oriented object. */
|
||||
mul_m3_m3m3(obsizemat, tmat, td->axismtx);
|
||||
/* print_m3("obsizemat", obsizemat); */
|
||||
// print_m3("obsizemat", obsizemat);
|
||||
TransMat3ToSize(obsizemat, td->axismtx, fsize);
|
||||
/* print_v3("fsize", fsize); */
|
||||
// print_v3("fsize", fsize);
|
||||
}
|
||||
else {
|
||||
mat3_to_size(fsize, tmat);
|
||||
|
|
|
@ -852,7 +852,7 @@ static EdgeSlideData *createEdgeSlideVerts_double_side(TransInfo *t, TransDataCo
|
|||
#undef EDGESLIDE_VERT_IS_INNER
|
||||
}
|
||||
|
||||
/* EDBM_flag_disable_all(em, BM_ELEM_SELECT); */
|
||||
// EDBM_flag_disable_all(em, BM_ELEM_SELECT);
|
||||
|
||||
BLI_assert(STACK_SIZE(sv_array) == (uint)sv_tot);
|
||||
|
||||
|
@ -1037,7 +1037,7 @@ static EdgeSlideData *createEdgeSlideVerts_single_side(TransInfo *t, TransDataCo
|
|||
}
|
||||
}
|
||||
|
||||
/* EDBM_flag_disable_all(em, BM_ELEM_SELECT); */
|
||||
// EDBM_flag_disable_all(em, BM_ELEM_SELECT);
|
||||
|
||||
sld->sv = sv_array;
|
||||
sld->totsv = sv_tot;
|
||||
|
|
|
@ -1711,7 +1711,7 @@ static const char *exr_rgba_channelname(MultiPartInputFile &file, const char *ch
|
|||
const ChannelList &channels = file.header(0).channels();
|
||||
|
||||
for (ChannelList::ConstIterator i = channels.begin(); i != channels.end(); ++i) {
|
||||
/* const Channel &channel = i.channel(); */ /* Not used yet */
|
||||
// const Channel &channel = i.channel(); /* Not used yet. */
|
||||
const char *str = i.name();
|
||||
int len = strlen(str);
|
||||
if (len) {
|
||||
|
|
|
@ -1363,7 +1363,7 @@ void AnimationImporter::add_bone_animation_sampled(Object *ob,
|
|||
calc_joint_parent_mat_rest(par, nullptr, root, node);
|
||||
mul_m4_m4m4(temp, par, matfra);
|
||||
|
||||
/* evaluate_joint_world_transform_at_frame(temp, NULL, node, fra); */
|
||||
// evaluate_joint_world_transform_at_frame(temp, NULL, node, fra);
|
||||
|
||||
/* calc special matrix */
|
||||
mul_m4_series(mat, irest, temp, irest_dae, rest);
|
||||
|
|
|
@ -3003,7 +3003,7 @@ void RNA_property_float_set(PointerRNA *ptr, PropertyRNA *prop, float value)
|
|||
BLI_assert(RNA_property_type(prop) == PROP_FLOAT);
|
||||
BLI_assert(RNA_property_array_check(prop) == false);
|
||||
/* useful to check on bad values but set function should clamp */
|
||||
/* BLI_assert(RNA_property_float_clamp(ptr, prop, &value) == 0); */
|
||||
// BLI_assert(RNA_property_float_clamp(ptr, prop, &value) == 0);
|
||||
|
||||
if ((idprop = rna_idproperty_check(&prop, ptr))) {
|
||||
RNA_property_float_clamp(ptr, prop, &value);
|
||||
|
|
|
@ -56,7 +56,7 @@ static void rna_Armature_update_data(Main *UNUSED(bmain), Scene *UNUSED(scene),
|
|||
|
||||
DEG_id_tag_update(id, 0);
|
||||
WM_main_add_notifier(NC_GEOM | ND_DATA, id);
|
||||
/*WM_main_add_notifier(NC_OBJECT|ND_POSE, NULL); */
|
||||
// WM_main_add_notifier(NC_OBJECT|ND_POSE, NULL);
|
||||
}
|
||||
|
||||
static void rna_Armature_dependency_update(Main *bmain, Scene *UNUSED(scene), PointerRNA *ptr)
|
||||
|
@ -994,7 +994,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
|
|||
}
|
||||
RNA_def_property_float_sdna(prop, NULL, "rad_head");
|
||||
/* XXX range is 0 to lim, where lim = 10000.0f * MAX2(1.0, view3d->grid); */
|
||||
/*RNA_def_property_range(prop, 0, 1000); */
|
||||
// RNA_def_property_range(prop, 0, 1000);
|
||||
RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Envelope Head Radius", "Radius of head of bone (for Envelope deform only)");
|
||||
|
@ -1008,7 +1008,7 @@ static void rna_def_bone_common(StructRNA *srna, int editbone)
|
|||
}
|
||||
RNA_def_property_float_sdna(prop, NULL, "rad_tail");
|
||||
/* XXX range is 0 to lim, where lim = 10000.0f * MAX2(1.0, view3d->grid); */
|
||||
/*RNA_def_property_range(prop, 0, 1000); */
|
||||
// RNA_def_property_range(prop, 0, 1000);
|
||||
RNA_def_property_ui_range(prop, 0.01, 100, 0.1, 3);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Envelope Tail Radius", "Radius of tail of bone (for Envelope deform only)");
|
||||
|
@ -1346,7 +1346,7 @@ static void rna_def_edit_bone(BlenderRNA *brna)
|
|||
|
||||
/* calculated and read only, not actual data access */
|
||||
prop = RNA_def_property(srna, "matrix", PROP_FLOAT, PROP_MATRIX);
|
||||
/* RNA_def_property_float_sdna(prop, NULL, ""); */ /* Doesn't access any real data. */
|
||||
// RNA_def_property_float_sdna(prop, NULL, ""); /* Doesn't access any real data. */
|
||||
RNA_def_property_multi_array(prop, 2, rna_matrix_dimsize_4x4);
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_THICK_WRAP); /* no reference to original data */
|
||||
|
|
|
@ -1687,7 +1687,7 @@ static void rna_def_mvert(BlenderRNA *brna)
|
|||
RNA_def_property_update(prop, 0, "rna_Mesh_update_data_legacy_deg_tag_all");
|
||||
|
||||
prop = RNA_def_property(srna, "normal", PROP_FLOAT, PROP_DIRECTION);
|
||||
/* RNA_def_property_float_sdna(prop, NULL, "no"); */
|
||||
// RNA_def_property_float_sdna(prop, NULL, "no");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_range(prop, -1.0f, 1.0f);
|
||||
RNA_def_property_float_funcs(
|
||||
|
|
|
@ -1036,7 +1036,7 @@ static void rna_NodeTree_get_from_context(
|
|||
void *ret1, *ret2, *ret3;
|
||||
|
||||
RNA_pointer_create(NULL, ntreetype->rna_ext.srna, NULL, &ptr); /* dummy */
|
||||
/* RNA_struct_find_function(&ptr, "get_from_context"); */
|
||||
// RNA_struct_find_function(&ptr, "get_from_context");
|
||||
func = &rna_NodeTree_get_from_context_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
|
@ -2987,7 +2987,7 @@ static void rna_NodeSocketInterface_register_properties(bNodeTree *ntree,
|
|||
}
|
||||
|
||||
RNA_pointer_create((ID *)ntree, &RNA_NodeSocketInterface, stemp, &ptr);
|
||||
/* RNA_struct_find_function(&ptr, "register_properties"); */
|
||||
// RNA_struct_find_function(&ptr, "register_properties");
|
||||
func = &rna_NodeSocketInterface_register_properties_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
|
@ -3013,7 +3013,7 @@ static void rna_NodeSocketInterface_init_socket(
|
|||
RNA_pointer_create((ID *)ntree, &RNA_NodeSocketInterface, stemp, &ptr);
|
||||
RNA_pointer_create((ID *)ntree, &RNA_Node, node, &node_ptr);
|
||||
RNA_pointer_create((ID *)ntree, &RNA_NodeSocket, sock, &sock_ptr);
|
||||
/* RNA_struct_find_function(&ptr, "init_socket"); */
|
||||
// RNA_struct_find_function(&ptr, "init_socket");
|
||||
func = &rna_NodeSocketInterface_init_socket_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
|
@ -3043,7 +3043,7 @@ static void rna_NodeSocketInterface_from_socket(bNodeTree *ntree,
|
|||
RNA_pointer_create((ID *)ntree, &RNA_NodeSocketInterface, stemp, &ptr);
|
||||
RNA_pointer_create((ID *)ntree, &RNA_Node, node, &node_ptr);
|
||||
RNA_pointer_create((ID *)ntree, &RNA_NodeSocket, sock, &sock_ptr);
|
||||
/* RNA_struct_find_function(&ptr, "from_socket"); */
|
||||
// RNA_struct_find_function(&ptr, "from_socket");
|
||||
func = &rna_NodeSocketInterface_from_socket_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &ptr, func);
|
||||
|
|
|
@ -1851,20 +1851,20 @@ static void rna_def_particle(BlenderRNA *brna)
|
|||
|
||||
prop = RNA_def_property(srna, "birth_time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "time");
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
RNA_def_property_ui_text(prop, "Birth Time", "");
|
||||
|
||||
prop = RNA_def_property(srna, "lifetime", PROP_FLOAT, PROP_TIME);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
RNA_def_property_ui_text(prop, "Lifetime", "");
|
||||
|
||||
prop = RNA_def_property(srna, "die_time", PROP_FLOAT, PROP_TIME);
|
||||
RNA_def_property_float_sdna(prop, NULL, "dietime");
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
RNA_def_property_ui_text(prop, "Die Time", "");
|
||||
|
||||
prop = RNA_def_property(srna, "size", PROP_FLOAT, PROP_NONE);
|
||||
/* RNA_def_property_range(prop, lowerLimitf, upperLimitf); */
|
||||
// RNA_def_property_range(prop, lowerLimitf, upperLimitf);
|
||||
RNA_def_property_ui_text(prop, "Size", "");
|
||||
|
||||
/* */
|
||||
|
@ -3658,7 +3658,7 @@ static void rna_def_particle_system(BlenderRNA *brna)
|
|||
/* access to particle settings is redirected through functions */
|
||||
/* to allow proper id-buttons functionality */
|
||||
prop = RNA_def_property(srna, "settings", PROP_POINTER, PROP_NONE);
|
||||
/*RNA_def_property_pointer_sdna(prop, NULL, "part"); */
|
||||
// RNA_def_property_pointer_sdna(prop, NULL, "part");
|
||||
RNA_def_property_struct_type(prop, "ParticleSettings");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE | PROP_NEVER_NULL);
|
||||
RNA_def_property_pointer_funcs(
|
||||
|
|
|
@ -55,7 +55,9 @@ static void rna_def_speaker(BlenderRNA *brna)
|
|||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_ui_text(prop, "Mute", "Mute the speaker");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SOUND);
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "sound", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "Sound");
|
||||
|
@ -63,24 +65,30 @@ static void rna_def_speaker(BlenderRNA *brna)
|
|||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_override_flag(prop, PROPOVERRIDE_OVERRIDABLE_LIBRARY);
|
||||
RNA_def_property_ui_text(prop, "Sound", "Sound data-block used by this speaker");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_sound_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_sound_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "volume_max", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Maximum Volume", "Maximum volume, no matter how near the object is");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_max_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_max_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "volume_min", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Minimum Volume", "Minimum volume, no matter how far away the object is");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_min_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_min_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "distance_max", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
@ -89,24 +97,30 @@ static void rna_def_speaker(BlenderRNA *brna)
|
|||
prop,
|
||||
"Maximum Distance",
|
||||
"Maximum distance for volume calculation, no matter how far away the object is");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_max_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_max_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "distance_reference", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Reference Distance", "Reference distance at which volume is 100%");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_reference_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_distance_reference_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "attenuation", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, FLT_MAX);
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Attenuation", "How strong the distance affects volume, depending on distance model");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_attenuation_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_attenuation_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "cone_angle_outer", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
@ -116,8 +130,10 @@ static void rna_def_speaker(BlenderRNA *brna)
|
|||
"Outer Cone Angle",
|
||||
"Angle of the outer cone, in degrees, outside this cone the volume is "
|
||||
"the outer cone volume, between inner and outer cone the volume is interpolated");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_outer_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_outer_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "cone_angle_inner", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
|
@ -126,29 +142,37 @@ static void rna_def_speaker(BlenderRNA *brna)
|
|||
prop,
|
||||
"Inner Cone Angle",
|
||||
"Angle of the inner cone, in degrees, inside the cone the volume is 100%");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_inner_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_angle_inner_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "cone_volume_outer", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Outer Cone Volume", "Volume outside the outer cone");
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_volume_outer_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_cone_volume_outer_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "volume", PROP_FLOAT, PROP_FACTOR);
|
||||
RNA_def_property_range(prop, 0.0f, 1.0f);
|
||||
RNA_def_property_ui_text(prop, "Volume", "How loud the sound is");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SOUND);
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_volume_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "pitch", PROP_FLOAT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 0.1f, 10.0f);
|
||||
RNA_def_property_ui_text(prop, "Pitch", "Playback pitch of the sound");
|
||||
RNA_def_property_translation_context(prop, BLT_I18NCONTEXT_ID_SOUND);
|
||||
/* RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_pitch_set", NULL); */
|
||||
/* RNA_def_property_update(prop, 0, "rna_Speaker_update"); */
|
||||
# if 0
|
||||
RNA_def_property_float_funcs(prop, NULL, "rna_Speaker_pitch_set", NULL);
|
||||
RNA_def_property_update(prop, 0, "rna_Speaker_update");
|
||||
# endif
|
||||
|
||||
/* common */
|
||||
rna_def_animdata_common(srna);
|
||||
|
|
|
@ -1458,7 +1458,7 @@ static void rna_def_panel(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->description");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Panel_bl_description_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
RNA_def_property_clear_flag(prop, PROP_NEVER_NULL); /* check for NULL */
|
||||
|
||||
|
@ -1820,7 +1820,7 @@ static void rna_def_menu(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->description");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Menu_bl_description_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
RNA_def_property_clear_flag(prop, PROP_NEVER_NULL); /* check for NULL */
|
||||
|
||||
|
|
|
@ -1915,7 +1915,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
|||
/* Without setting the length the pointer size would be used. -3 because `.` -> `_OT_`. */
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME - 3);
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
|
@ -1923,7 +1923,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_translation_context", PROP_STRING, PROP_NONE);
|
||||
|
@ -1943,7 +1943,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
|||
"rna_Operator_bl_description_get",
|
||||
"rna_Operator_bl_description_length",
|
||||
"rna_Operator_bl_description_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_undo_group", PROP_STRING, PROP_NONE);
|
||||
|
@ -1953,7 +1953,7 @@ static void rna_def_operator(BlenderRNA *brna)
|
|||
"rna_Operator_bl_undo_group_get",
|
||||
"rna_Operator_bl_undo_group_length",
|
||||
"rna_Operator_bl_undo_group_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
|
||||
|
@ -2013,7 +2013,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_string_maxlength(prop, OP_MAX_TYPENAME); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_idname_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
|
||||
|
@ -2021,7 +2021,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
RNA_def_property_string_maxlength(prop, RNA_DYN_DESCR_MAX); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Operator_bl_label_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_translation_context", PROP_STRING, PROP_NONE);
|
||||
|
@ -2041,7 +2041,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
|||
"rna_Operator_bl_description_get",
|
||||
"rna_Operator_bl_description_length",
|
||||
"rna_Operator_bl_description_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_undo_group", PROP_STRING, PROP_NONE);
|
||||
|
@ -2051,7 +2051,7 @@ static void rna_def_macro_operator(BlenderRNA *brna)
|
|||
"rna_Operator_bl_undo_group_get",
|
||||
"rna_Operator_bl_undo_group_length",
|
||||
"rna_Operator_bl_undo_group_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
|
||||
|
@ -2073,11 +2073,13 @@ static void rna_def_operator_type_macro(BlenderRNA *brna)
|
|||
srna, "Operator Macro", "Storage of a sub operator in a macro after it has been added");
|
||||
RNA_def_struct_sdna(srna, "wmOperatorTypeMacro");
|
||||
|
||||
/* prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE); */
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
/* RNA_def_property_string_sdna(prop, NULL, "idname"); */
|
||||
/* RNA_def_property_ui_text(prop, "Name", "Name of the sub operator"); */
|
||||
/* RNA_def_struct_name_property(srna, prop); */
|
||||
# if 0
|
||||
prop = RNA_def_property(srna, "name", PROP_STRING, PROP_NONE);
|
||||
RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_string_sdna(prop, NULL, "idname");
|
||||
RNA_def_property_ui_text(prop, "Name", "Name of the sub operator");
|
||||
RNA_def_struct_name_property(srna, prop);
|
||||
# endif
|
||||
|
||||
prop = RNA_def_property(srna, "properties", PROP_POINTER, PROP_NONE);
|
||||
RNA_def_property_flag(prop, PROP_NEVER_NULL);
|
||||
|
|
|
@ -230,7 +230,7 @@ static wmKeyMapItem *rna_KeyMap_item_new(wmKeyMap *km,
|
|||
bool repeat,
|
||||
bool head)
|
||||
{
|
||||
/* wmWindowManager *wm = CTX_wm_manager(C); */
|
||||
// wmWindowManager *wm = CTX_wm_manager(C);
|
||||
wmKeyMapItem *kmi = NULL;
|
||||
char idname_bl[OP_MAX_TYPENAME];
|
||||
int modifier = 0;
|
||||
|
|
|
@ -80,7 +80,7 @@ static void rna_gizmo_draw_cb(const struct bContext *C, struct wmGizmo *gz)
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "draw"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "draw")` directly. */
|
||||
func = &rna_Gizmo_draw_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -98,7 +98,7 @@ static void rna_gizmo_draw_select_cb(const struct bContext *C, struct wmGizmo *g
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "draw_select"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "draw_select")` directly. */
|
||||
func = &rna_Gizmo_draw_select_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -117,7 +117,7 @@ static int rna_gizmo_test_select_cb(struct bContext *C, struct wmGizmo *gz, cons
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "test_select"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "test_select")` directly. */
|
||||
func = &rna_Gizmo_test_select_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -144,7 +144,7 @@ static int rna_gizmo_modal_cb(struct bContext *C,
|
|||
FunctionRNA *func;
|
||||
const int tweak_flag_int = tweak_flag;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "modal"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "modal")` directly. */
|
||||
func = &rna_Gizmo_modal_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -168,7 +168,7 @@ static void rna_gizmo_setup_cb(struct wmGizmo *gz)
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "setup"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "setup")` directly. */
|
||||
func = &rna_Gizmo_setup_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
gzgroup->type->rna_ext.call((bContext *)NULL, &gz_ptr, func, &list);
|
||||
|
@ -183,7 +183,7 @@ static int rna_gizmo_invoke_cb(struct bContext *C, struct wmGizmo *gz, const str
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "invoke"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "invoke")` directly. */
|
||||
func = &rna_Gizmo_invoke_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -206,7 +206,7 @@ static void rna_gizmo_exit_cb(struct bContext *C, struct wmGizmo *gz, bool cance
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "exit"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "exit")` directly. */
|
||||
func = &rna_Gizmo_exit_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
RNA_parameter_set_lookup(&list, "context", &C);
|
||||
|
@ -226,7 +226,7 @@ static void rna_gizmo_select_refresh_cb(struct wmGizmo *gz)
|
|||
ParameterList list;
|
||||
FunctionRNA *func;
|
||||
RNA_pointer_create(NULL, gz->type->rna_ext.srna, gz, &gz_ptr);
|
||||
/* RNA_struct_find_function(&gz_ptr, "select_refresh"); */
|
||||
/* Reference `RNA_struct_find_function(&gz_ptr, "select_refresh")` directly. */
|
||||
func = &rna_Gizmo_select_refresh_func;
|
||||
RNA_parameter_list_create(&list, &gz_ptr, func);
|
||||
gzgroup->type->rna_ext.call((bContext *)NULL, &gz_ptr, func, &list);
|
||||
|
@ -785,7 +785,7 @@ static void rna_gizmogroup_invoke_prepare_cb(const bContext *C,
|
|||
FunctionRNA *func;
|
||||
|
||||
RNA_pointer_create(NULL, gzgroup->type->rna_ext.srna, gzgroup, &gzgroup_ptr);
|
||||
/* RNA_struct_find_function(&wgroupr, "invoke_prepare"); */
|
||||
/* Reference `RNA_struct_find_function(&wgroupr, "invoke_prepare")` directly. */
|
||||
func = &rna_GizmoGroup_invoke_prepare_func;
|
||||
|
||||
RNA_parameter_list_create(&list, &gzgroup_ptr, func);
|
||||
|
@ -1033,7 +1033,7 @@ static void rna_def_gizmo(BlenderRNA *brna, PropertyRNA *cprop)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->idname");
|
||||
RNA_def_property_string_maxlength(prop, MAX_NAME);
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_Gizmo_bl_idname_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
RNA_define_verify_sdna(1); /* not in sdna */
|
||||
|
@ -1362,7 +1362,7 @@ static void rna_def_gizmogroup(BlenderRNA *brna)
|
|||
RNA_def_property_string_sdna(prop, NULL, "type->name");
|
||||
RNA_def_property_string_maxlength(prop, MAX_NAME); /* else it uses the pointer size! */
|
||||
RNA_def_property_string_funcs(prop, NULL, NULL, "rna_GizmoGroup_bl_label_set");
|
||||
/* RNA_def_property_clear_flag(prop, PROP_EDITABLE); */
|
||||
// RNA_def_property_clear_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_flag(prop, PROP_REGISTER);
|
||||
|
||||
prop = RNA_def_property(srna, "bl_space_type", PROP_ENUM, PROP_NONE);
|
||||
|
|
|
@ -216,7 +216,7 @@ void RNA_def_world(BlenderRNA *brna)
|
|||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_float_array_default(prop, default_world_color);
|
||||
RNA_def_property_ui_text(prop, "Color", "Color of the background");
|
||||
/* RNA_def_property_update(prop, 0, "rna_World_update"); */
|
||||
// RNA_def_property_update(prop, 0, "rna_World_update");
|
||||
/* render-only uses this */
|
||||
RNA_def_property_update(prop, 0, "rna_World_draw_update");
|
||||
|
||||
|
|
|
@ -7505,7 +7505,7 @@ static PyObject *pyrna_srna_Subtype(StructRNA *srna)
|
|||
/* Newclass will now have 2 ref's, ???,
|
||||
* probably 1 is internal since #Py_DECREF here segfaults. */
|
||||
|
||||
/* PyC_ObSpit("new class ref", newclass); */
|
||||
// PyC_ObSpit("new class ref", newclass);
|
||||
|
||||
if (newclass) {
|
||||
/* srna owns one, and the other is owned by the caller. */
|
||||
|
|
|
@ -334,7 +334,7 @@ static int validate_array_length(PyObject *rvalue,
|
|||
}
|
||||
|
||||
if (tot != len) {
|
||||
/* BLI_snprintf(error_str, error_str_size, "sequence must have length of %d", len); */
|
||||
// BLI_snprintf(error_str, error_str_size, "sequence must have length of %d", len);
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"%s %.200s.%.200s, sequence must have %d items total, not %d",
|
||||
error_prefix,
|
||||
|
|
|
@ -485,11 +485,11 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
|
|||
}
|
||||
|
||||
/* XXX We'd need re-entrant locking on Main for this to work... */
|
||||
/* BKE_main_lock(bmain); */
|
||||
// BKE_main_lock(bmain);
|
||||
|
||||
wm_link_do(lapp_data, op->reports, bmain, scene, view_layer, CTX_wm_view3d(C));
|
||||
|
||||
/* BKE_main_unlock(bmain); */
|
||||
// BKE_main_unlock(bmain);
|
||||
|
||||
/* mark all library linked objects to be updated */
|
||||
BKE_main_lib_objects_recalc_all(bmain);
|
||||
|
|
Loading…
Reference in New Issue