[Bf-blender-cvs] [089d2a1] master: Fix: Empty > Image not working in some hardwares
Dalai Felinto
noreply at git.blender.org
Mon Feb 8 18:15:58 CET 2016
Commit: 089d2a18d92c3f6637b28ef56f28a455f4f0a910
Author: Dalai Felinto
Date: Mon Feb 8 15:12:11 2016 -0200
Branches: master
https://developer.blender.org/rB089d2a18d92c3f6637b28ef56f28a455f4f0a910
Fix: Empty > Image not working in some hardwares
Basically the default U.glalphaclip was 1.8367099231598242e-40 in some
computers (e.g., OSX 10.11, AMD Radeon HD 6750M) this value would need for bad
gl clipping.
The new default is 0.0. To test this before/after the fix, just run:
$ blender -b --factory-startup --python-expr "import bpy; print(bpy.context.user_preferences.system.gl_clip_alpha)"
===================================================================
M source/blender/blenloader/intern/versioning_defaults.c
===================================================================
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 7ea26ea..894d599 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -63,6 +63,9 @@ void BLO_update_defaults_userpref_blend(void)
/* default from T47064 */
U.audiorate = 48000;
+
+ /* for some reason U.glalphaclip was 1.8367099231598242e-40 */
+ U.glalphaclip = 0.0f;
}
/**
More information about the Bf-blender-cvs
mailing list