A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy injectors to reality checkers. Each agent is a specialized expert with personality, processes, and proven deliverables.
Shell
Enforce Blender asset validation before exporting selections
Rudy Celeklid3185f269379
diff --git a/game-development/blender/blender-addon-engineer.md b/game-development/blender/blender-addon-engineer.mdindex 3174d46e..fa2cece7 100644--- a/game-development/blender/blender-addon-engineer.md+++ b/game-development/blender/blender-addon-engineer.md@@ -64,6 +64,9 @@ class PIPELINE_OT_validate_assets(bpy.types.Operator):def execute(self, context):issues = []+ if not context.selected_objects:+ self.report({'WARNING'}, "Select assets before validation/export.")+ return {'CANCELLED'}for obj in context.selected_objects:if obj.type != "MESH":continue@@ -74,8 +77,8 @@ class PIPELINE_OT_validate_assets(bpy.types.Operator):if any(abs(s - 1.0) > 0.0001 for s in obj.scale):issues.append(f"{obj.name}: unapplied scale")- if len(obj.material_slots) == 0:- issues.append(f"{obj.name}: missing material slot")+ if not obj.material_slots or any(slot.material is None for slot in obj.material_slots):+ issues.append(f"{obj.name}: missing assigned material")if issues:self.report({'WARNING'}, f"Validation found {len(issues)} issue(s). See system console.")@@ -111,6 +114,10 @@ class PIPELINE_OT_export_selected(bpy.types.Operator):bl_label = "Export Selected"def execute(self, context):+ # The export button must enforce the same gate as the validation button.+ if bpy.ops.pipeline.validate_assets() != {'FINISHED'}:+ self.report({'WARNING'}, "Export blocked: resolve asset validation findings.")+ return {'CANCELLED'}export_path = context.scene.pipeline_export_pathbpy.ops.export_scene.gltf(filepath=export_path,