def draw(self, context):
layout = self.layout
element = context.material
# Restore cursor in case of unhandled Exception
w = context.window_manager.windows[0]
w.cursor_modal_restore()
# Panel
split = layout.split(.7) # namelist
split.prop(element, "bf_namelist_cls", text="")
row = split.row(align=True) # aspect
row.prop(element, "diffuse_color", text="")
row.prop(element, "alpha", text="")
element.bf_namelist.draw(context, layout)
# Other operators
row = layout.row()
row.operator("material.bf_show_fds_code", text="Show FDS Code")
row.operator("material.bf_surf_to_sel_obs", text="Assign To")
评论列表
文章目录