Skip to content

Fix ModelViewer and WorldColEditor#114

Merged
burninrubber0 merged 3 commits into
masterfrom
modelviewer-fixes
May 2, 2026
Merged

Fix ModelViewer and WorldColEditor#114
burninrubber0 merged 3 commits into
masterfrom
modelviewer-fixes

Conversation

@burninrubber0
Copy link
Copy Markdown
Member

@burninrubber0 burninrubber0 commented May 2, 2026

Resolves #103 and #107.

The problem with the designer was related to OpenTK 4 moving to a different threading system which isn't compatible with GLControls being created in a nested control's InitializeComponent(). The solution was to create it in code instead.

The ModelViewer had been temporarily removed in a previous commit. This was because the plugin loader would trigger a search for OpenTK 3 types using OpenTK 4 libraries, and of course fail since the namespaces changed between versions. There was no good solution to this except to refactor the plugin system so that dependencies could be automatically resolved. As a result, the plugin loader has basically been gutted, only serving to run each plugin's Init() method, and plugins are now in the root folder. This also fixes the issue that led to #111, so the unnecessary top-level packages have once again been removed.

On the developer side, the most notable change to the plugin system is that plugins are now manually added instead of automatically found. This is necessary to ensure they and their dependencies are correctly loaded.

Moves GLControl initialization to where it can be disabled at design time.
They aren't exactly plugins now, but they fit better with the rest of BM.
@burninrubber0 burninrubber0 added this to the 0.4 milestone May 2, 2026
@burninrubber0 burninrubber0 added classic For the original version of Bundle Manager bugfix Pull requests that fix bugs labels May 2, 2026
@burninrubber0 burninrubber0 merged commit 6800db4 into master May 2, 2026
2 checks passed
@burninrubber0 burninrubber0 deleted the modelviewer-fixes branch May 2, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull requests that fix bugs classic For the original version of Bundle Manager

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Model-related resource types fail to load

1 participant