Fix Shot_Builder fails to invoke with correct project root directory #8

Merged
Nick Alberelli merged 6 commits from :fix/shot-builder-path-error into master 2023-04-13 16:07:29 +02:00
Showing only changes of commit 6cc708704e - Show all commits

View File

@ -171,7 +171,11 @@ class SHOTBUILDER_OT_NewShotFile(bpy.types.Operator):
self.production_name = project.name
ensure_loaded_production(context)
if not ensure_loaded_production(context):
self.report(
{'ERROR'}, "Shot builder configuration files not found in current project directory. \nCheck addon preferences to ensure project root contains shot_builder config.")
return {'CANCELLED'}
production = get_active_production()