[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [36188] trunk/blender/source/blender/ makesrna/intern/rna_userdef.c: changing the gl texture limit wasn' t updating the displayed sizes.

Campbell Barton ideasman42 at gmail.com
Sat Apr 16 12:19:34 CEST 2011


Revision: 36188
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=36188
Author:   campbellbarton
Date:     2011-04-16 10:19:34 +0000 (Sat, 16 Apr 2011)
Log Message:
-----------
changing the gl texture limit wasn't updating the displayed sizes.

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

Modified: trunk/blender/source/blender/makesrna/intern/rna_userdef.c
===================================================================
--- trunk/blender/source/blender/makesrna/intern/rna_userdef.c	2011-04-16 09:58:50 UTC (rev 36187)
+++ trunk/blender/source/blender/makesrna/intern/rna_userdef.c	2011-04-16 10:19:34 UTC (rev 36188)
@@ -110,6 +110,12 @@
 	rna_userdef_update(bmain, scene, ptr);
 }
 
+static void rna_userdef_gl_texture_limit_update(Main *bmain, Scene *scene, PointerRNA *ptr)
+{
+	GPU_free_images();
+	rna_userdef_update(bmain, scene, ptr);
+}
+
 static void rna_userdef_select_mouse_set(PointerRNA *ptr,int value)
 {
 	UserDef *userdef = (UserDef*)ptr->data;
@@ -2549,7 +2555,7 @@
 	RNA_def_property_enum_sdna(prop, NULL, "glreslimit");
 	RNA_def_property_enum_items(prop, gl_texture_clamp_items);
 	RNA_def_property_ui_text(prop, "GL Texture Limit", "Limit the texture size to save graphics memory");
-	RNA_def_property_update(prop, 0, "rna_userdef_mipmap_update");
+	RNA_def_property_update(prop, 0, "rna_userdef_gl_texture_limit_update");
 
 	prop= RNA_def_property(srna, "texture_time_out", PROP_INT, PROP_NONE);
 	RNA_def_property_int_sdna(prop, NULL, "textimeout");




More information about the Bf-blender-cvs mailing list