FBX: Use layout panels instead of PanelTypes #105238

Merged
Jesse Yurkovich merged 3 commits from deadpin/blender-addons:panels-fbx into main 2024-04-04 20:52:53 +02:00

Convert FBX to use layout panels instead of PanelTypes for import and
export property drawing. This should match the existing layout used by
the file browser.

This allows viewport/outliner drag-n-drop support to work fully [1] and
it enables the soon to be committed use of Collection exporters [2].

[1] After a drag-n-drop, this Import dialog will be presented (note that the
background color of panel headers will be fixed shortly: blender/blender!119803)
fbx-panels-0.png

[2] For Collection Exporters, this UI will be used (will require a small followup PR to fully enable once Collection Exporters are committed):
fbx-panels-1.png

Reference: blender/blender#119488

Convert FBX to use layout panels instead of PanelTypes for import and export property drawing. This should match the existing layout used by the file browser. This allows viewport/outliner drag-n-drop support to work fully [1] and it enables the soon to be committed use of Collection exporters [2]. [1] After a drag-n-drop, this Import dialog will be presented (note that the background color of panel headers will be fixed shortly: blender/blender!119803) ![fbx-panels-0.png](/attachments/fcc1541a-ac50-464a-ad0f-454374063fe3) [2] For Collection Exporters, this UI will be used (will require a small followup PR to fully enable once Collection Exporters are committed): ![fbx-panels-1.png](/attachments/a162239c-f3e8-46e7-a22f-9872435194f9) Reference: blender/blender#119488
Jesse Yurkovich added 1 commit 2024-03-18 04:48:08 +01:00
Jesse Yurkovich force-pushed panels-fbx from 601857ba82 to f7c61b936a 2024-03-30 23:17:48 +01:00 Compare
Jesse Yurkovich changed title from WIP: FBX: Use layout panels instead of PanelTypes to FBX: Use layout panels instead of PanelTypes 2024-03-30 23:35:21 +01:00
Jesse Yurkovich requested review from Thomas Barlow 2024-04-03 08:56:06 +02:00
Thomas Barlow requested changes 2024-04-04 03:07:48 +02:00
Dismissed
@ -194,3 +195,3 @@
def draw(self, context):
pass
operator = self
Member

Now that self is an Operator rather than a Panel, the operator variable can be replaced with using self.

Same case in ExportFBX.draw()

Now that `self` is an `Operator` rather than a `Panel`, the `operator` variable can be replaced with using `self`. Same case in `ExportFBX.draw()`
Mysteryem marked this conversation as resolved
Member

Oops, didn't realise the review was still pending and not actually sent.

Oops, didn't realise the review was still pending and not actually sent.
Jesse Yurkovich added 1 commit 2024-04-04 03:40:26 +02:00
Author
Member

Thanks for the review. I also bumped the addon/blender version now as well.

Thanks for the review. I also bumped the addon/blender version now as well.
Thomas Barlow approved these changes 2024-04-04 03:48:46 +02:00
Jesse Yurkovich merged commit 1a7c9197b7 into main 2024-04-04 20:52:53 +02:00
Jesse Yurkovich deleted branch panels-fbx 2024-04-04 20:52:53 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105238
No description provided.