[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [40685] trunk/blender/source/blender/ python/intern/bpy_rna.c: Attempt to fix error reported by yafaray devs from my commit r40660

Campbell Barton ideasman42 at gmail.com
Thu Sep 29 11:19:18 CEST 2011


Revision: 40685
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40685
Author:   campbellbarton
Date:     2011-09-29 09:19:15 +0000 (Thu, 29 Sep 2011)
Log Message:
-----------
Attempt to fix error reported by yafaray devs from my commit r40660

Revision Links:
--------------
    http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=40660

Modified Paths:
--------------
    trunk/blender/source/blender/python/intern/bpy_rna.c

Modified: trunk/blender/source/blender/python/intern/bpy_rna.c
===================================================================
--- trunk/blender/source/blender/python/intern/bpy_rna.c	2011-09-29 08:23:52 UTC (rev 40684)
+++ trunk/blender/source/blender/python/intern/bpy_rna.c	2011-09-29 09:19:15 UTC (rev 40685)
@@ -6242,7 +6242,7 @@
 
 	/* annoying!, need to check if the screen gets set to NULL which is a
 	 * hint that the file was actually re-loaded. */
-	const char is_valid_screen= (CTX_wm_screen(C) != NULL);
+	const char is_valid_wm= (CTX_wm_manager(C) != NULL);
 
 	PropertyRNA *pret_single= NULL;
 	void *retdata_single= NULL;
@@ -6505,7 +6505,7 @@
 		if (    (!is_static) &&
 		        (ptr->data) &&
 		        (RNA_struct_is_a(ptr->type, &RNA_Operator)) &&
-		        is_valid_screen == (CTX_wm_screen(C) != NULL))
+		        is_valid_wm == (CTX_wm_manager(C) != NULL))
 		{
 			wmOperator *op= ptr->data;
 			reports= op->reports;




More information about the Bf-blender-cvs mailing list