Skip to content

Fix ExportMitsuba init for Blender 5.0 compatibility - #152

Open
evanofficial wants to merge 1 commit into
mitsuba-renderer:masterfrom
evanofficial:fix/blender5-export-init
Open

Fix ExportMitsuba init for Blender 5.0 compatibility#152
evanofficial wants to merge 1 commit into
mitsuba-renderer:masterfrom
evanofficial:fix/blender5-export-init

Conversation

@evanofficial

Copy link
Copy Markdown

Summary

Fixes the TypeError: ExportMitsuba.__init__() takes 1 positional argument but 2 were given error when exporting in Blender 5.0+.

Blender 5.0 changed how operator constructors work — Operator.__init__() no longer accepts arbitrary positional/keyword arguments. The *args, **kwargs in the ExportMitsuba.__init__ signature caused the mismatch. Since Operator.__init__ has always only taken self, the varargs were unnecessary.

Fixes #146

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Blender 5.0] TypeError: ExportMitsuba.__init__() takes 1 positional argument but 2 were given

1 participant