Make a class panel to easily draw each class

This commit is contained in:
2024-06-06 19:55:46 +02:00
parent cd8301e29c
commit 83d321c69d
6 changed files with 43 additions and 54 deletions
+3 -5
View File
@@ -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')