[Bf-blender-cvs] [dab3865c0b] master: Fix UI message issue, and style cleanup (!)

Bastien Montagne noreply at git.blender.org
Fri Mar 24 20:02:58 CET 2017


Commit: dab3865c0bc8427a64a6a69a48cc3b727fbcf97e
Author: Bastien Montagne
Date:   Fri Mar 24 19:59:14 2017 +0100
Branches: master
https://developer.blender.org/rBdab3865c0bc8427a64a6a69a48cc3b727fbcf97e

Fix UI message issue, and style cleanup (!)

===================================================================

M	source/blender/makesrna/intern/rna_scene_api.c

===================================================================

diff --git a/source/blender/makesrna/intern/rna_scene_api.c b/source/blender/makesrna/intern/rna_scene_api.c
index d1ecd91277..f3146c9e6a 100644
--- a/source/blender/makesrna/intern/rna_scene_api.c
+++ b/source/blender/makesrna/intern/rna_scene_api.c
@@ -376,60 +376,54 @@ void RNA_api_scene(StructRNA *srna)
 	RNA_def_parameter_flags(parm, 0, PARM_REQUIRED);
 	RNA_def_property_subtype(parm, PROP_FILEPATH); /* allow non utf8 */
 
-	RNA_def_boolean(func,
-		"apply_modifiers", 0, "Apply Modifiers",
-		"Apply modifiers to exported mesh (non destructive))");
+	RNA_def_boolean(func, "apply_modifiers", false,
+	                "Apply Modifiers", "Apply modifiers to exported mesh (non destructive))");
 
 	RNA_def_int(func, "export_mesh_type", 0, INT_MIN, INT_MAX,
-		"Resolution", "Modifier resolution for export", INT_MIN, INT_MAX);
+	            "Resolution", "Modifier resolution for export", INT_MIN, INT_MAX);
 
-	RNA_def_boolean(func, "selected", 0, "Selection Only",
-		"Export only selected elements");
+	RNA_def_boolean(func, "selected", false, "Selection Only", "Export only selected elements");
 
-	RNA_def_boolean(func, "include_children", 0, "Include Children",
-		"Export all children of selected objects (even if not selected)");
+	RNA_def_boolean(func, "include_children", false,
+	                "Include Children", "Export all children of selected objects (even if not selected)");
 
-	RNA_def_boolean(func, "include_armatures", 0, "Include Armatures",
-		"Export related armatures (even if not selected)");
+	RNA_def_boolean(func, "include_armatures", false,
+	                "Include Armatures", "Export related armatures (even if not selected)");
 
-	RNA_def_boolean(func, "include_shapekeys", 1, "Include Shape Keys",
-		"Export all Shape Keys from Mesh Objects");
+	RNA_def_boolean(func, "include_shapekeys", true, "Include Shape Keys", "Export all Shape Keys from Mesh Objects");
 
-	RNA_def_boolean(func, "deform_bones_only", 0, "Deform Bones only",
-		"Only export deforming bones with armatures");
+	RNA_def_boolean(func, "deform_bones_only", false,
+	                "Deform Bones only", "Only export deforming bones with armatures");
 
-	RNA_def_boolean(func, "active_uv_only", 0, "Only Selected UV Map",
-		"Export only the selected UV Map");
+	RNA_def_boolean(func, "active_uv_only", false, "Only Selected UV Map", "Export only the selected UV Map");
 
-	RNA_def_boolean(func, "include_uv_textures", 0, "Include UV Textures",
-		"Export textures assigned to the object UV Maps");
+	RNA_def_boolean(func, "include_uv_textures", false,
+	                "Include UV Textures", "Export textures assigned to the object UV Maps");
 
-	RNA_def_boolean(func, "include_material_textures", 0, "Include Material Textures",
-		"Export textures assigned to the object Materials");
+	RNA_def_boolean(func, "include_material_textures", false,
+	                "Include Material Textures", "Export textures assigned to the object Materials");
 
-	RNA_def_boolean(func, "use_texture_copies", 1, "Copy",
-		"Copy textures to same folder where the .dae file is exported");
+	RNA_def_boolean(func, "use_texture_copies", true,
+	                "Copy", "Copy textures to same folder where the .dae file is exported");
 
-	RNA_def_boolean(func, "triangulate", 1, "Triangulate",
-		"Export Polygons (Quads & NGons) as Triangles");
+	RNA_def_boolean(func, "triangulate", true, "Triangulate", "Export Polygons (Quads & NGons) as Triangles");
 
-	RNA_def_boolean(func, "use_object_instantiation", 1, "Use Object Instances",
-		"Instantiate multiple Objects from same Data");
+	RNA_def_boolean(func, "use_object_instantiation", true,
+	                "Use Object Instances", "Instantiate multiple Objects from same Data");
 
-	RNA_def_boolean(func, "use_blender_profile", 1, "Use Blender Profile",
-		"Export additional Blender specific information (for material, shaders, bones, etc.)");
+	RNA_def_boolean(func, "use_blender_profile", true, "Use Blender Profile",
+	                "Export additional Blender specific information (for material, shaders, bones, etc.)");
 
-	RNA_def_boolean(func, "sort_by_name", 0, "Sort by Object name",
-		"Sort exported data by Object name");
+	RNA_def_boolean(func, "sort_by_name", false, "Sort by Object name", "Sort exported data by Object name");
 
 	RNA_def_int(func, "export_transformation_type", 0, INT_MIN, INT_MAX,
-		"Transform", "Transformation type for translation, scale and rotation", INT_MIN, INT_MAX);
+	            "Transform", "Transformation type for translation, scale and rotation", INT_MIN, INT_MAX);
 
-	RNA_def_boolean(func, "open_sim", 0, "Export to SL/OpenSim",
-		"Compatibility mode for SL, OpenSim and other compatible online worlds");
+	RNA_def_boolean(func, "open_sim", false,
+	                "Export to SL/OpenSim", "Compatibility mode for SL, OpenSim and other compatible online worlds");
 
-    RNA_def_boolean(func, "keep_bind_info", 0,
-		"Keep Bind Info", "Store Bindpose information in custom bone properties for later use during Collada export");
+	RNA_def_boolean(func, "keep_bind_info", false, "Keep Bind Info",
+	                "Store bind pose information in custom bone properties for later use during Collada export");
 
 #endif




More information about the Bf-blender-cvs mailing list