Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve octree, bvh, renderer and output mode dropdowns. #1624

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

leMaik
Copy link
Member

@leMaik leMaik commented Sep 9, 2023

No description provided.

public Tooltip getTooltip(Registerable item) {
String description = item.getDescription();
if (description != null && !description.isEmpty()) {
return new Tooltip(item.getDescription());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return new Tooltip(item.getDescription());
return new Tooltip(description);

@@ -836,8 +836,8 @@ public OctreeImplementation getImplementation() {
return implementation;
}

public static void addImplementationFactory(String name, ImplementationFactory factory) {
factories.put(name, factory);
public static void addImplementationFactory(ImplementationFactory factory) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This breaking change is bad and we should find a way to work around this (maybe a backward-compatible ImplementationFactory and a new RegisterableImplementationFactory).

@@ -39,12 +39,12 @@ public interface RenderManager {
/**
* Get all available {@code Renderer}s.
*/
Collection<? extends Registerable> getRenderers();
Collection<Renderer> getRenderers();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would make it impossible for plugins to implement RenderManager and have their own type of swappable renderer that is incompatible with Chunky's renderers. (Which kinda defeats the point of changing the RenderManager implementation).

Copy link
Member Author

@leMaik leMaik Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh… Okay, so a renderer doesn't have to be a Renderer?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, Renderer is just the interface to work with Chunky's DefaultRenderManager.

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.

2 participants