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
Collaborator

Since commit 6f83502ad5 the following message is printed to console when an Export to X3D is invoked from the menu

rna_uiItemR: property not found: EXPORT_SCENE_OT_x3d.as_collection

This message is correlated with the addition of the class X3D_PT_import_general at commit 6f83502ad5 that is missing the class method poll.

This pull request adds a boilerplate definition of the poll method to the X3D_PT_import_general . As a result, the warning message is no longer printed upon an X3D export invocation.

This may be demonstrated by starting blender with the default cube model, and invoking the export X3D from the menu. The warning messages are printed to console before the user selects the output path for the export.

Since commit 6f83502ad5 the following message is printed to console when an Export to X3D is invoked from the menu `rna_uiItemR: property not found: EXPORT_SCENE_OT_x3d.as_collection` This message is correlated with the addition of the class X3D_PT_import_general at commit 6f83502ad5 that is missing the class method poll. This pull request adds a boilerplate definition of the poll method to the X3D_PT_import_general . As a result, the warning message is no longer printed upon an X3D export invocation. This may be demonstrated by starting blender with the default cube model, and invoking the export X3D from the menu. The warning messages are printed to console before the user selects the output path for the export.
Vincent Marchetti added 1 commit 2024-10-29 03:03:44 +01:00
Vincent Marchetti requested review from Cedric Steiert 2024-10-29 03:05:50 +01:00
Cedric Steiert approved these changes 2024-10-29 03:17:22 +01:00
Cedric Steiert left a comment
Collaborator

Thanks for checking and fixing, seems like i totally missed to inlcude the poll method back then...

Thanks for checking and fixing, seems like i totally missed to inlcude the poll method back then...
Cedric Steiert merged commit d06e6d8afd into main 2024-10-29 03:17:39 +01:00
Sign in to join this conversation.
No description provided.