* Bulk rename "ComfyUI-TurntableGSViewer" -> "ComfyUI-GSViewer" across package metadata, route prefix (/turntablegsviewer/spz -> /gsviewer/spz), logger name, extension id, and all console-log tags. * Extend onConfigure to defend against stale workflow schemas: rescues stranded camera-state JSON into properties["Camera Config"] and resets combo widgets whose value isn't in the option list. Fixes the validator-reject when an old-schema basic.json (camera state glued into widgets_values[3]) is loaded against today's renderer combo.
21 lines
494 B
Python
21 lines
494 B
Python
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
"""ComfyUI-GSViewer — tiny Gaussian-splat turntable viewer node."""
|
|
|
|
from .preview_gaussian import PreviewGaussians
|
|
from .spz_route import register_routes as _register_spz_route
|
|
|
|
_register_spz_route()
|
|
|
|
WEB_DIRECTORY = "web"
|
|
|
|
NODE_CLASS_MAPPINGS = {
|
|
"PreviewGaussians": PreviewGaussians,
|
|
}
|
|
|
|
NODE_DISPLAY_NAME_MAPPINGS = {
|
|
"PreviewGaussians": "Preview Gaussians Turntable",
|
|
}
|
|
|
|
__all__ = ["NODE_CLASS_MAPPINGS", "NODE_DISPLAY_NAME_MAPPINGS"]
|