diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-12-18 08:34:56 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-12-18 08:34:56 +0400 |
commit | 509f1690112bd4aa4fd5f0c537b74422de1d4bfe (patch) | |
tree | 664e0858420a2932b52409c8efcea8e6b410150b /source/blender/makesrna/intern/rna_object.c | |
parent | e9e08a1d12594eab0e341049fc252ff8578e9333 (diff) |
Style Cleanup
Diffstat (limited to 'source/blender/makesrna/intern/rna_object.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_object.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/makesrna/intern/rna_object.c b/source/blender/makesrna/intern/rna_object.c index 40bea3a6051..912e3f6403b 100644 --- a/source/blender/makesrna/intern/rna_object.c +++ b/source/blender/makesrna/intern/rna_object.c @@ -1472,7 +1472,7 @@ int rna_Object_use_dynamic_topology_sculpting_get(PointerRNA *ptr) return (ss && ss->bm); } -static void rna_Object_lod_distance_update(Main *bmain, Scene *scene, PointerRNA *ptr) +static void rna_Object_lod_distance_update(Main *UNUSED(bmain), Scene *UNUSED(scene), PointerRNA *ptr) { Object *ob = (Object *)ptr->id.data; BKE_object_lod_sort(ob); @@ -2036,7 +2036,7 @@ static void rna_def_object_vertex_groups(BlenderRNA *brna, PropertyRNA *cprop) } -static void rna_def_object_lodlevel(BlenderRNA* brna) +static void rna_def_object_lodlevel(BlenderRNA *brna) { StructRNA *srna; PropertyRNA *prop; @@ -2048,26 +2048,26 @@ static void rna_def_object_lodlevel(BlenderRNA* brna) RNA_def_property_float_sdna(prop, NULL, "distance"); RNA_def_property_range(prop, 0.0, FLT_MAX); RNA_def_property_ui_text(prop, "Distance", "Distance to begin using this level of detail"); - RNA_def_property_update(prop, NC_OBJECT|ND_LOD, "rna_Object_lod_distance_update"); + RNA_def_property_update(prop, NC_OBJECT | ND_LOD, "rna_Object_lod_distance_update"); prop = RNA_def_property(srna, "object", PROP_POINTER, PROP_NONE); RNA_def_property_pointer_sdna(prop, NULL, "source"); RNA_def_property_struct_type(prop, "Object"); RNA_def_property_flag(prop, PROP_EDITABLE); RNA_def_property_ui_text(prop, "Object", "Object to use for this level of detail"); - RNA_def_property_update(prop, NC_OBJECT|ND_LOD, NULL); + RNA_def_property_update(prop, NC_OBJECT | ND_LOD, NULL); prop = RNA_def_property(srna, "use_mesh", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", OB_LOD_USE_MESH); RNA_def_property_ui_text(prop, "Use Mesh", "Use the mesh from this object at this level of detail"); RNA_def_property_ui_icon(prop, ICON_MESH_DATA, 0); - RNA_def_property_update(prop, NC_OBJECT|ND_LOD, NULL); + RNA_def_property_update(prop, NC_OBJECT | ND_LOD, NULL); prop = RNA_def_property(srna, "use_material", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "flags", OB_LOD_USE_MAT); RNA_def_property_ui_text(prop, "Use Material", "Use the material from this object at this level of detail"); RNA_def_property_ui_icon(prop, ICON_MATERIAL, 0); - RNA_def_property_update(prop, NC_OBJECT|ND_LOD, NULL); + RNA_def_property_update(prop, NC_OBJECT | ND_LOD, NULL); } @@ -2736,7 +2736,7 @@ static void rna_def_object(BlenderRNA *brna) RNA_def_property_collection_sdna(prop, NULL, "lodlevels", NULL); RNA_def_property_struct_type(prop, "LodLevel"); RNA_def_property_ui_text(prop, "Level of Detail Levels", "A collection of detail levels to automatically switch between"); - RNA_def_property_update(prop, NC_OBJECT|ND_LOD, NULL); + RNA_def_property_update(prop, NC_OBJECT | ND_LOD, NULL); RNA_api_object(srna); } |