Revision: 32635
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=32635
Author:   campbellbarton
Date:     2010-10-21 13:20:44 +0200 (Thu, 21 Oct 2010)

Log Message:
-----------
bugfix [#24342] Wrong Bubble description when creation add-on without python 
comment on class

Modified Paths:
--------------
    trunk/blender/source/blender/makesrna/intern/rna_wm.c

Modified: trunk/blender/source/blender/makesrna/intern/rna_wm.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_wm.c       2010-10-21 
11:19:15 UTC (rev 32634)
+++ trunk/blender/source/blender/makesrna/intern/rna_wm.c       2010-10-21 
11:20:44 UTC (rev 32635)
@@ -829,6 +829,9 @@
        dummyot.description= _operator_descr; /* only assigne the pointer, 
string is NULL'd */
        RNA_pointer_create(NULL, &RNA_Operator, &dummyop, &dummyotr);
 
+       /* clear incase they are left unset */
+       _operator_idname[0]= _operator_name[0]= _operator_descr[0]= '\0';
+
        /* validate the python class */
        if(validate(&dummyotr, data, have_function) != 0)
                return NULL;
@@ -1096,7 +1099,7 @@
        prop= RNA_def_property(srna, "bl_description", PROP_STRING, PROP_NONE);
        RNA_def_property_string_sdna(prop, NULL, "type->description");
        RNA_def_property_string_maxlength(prop, 1024); /* else it uses the 
pointer size! */
-       RNA_def_property_flag(prop, PROP_REGISTER);
+       RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
 
        prop= RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_sdna(prop, NULL, "type->flag");
@@ -1151,7 +1154,7 @@
        prop= RNA_def_property(srna, "bl_description", PROP_STRING, PROP_NONE);
        RNA_def_property_string_sdna(prop, NULL, "type->description");
        RNA_def_property_string_maxlength(prop, 1024); /* else it uses the 
pointer size! */
-       RNA_def_property_flag(prop, PROP_REGISTER);
+       RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL);
 
        prop= RNA_def_property(srna, "bl_options", PROP_ENUM, PROP_NONE);
        RNA_def_property_enum_sdna(prop, NULL, "type->flag");


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to