Define a poll class method for the class X3D_PT_import_general #33

Merged
Cedric Steiert merged 1 commits from vmarchetti/io_scene_x3d:repair-export-panel into main 2024-10-29 03:17:39 +01:00

View File

@ -321,6 +321,14 @@ class X3D_PT_import_general(bpy.types.Panel):
bl_label = "General"
bl_parent_id = "FILE_PT_operator"
@classmethod
def poll(cls, context):
sfile = context.space_data
operator = sfile.active_operator
return operator.bl_idname == "IMPORT_SCENE_OT_x3d"
def draw(self, context):
layout = self.layout
layout.use_property_split = True