[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36697] trunk/blender/source/blender/ makesrna/intern/rna_ui.c: remove redundant (and confusing) register flag.

Campbell Barton ideasman42 at gmail.com
Sun May 15 08:29:53 CEST 2011


Revision: 36697
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36697
Author:   campbellbarton
Date:     2011-05-15 06:29:52 +0000 (Sun, 15 May 2011)
Log Message:
-----------
remove redundant (and confusing) register flag.

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_ui.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_ui.c	2011-05-15 05:43:59 UTC (rev 36696)
+++ trunk/blender/source/blender/makesrna/intern/rna_ui.c	2011-05-15 06:29:52 UTC (rev 36697)
@@ -622,7 +622,7 @@
 	/* poll */
 	func= RNA_def_function(srna, "poll", NULL);
 	RNA_def_function_ui_description(func, "If this method returns a non-null output, then the panel can be drawn.");
-	RNA_def_function_flag(func, FUNC_NO_SELF|FUNC_REGISTER|FUNC_REGISTER_OPTIONAL);
+	RNA_def_function_flag(func, FUNC_NO_SELF|FUNC_REGISTER_OPTIONAL);
 	RNA_def_function_return(func, RNA_def_boolean(func, "visible", 1, "", ""));
 	parm= RNA_def_pointer(func, "context", "Context", "", "");
 	RNA_def_property_flag(parm, PROP_REQUIRED|PROP_NEVER_NULL);
@@ -741,7 +741,7 @@
 	/* poll */
 	func= RNA_def_function(srna, "poll", NULL);
 	RNA_def_function_ui_description(func, "If this method returns a non-null output, then the menu can be drawn.");
-	RNA_def_function_flag(func, FUNC_NO_SELF|FUNC_REGISTER|FUNC_REGISTER_OPTIONAL);
+	RNA_def_function_flag(func, FUNC_NO_SELF|FUNC_REGISTER_OPTIONAL);
 	RNA_def_function_return(func, RNA_def_boolean(func, "visible", 1, "", ""));
 	parm= RNA_def_pointer(func, "context", "Context", "", "");
 	RNA_def_property_flag(parm, PROP_REQUIRED);




More information about the Bf-blender-cvs mailing list