Changeset 3914


Ignore:
Timestamp:
Apr 22, 2019 1:24:08 PM (2 years ago)
Author:
vondreele
Message:

change OnComputePDF argument from None to tc.event in SampleSizer? - forces recalculate of PDF & new plot.
save modelView in drawingData

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIplot.py

    r3913 r3914  
    78237823            SetViewPointText(drawingData['viewPoint'][0])
    78247824            SetViewDirText(drawingData['viewDir'])
    7825             Q = drawingData['Quaternion']
    78267825            G2frame.G2plotNB.status.SetStatusText('New quaternion: %.2f+, %.2fi+ ,%.2fj+, %.2fk'%(Q[0],Q[1],Q[2],Q[3]),1)
    78277826        elif key in ['N']:
     
    87188717        GL.glMultMatrixf(A4mat.T)
    87198718        GL.glTranslate(-Tx,-Ty,-Tz)
     8719        drawingData['modelView'] = GL.glGetDoublev(GL.GL_MODELVIEW_MATRIX)
    87208720        if drawingData['showABC']:
    87218721            x,y,z = drawingData['viewPoint'][0]
  • trunk/GSASIIpwdGUI.py

    r3906 r3914  
    65516551                data['Form Vol'] = max(10.0,SumElementVolumes())
    65526552                wx.CallAfter(UpdatePDFGrid,G2frame,data)
    6553                 wx.CallAfter(OnComputePDF,None)
     6553                wx.CallAfter(OnComputePDF,tc.event)
    65546554                   
    65556555            elemSizer.Add(wx.StaticText(parent=G2frame.dataWindow,
     
    65656565            if invalid: return
    65666566            wx.CallAfter(UpdatePDFGrid,G2frame,data)
    6567             wx.CallAfter(OnComputePDF,None)
     6567            wx.CallAfter(OnComputePDF,tc.event)
    65686568       
    65696569        def OnGeometry(event):
     
    65716571            wx.CallAfter(UpdatePDFGrid,G2frame,data)
    65726572            #UpdatePDFGrid(G2frame,data)
    6573             wx.CallAfter(OnComputePDF,None)
     6573            wx.CallAfter(OnComputePDF,tc.event)
    65746574       
    65756575        sampleSizer = wx.BoxSizer(wx.VERTICAL)
Note: See TracChangeset for help on using the changeset viewer.