peng3d/model.py
def ensureBones(self,data):
        """
        Helper method ensuring per-entity bone data has been properly initialized.
        
        Should be called at the start of every method accessing per-entity data.
        
        ``data`` is the entity to check in dictionary form.
        """
        if "_bones" not in data:
            data["_bones"]={}
        if self.name not in data["_bones"]:
            data["_bones"][self.name]={"rot":self.start_rot[:],"length":self.blength}
def ensureBones(self,data):
        """
        Helper method ensuring per-entity bone data has been properly initialized.
        
        Should be called at the start of every method accessing per-entity data.
        
        ``data`` is the entity to check in dictionary form.
        """
        if "_bones" not in data:
            data["_bones"]={}
        if self.name not in data["_bones"]:
            data["_bones"][self.name]={"rot":self.start_rot[:],"length":self.blength}
Helper method ensuring per-entity bone data has been properly initialized.
        
        Should be called at the start of every method accessing per-entity data.
        
        ``data`` is the entity to check in dictionary form.