+ self.layout.prop(obj, "lod_for_parent")
+ if obj.lod_for_parent:
+ self.layout.prop(obj, "lod_index")
+
+class MspGLMaterialProperties(bpy.types.Panel):
+ bl_idname = "MATERIAL_PT_mspgl_properties"
+ bl_label = "MspGL properties"
+ bl_space_type = "PROPERTIES"
+ bl_region_type = "WINDOW"
+ bl_context = "material"
+
+ @classmethod
+ def poll(cls, context):
+ return context.active_object.active_material is not None
+
+ def draw(self, context):
+ mat = context.active_object.active_material
+ if not mat:
+ return
+
+ self.layout.prop(mat, "array_atlas");
+ if mat.array_atlas:
+ self.layout.prop(mat, "array_layer");