Changeset 4997 for trunk/GSASIIplot.py


Ignore:
Timestamp:
Jul 16, 2021 9:21:10 AM (21 months ago)
Author:
vondreele
Message:

move imports to top of G2ctrlGUi code so debugger can find it
fix FillUnitCell? bug when incommensurate mag.
latest revision of incomm. mag. str. factor stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r4992 r4997  
    93409340       
    93419341    def RenderBonds(x,y,z,Bonds,radius,color,slice=20):
     9342        if not len(Bonds):
     9343            return
    93429344        GL.glMaterialfv(GL.GL_FRONT_AND_BACK,GL.GL_DIFFUSE,color)
    93439345        GL.glPushMatrix()
     
    95769578        for i,xyz in enumerate(Atoms):
    95779579            ax,ay,az = xyz
    9578             RenderBonds(ax,ay,az,bondData[i],bondR,Color[i])
     9580            if len(bondData[i]):
     9581                RenderBonds(ax,ay,az,bondData[i],bondR,Color[i])
    95799582               
    95809583    def Draw(caller='',Fade=[],NPkey=False):
Note: See TracChangeset for help on using the changeset viewer.