idproperty.py 文件源码

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

项目:io_scene_mk8muunt 作者: Syroot 项目源码 文件源码
def register():
    for col_name, type_name in SUPPORTED_COLLECTIONS:
        type = getattr(bpy.types, type_name)
        type.id = p.IntProperty(name="unique id", get=_create_id_getter(col_name))

        counter_name = col_name + "_id_counter"
        setattr(bpy.types.Scene, counter_name,
                p.IntProperty(name="unique id counter", default=1))

    handlers.load_post.append(load_file)
    handlers.scene_update_pre.append(load_file_shim)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号