+class CXR_COLLECTION_PANEL(bpy.types.Panel):
+ bl_label = "Source Settings"
+ bl_idname = "COL_PT_cxr"
+ bl_space_type = 'PROPERTIES'
+ bl_region_type = 'WINDOW'
+ bl_context = "collection"
+
+ def draw(self, context):
+ layout = self.layout
+ scene = context.scene
+
+ active_collection = bpy.context.collection
+
+ if active_collection != None:
+ layout.prop( active_collection.cxr_data, "shadow_caster" )
+ layout.prop( active_collection.cxr_data, "texture_shadows" )
+ layout.prop( active_collection.cxr_data, "preserve_order" )
+ layout.prop( active_collection.cxr_data, "surfaceprop" )
+