- Removed the `--disable-hiprt` flag from the runner command, simplifying the rendering options for users. - Updated the `jiggablend-runner` script and README to reflect the removal of the HIPRT control flag, enhancing clarity in usage instructions. - Enhanced the installation script to provide clearer examples for running the jiggablend manager and runner, improving user experience during setup. - Implemented a more robust GPU backend detection mechanism, allowing for better compatibility with various hardware configurations.
20 lines
536 B
Go
20 lines
536 B
Go
package blender
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"jiggablend/pkg/blendfile"
|
|
)
|
|
|
|
// ParseVersionFromFile parses the Blender version that a .blend file was saved with.
|
|
// Returns major and minor version numbers.
|
|
// Delegates to the shared pkg/blendfile implementation.
|
|
func ParseVersionFromFile(blendPath string) (major, minor int, err error) {
|
|
return blendfile.ParseVersionFromFile(blendPath)
|
|
}
|
|
|
|
// VersionString returns a formatted version string like "4.2".
|
|
func VersionString(major, minor int) string {
|
|
return fmt.Sprintf("%d.%d", major, minor)
|
|
}
|