cm_bpyNodes.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:CrowdMaster 作者: johnroper100 项目源码 文件源码
def format_text(self):
        global TW
        out = []
        if self.text:
            lines = self.text.splitlines()
        elif self.text_file:
            text_file = bpy.data.texts.get(self.text_file)
            if text_file:
                lines = get_lines(text_file)
            else:
                return []
        else:
            return []
        width = self.width
        TW.width = int(width) // TEXT_WIDTH
        for t in lines:
            out.extend(TW.wrap(t))
            out.append("")
        return out
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号