Fix some RNA subtypes for collections' active/active_index props (some PROP_POINTER...
authorBastien Montagne <montagne29@wanadoo.fr>
Tue, 11 Dec 2012 14:11:46 +0000 (14:11 +0000)
committerBastien Montagne <montagne29@wanadoo.fr>
Tue, 11 Dec 2012 14:11:46 +0000 (14:11 +0000)
source/blender/makesrna/intern/rna_action.c
source/blender/makesrna/intern/rna_mesh.c
source/blender/makesrna/intern/rna_object.c
source/blender/makesrna/intern/rna_pose.c
source/blender/makesrna/intern/rna_scene.c

index 1f9503f1cc9b008d9fccea627922ee074a3eb763..07c394ae4d81482f994a990f56194174393aea19 100644 (file)
@@ -596,7 +596,7 @@ static void rna_def_action_pose_markers(BlenderRNA *brna, PropertyRNA *cprop)
                                       "rna_Action_active_pose_marker_set", NULL, NULL);
        RNA_def_property_ui_text(prop, "Active Pose Marker", "Active pose marker for this action");
        
-       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_NONE);
+       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED);
        RNA_def_property_int_sdna(prop, NULL, "active_marker");
        RNA_def_property_int_funcs(prop, "rna_Action_active_pose_marker_index_get",
                                   "rna_Action_active_pose_marker_index_set", "rna_Action_active_pose_marker_index_range");
index 287995e0aa6cd46d8a2430d67955f27283c76b7c..cdf8d6614f33d6bf5653b7f71d8523f6a44527d3 100644 (file)
@@ -2353,7 +2353,7 @@ static void rna_def_tessface_vertex_colors(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_flag(parm, PROP_RNAPTR);
        RNA_def_function_return(func, parm);
 
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshColorLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_tessface_vertex_color_active_get",
                                       "rna_Mesh_tessface_vertex_color_active_set", NULL, NULL);
@@ -2397,7 +2397,7 @@ static void rna_def_loop_colors(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_clear_flag(parm, PROP_THICK_WRAP);
 #endif
 
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshLoopColorLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_vertex_color_active_get",
                                       "rna_Mesh_vertex_color_active_set", NULL, NULL);
@@ -2425,7 +2425,7 @@ static void rna_def_uv_layers(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_struct_sdna(srna, "Mesh");
        RNA_def_struct_ui_text(srna, "UV Loop Layers", "Collection of uv loop layers");
 
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshUVLoopLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_layer_active_get",
                                       "rna_Mesh_uv_layer_active_set", NULL, NULL);
@@ -2530,7 +2530,7 @@ static void rna_def_tessface_uv_textures(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_function_return(func, parm);
 
 
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshTextureFaceLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_tessface_uv_texture_active_get",
                                       "rna_Mesh_tessface_uv_texture_active_set", NULL, NULL);
@@ -2575,7 +2575,7 @@ static void rna_def_uv_textures(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_clear_flag(parm, PROP_THICK_WRAP);
 #endif
 
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshTexturePolyLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_texture_active_get",
                                       "rna_Mesh_uv_texture_active_set", NULL, NULL);
@@ -2693,7 +2693,7 @@ static void rna_def_mesh(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "UV Loop Layers", "All UV loop layers");
        rna_def_uv_layers(brna, prop);
 
-       prop = RNA_def_property(srna, "uv_layer_clone", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "uv_layer_clone", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshUVLoopLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_layer_clone_get",
                                       "rna_Mesh_uv_layer_clone_set", NULL, NULL);
@@ -2705,7 +2705,7 @@ static void rna_def_mesh(BlenderRNA *brna)
                                   "rna_Mesh_uv_layer_clone_index_set", "rna_Mesh_uv_layer_index_range");
        RNA_def_property_ui_text(prop, "Clone UV loop layer Index", "Clone UV loop layer index");
 
-       prop = RNA_def_property(srna, "uv_layer_stencil", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "uv_layer_stencil", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshUVLoopLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_layer_stencil_get",
                                       "rna_Mesh_uv_layer_stencil_set", NULL, NULL);
@@ -2736,7 +2736,7 @@ static void rna_def_mesh(BlenderRNA *brna)
        RNA_def_property_ui_text(prop, "UV Maps", "All UV maps");
        rna_def_uv_textures(brna, prop);
 
-       prop = RNA_def_property(srna, "uv_texture_clone", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "uv_texture_clone", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshTexturePolyLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_texture_clone_get",
                                       "rna_Mesh_uv_texture_clone_set", NULL, NULL);
@@ -2748,7 +2748,7 @@ static void rna_def_mesh(BlenderRNA *brna)
                                   "rna_Mesh_uv_texture_clone_index_set", "rna_Mesh_uv_texture_index_range");
        RNA_def_property_ui_text(prop, "Clone UV Map Index", "Clone UV map index");
 
-       prop = RNA_def_property(srna, "uv_texture_stencil", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "uv_texture_stencil", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "MeshTexturePolyLayer");
        RNA_def_property_pointer_funcs(prop, "rna_Mesh_uv_texture_stencil_get",
                                       "rna_Mesh_uv_texture_stencil_set", NULL, NULL);
index 1d08ea97b79b529c711a6f739c8ef7a60bbe1cec..df7c4d7853177dcb05dbe20ef47d914e6a7f83e9 100644 (file)
@@ -1961,7 +1961,7 @@ static void rna_def_object_vertex_groups(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_ui_text(prop, "Active Vertex Group", "Vertex groups of the object");
        RNA_def_property_update(prop, NC_GEOM | ND_DATA, "rna_Object_internal_update_data");
 
-       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_NONE);
+       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED);
        RNA_def_property_clear_flag(prop, PROP_ANIMATABLE);
        RNA_def_property_int_sdna(prop, NULL, "actdef");
        RNA_def_property_int_funcs(prop, "rna_Object_active_vertex_group_index_get",
index 5c90fb8787c167a37302950ffe3fc4b617edc1ef..28d1de2c6012f582c2c091216083bec6a93aee66 100644 (file)
@@ -1246,7 +1246,7 @@ static void rna_def_bone_groups(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_ui_text(prop, "Active Bone Group", "Active bone group for this pose");
        RNA_def_property_update(prop, NC_OBJECT | ND_POSE, "rna_Pose_update");
        
-       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_NONE);
+       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED);
        RNA_def_property_int_sdna(prop, NULL, "active_group");
        RNA_def_property_int_funcs(prop, "rna_Pose_active_bone_group_index_get", "rna_Pose_active_bone_group_index_set",
                                   "rna_Pose_active_bone_group_index_range");
index 6f3a483cf7e5f3538f26d7855c844f013ef003c8..2d405f4fc0d1dcd529cde2264ba03487f060fc79 100644 (file)
@@ -2812,7 +2812,7 @@ static void rna_def_render_layers(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_struct_sdna(srna, "RenderData");
        RNA_def_struct_ui_text(srna, "Render Layers", "Collection of render layers");
 
-       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_NONE);
+       prop = RNA_def_property(srna, "active_index", PROP_INT, PROP_UNSIGNED);
        RNA_def_property_int_sdna(prop, NULL, "actlay");
        RNA_def_property_int_funcs(prop, "rna_RenderSettings_active_layer_index_get",
                                   "rna_RenderSettings_active_layer_index_set",
@@ -2820,7 +2820,7 @@ static void rna_def_render_layers(BlenderRNA *brna, PropertyRNA *cprop)
        RNA_def_property_ui_text(prop, "Active Layer Index", "Active index in render layer array");
        RNA_def_property_update(prop, NC_SCENE | ND_RENDER_OPTIONS, "rna_Scene_glsl_update");
        
-       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_UNSIGNED);
+       prop = RNA_def_property(srna, "active", PROP_POINTER, PROP_NONE);
        RNA_def_property_struct_type(prop, "SceneRenderLayer");
        RNA_def_property_pointer_funcs(prop, "rna_RenderSettings_active_layer_get",
                                       "rna_RenderSettings_active_layer_set", NULL, NULL);