diff options
author | Matt Ebb <matt@mke3.net> | 2010-03-09 09:20:08 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-03-09 09:20:08 +0300 |
commit | 2ad3d8f158d2e7658e293efd90a4cb1ca403d2bb (patch) | |
tree | e0042efe9610c45204f15424453e59e760ba91b7 /source/blender/makesrna/intern | |
parent | 05332ed0edd06a6ede213ac0f544e7d7236c08ac (diff) |
Fix [#21145] Preferences: Solid OpenGL lights viewport update
Diffstat (limited to 'source/blender/makesrna/intern')
-rw-r--r-- | source/blender/makesrna/intern/rna_userdef.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c index 2b4a8aad255..7fd15e0e136 100644 --- a/source/blender/makesrna/intern/rna_userdef.c +++ b/source/blender/makesrna/intern/rna_userdef.c @@ -201,12 +201,9 @@ static void rna_UserDef_weight_color_update(Main *bmain, Scene *scene, PointerRN rna_userdef_update(bmain, scene, ptr); } -// XXX - todo, this is not accessible from here and it only works when the userprefs are in the same window. -// extern int GPU_default_lights(void); static void rna_UserDef_viewport_lights_update(Main *bmain, Scene *scene, PointerRNA *ptr) { - // GPU_default_lights(); - WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D, NULL); + WM_main_add_notifier(NC_SPACE|ND_SPACE_VIEW3D|NS_VIEW3D_GPU, NULL); rna_userdef_update(bmain, scene, ptr); } |