peng3d/model.py
def ensureModelData(self,obj):
        """
        Ensures that the given ``obj`` has been initialized to be used with this model.
        
        If the object is found to not be initialized, it will be initialized.
        """
        if not hasattr(obj,"_modeldata"):
            self.create(obj,cache=True)
        if "_modelcache" not in obj._modeldata:
            # Assume all initialization is missing, simply reinitialize
            self.create(obj,cache=True)
def ensureModelData(self,obj):
        if not hasattr(obj,"_modeldata"):
            self.create(obj,cache=True)
        if "_modelcache" not in obj._modeldata:
            # Assume all initialization is missing, simply reinitialize
            self.create(obj,cache=True)
def ensureModelData ( self , obj ) : if not hasattr ( obj , "_modeldata" ) : self . create ( obj , cache = True ) if "_modelcache" not in obj . _modeldata : # Assume all initialization is missing, simply reinitialize self . create ( obj , cache = True )
Ensures that the given ``obj`` has been initialized to be used with this model.
        
        If the object is found to not be initialized, it will be initialized.
Ensures that the given obj has been initialized to be used with this model . If the object is found to not be initialized it will be initialized .