Import Fix, funcs moved, refs updated, ocl rename

Changed all imports from absolute to relative: 
- instead of importing the module 'cam' now imports come from '.' the relative parent folder
- importing the module into itself resulted in a circular import error, relative imports avoid this

Moved Functions, refs updated:
- some functions  (and 2 variables) only existed on the base level of the module, in the init file, and could not otherwise be accessed, they were moved into the utils file with other similar functions
- these were primarily called as update functions for Properties scattered across the addon, these have all been updated to reflect the new location and import convention

opencamlib_version rename:
- in 2 files there was a local variable named 'opencamlib_version' that was defined by a function called 'opencamlib_version' that returned the opencamlib_version
- this seemed to confuse Blender into thinking that it was being called before it was defined, and simply changing the variable name to 'ocl_version' while keeping the function name as 'opencamlib_version' fixed the issue
pull/269/head
SpectralVectors 2024-03-22 17:55:41 -04:00 zatwierdzone przez GitHub
rodzic cd4856c3d0
commit 803a5c5d63
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194

Informacje nt. zmian nie są dostępne