peng3d/model.py
def redraw(self,obj):
        """
        Redraws the model of the given object.
        
        Note that currently this method probably won't change any data since all movement and animation is done through pyglet groups.
        """
        self.ensureModelData(obj)
        data = obj._modeldata
        
        vlists = data["_modelcache"]["vlists"]
        
        for name,region in self.modeldata["regions"].items():
            vlists[name].vertices = region.getVertices(data)
            if region.enable_tex:
                vlists[name].tex_coords = region.getTexCoords(data)
def redraw(self,obj):
        """
        Redraws the model of the given object.
        
        Note that currently this method probably won't change any data since all movement and animation is done through pyglet groups.
        """
        self.ensureModelData(obj)
        data = obj._modeldata
        
        vlists = data["_modelcache"]["vlists"]
        
        for name,region in self.modeldata["regions"].items():
            vlists[name].vertices = region.getVertices(data)
            if region.enable_tex:
                vlists[name].tex_coords = region.getTexCoords(data)
def redraw ( self , obj ) : self . ensureModelData ( obj ) data = obj . _modeldata vlists = data [ "_modelcache" ] [ "vlists" ] for name , region in self . modeldata [ "regions" ] . items ( ) : vlists [ name ] . vertices = region . getVertices ( data ) if region . enable_tex : vlists [ name ] . tex_coords = region . getTexCoords ( data )
Redraws the model of the given object.
        
        Note that currently this method probably won't change any data since all movement and animation is done through pyglet groups.
Redraws the model of the given object . Note that currently this method probably won t change any data since all movement and animation is done through pyglet groups .