mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-26 14:20:59 +00:00
Fix some blender warnings.
This commit is contained in:
parent
2329fb1885
commit
f522e58d53
3 changed files with 6 additions and 6 deletions
|
@ -128,7 +128,7 @@ class ExportMDL6(bpy.types.Operator, ExportHelper):
|
|||
keywords = self.as_keywords (ignore=("check_existing", "filter_glob"))
|
||||
return export_mdl.export_mdl(self, context, **keywords)
|
||||
|
||||
class MDLPanel(bpy.types.Panel):
|
||||
class OBJECT_PT_MDLPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
bl_region_type = 'WINDOW'
|
||||
bl_context = 'object'
|
||||
|
|
|
@ -222,7 +222,7 @@ class QFEntityClasses(bpy.types.PropertyGroup):
|
|||
d[sub] = ec
|
||||
self.__class__.ecm = EntityClassMenu.build(menudict)
|
||||
|
||||
class QFECPanel(bpy.types.Panel):
|
||||
class OBJECT_PT_QFECPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
bl_region_type = 'WINDOW'
|
||||
bl_context = 'scene'
|
||||
|
|
|
@ -77,7 +77,7 @@ def draw_callback(self, context):
|
|||
bgl.glEnd()
|
||||
bgl.glLineWidth(1)
|
||||
|
||||
class QFEntityRelations(bpy.types.Panel):
|
||||
class VIEW3D_PT_QFEntityRelations(bpy.types.Panel):
|
||||
bl_space_type = 'VIEW_3D'
|
||||
bl_region_type = 'UI'
|
||||
bl_label = "Register callback"
|
||||
|
@ -100,7 +100,7 @@ class QFEntityRelations(bpy.types.Panel):
|
|||
def draw(self, context):
|
||||
pass
|
||||
|
||||
class EntityField_list(bpy.types.UIList):
|
||||
class OBJECT_UL_EntityField_list(bpy.types.UIList):
|
||||
def draw_item(self, context, layout, data, item, icon, active_data,
|
||||
active_propname, index):
|
||||
layout.label(item.name)
|
||||
|
@ -163,7 +163,7 @@ def reflow_text(text, max_width):
|
|||
lines.append(flowed_line)
|
||||
return lines
|
||||
|
||||
class EntityPanel(bpy.types.Panel):
|
||||
class OBJECT_PT_EntityPanel(bpy.types.Panel):
|
||||
bl_space_type = 'PROPERTIES'
|
||||
bl_region_type = 'WINDOW'
|
||||
bl_context = 'object'
|
||||
|
@ -198,7 +198,7 @@ class EntityPanel(bpy.types.Panel):
|
|||
sub.prop(qfentity, "flags", text=flags[idx], index=idx)
|
||||
row = layout.row()
|
||||
col = row.column()
|
||||
col.template_list("EntityField_list", "", qfentity, "fields",
|
||||
col.template_list("OBJECT_UL_EntityField_list", "", qfentity, "fields",
|
||||
qfentity, "field_idx", rows=3)
|
||||
col = row.column(align=True)
|
||||
col.operator("object.entprop_add", icon='ZOOMIN', text="")
|
||||
|
|
Loading…
Reference in a new issue