RepCylBond.cpp (pymol-open-source-2.2.0) | : | RepCylBond.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 181 | skipping to change at line 181 | |||
convertcgo = NULL; | convertcgo = NULL; | |||
CGOSetUseShader(I->renderCGO, use_shader); | CGOSetUseShader(I->renderCGO, use_shader); | |||
} | } | |||
} | } | |||
return ok; | return ok; | |||
} | } | |||
static void RepCylBondRender(RepCylBond * I, RenderInfo * info) | static void RepCylBondRender(RepCylBond * I, RenderInfo * info) | |||
{ | { | |||
CRay *ray = info->ray; | CRay *ray = info->ray; | |||
Picking **pick = info->pick; | auto pick = info->pick; | |||
float alpha; | float alpha; | |||
PyMOLGlobals *G = I->R.G; | PyMOLGlobals *G = I->R.G; | |||
int width, height; | int width, height; | |||
int ok = true; | int ok = true; | |||
SceneGetWidthHeight(G, &width, &height); | SceneGetWidthHeight(G, &width, &height); | |||
alpha = 1.f - SettingGet_f(G, I->R.cs->Setting, I->R.obj->Setting, cSetting_st ick_transparency); | alpha = 1.f - SettingGet_f(G, I->R.cs->Setting, I->R.obj->Setting, cSetting_st ick_transparency); | |||
if(fabs(alpha - 1.f) < R_SMALL4) | if(fabs(alpha - 1.f) < R_SMALL4) | |||
alpha = 1.f; | alpha = 1.f; | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |