generated from stilobique/BlenderTemplate
Make a class panel to easily draw each class
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
import bpy
|
||||
from .main import GraouPanel
|
||||
|
||||
|
||||
class GRAOU_PT_asset(bpy.types.Panel):
|
||||
class GraouPanel_asset(GraouPanel):
|
||||
bl_idname = 'GRAOU_PT_asset'
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_label = 'Generate Assets'
|
||||
bl_category = 'Graou Studio'
|
||||
|
||||
def draw(self, context):
|
||||
layout = self.layout
|
||||
|
||||
layout.label(text='Asset:')
|
||||
layout.operator('graou.make_collision', text='Generate collision', icon='MOD_PHYSICS')
|
||||
|
||||
Reference in New Issue
Block a user