panels.py 文件源码

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

项目:blenderfds 作者: firetools 项目源码 文件源码
def draw(self, context):
        layout = self.layout
        element = context.active_object
        # Restore cursor in case of unhandled Exception
        w = context.window_manager.windows[0]
        w.cursor_modal_restore()
        # Panel
        split = layout.split(.6)  # namelist
        split.prop(element, "bf_namelist_cls", text="")
        row = split.row(align=True)  # aspect
        row.prop(element, "show_transparent", icon="GHOST", text="")
        row.prop(element, "draw_type", text="")
        element.bf_namelist.draw(context, layout)
        row = layout.row()
        if element.bf_has_tmp: row.operator("object.bf_hide_fds_geometry")
        else: row.operator("object.bf_show_fds_geometry")
        row.operator("object.bf_show_fds_code", text="Show FDS Code")
        row.operator("object.bf_props_to_sel_obs", text="Copy To")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号