Cleanup: use bool, style
This commit is contained in:
parent
3f4e3f718f
commit
363cf1152f
|
@ -448,7 +448,7 @@ Mesh *AbcCurveReader::read_mesh(Mesh *existing_mesh,
|
|||
|
||||
if (same_topology) {
|
||||
Nurb *nurbs = static_cast<Nurb *>(curve->nurb.first);
|
||||
for (curve_idx=0; nurbs; nurbs = nurbs->next, ++curve_idx) {
|
||||
for (curve_idx = 0; nurbs; nurbs = nurbs->next, ++curve_idx) {
|
||||
const int num_in_alembic = (*num_vertices)[curve_idx];
|
||||
const int num_in_blender = nurbs->pntsu;
|
||||
|
||||
|
@ -465,7 +465,7 @@ Mesh *AbcCurveReader::read_mesh(Mesh *existing_mesh,
|
|||
}
|
||||
else {
|
||||
Nurb *nurbs = static_cast<Nurb *>(curve->nurb.first);
|
||||
for (curve_idx=0; nurbs; nurbs = nurbs->next, ++curve_idx) {
|
||||
for (curve_idx = 0; nurbs; nurbs = nurbs->next, ++curve_idx) {
|
||||
const int totpoint = (*num_vertices)[curve_idx];
|
||||
|
||||
if (nurbs->bp) {
|
||||
|
|
|
@ -224,7 +224,7 @@ void rna_def_mtex_common(struct BlenderRNA *brna, struct StructRNA *srna, const
|
|||
const char *activeset, const char *activeeditable, const char *structname,
|
||||
const char *structname_slots, const char *update, const char *update_index);
|
||||
void rna_def_texpaint_slots(struct BlenderRNA *brna, struct StructRNA *srna);
|
||||
void rna_def_view_layer_common(struct StructRNA *srna, int scene);
|
||||
void rna_def_view_layer_common(struct StructRNA *srna, bool scene);
|
||||
|
||||
void rna_def_actionbone_group_common(struct StructRNA *srna, int update_flag, const char *update_cb);
|
||||
void rna_ActionGroup_colorset_set(struct PointerRNA *ptr, int value);
|
||||
|
|
|
@ -381,7 +381,7 @@ void RNA_def_view_layer(BlenderRNA *brna)
|
|||
RNA_def_struct_path_func(srna, "rna_ViewLayer_path");
|
||||
RNA_def_struct_idprops_func(srna, "rna_ViewLayer_idprops");
|
||||
|
||||
rna_def_view_layer_common(srna, 1);
|
||||
rna_def_view_layer_common(srna, true);
|
||||
|
||||
func = RNA_def_function(srna, "update_render_passes", "rna_ViewLayer_update_render_passes");
|
||||
RNA_def_function_ui_description(func, "Requery the enabled render passes from the render engine");
|
||||
|
|
|
@ -906,7 +906,7 @@ static void rna_def_render_layer(BlenderRNA *brna)
|
|||
|
||||
RNA_define_verify_sdna(0);
|
||||
|
||||
rna_def_view_layer_common(srna, 0);
|
||||
rna_def_view_layer_common(srna, false);
|
||||
|
||||
prop = RNA_def_property(srna, "passes", PROP_COLLECTION, PROP_NONE);
|
||||
RNA_def_property_struct_type(prop, "RenderPass");
|
||||
|
|
|
@ -3221,7 +3221,7 @@ static void rna_def_unit_settings(BlenderRNA *brna)
|
|||
RNA_def_property_update(prop, NC_WINDOW, NULL);
|
||||
}
|
||||
|
||||
void rna_def_view_layer_common(StructRNA *srna, int scene)
|
||||
void rna_def_view_layer_common(StructRNA *srna, const bool scene)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
|
@ -3239,7 +3239,7 @@ void rna_def_view_layer_common(StructRNA *srna, int scene)
|
|||
RNA_def_property_struct_type(prop, "Material");
|
||||
RNA_def_property_flag(prop, PROP_EDITABLE);
|
||||
RNA_def_property_ui_text(prop, "Material Override",
|
||||
"Material to override all other materials in this view layer");
|
||||
"Material to override all other materials in this view layer");
|
||||
RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_ViewLayer_material_override_update");
|
||||
|
||||
prop = RNA_def_property(srna, "samples", PROP_INT, PROP_UNSIGNED);
|
||||
|
|
Loading…
Reference in New Issue