vukhanhtrung 2025-08-05 21:53:31 +00:00 zatwierdzone przez GitHub
commit 5a31fbf69d
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -43,10 +43,10 @@ class AddPresetCamOperation(AddPresetBase, Operator):
preset_defines = [ preset_defines = [
"from pathlib import Path", "from pathlib import Path",
"bpy.ops.scene.cam_operation_add()", "if '__file__' in globals(): bpy.ops.scene.cam_operation_add()",
"scene = bpy.context.scene", "scene = bpy.context.scene",
"o = scene.cam_operations[scene.cam_active_operation]", "o = scene.cam_operations[scene.cam_active_operation]",
"o.name = f'OP_{o.object_name}_{scene.cam_active_operation + 1}_{Path(__file__).stem}'", "if '__file__' in globals(): o.name = f'OP_{o.object_name}_{scene.cam_active_operation + 1}_{Path(__file__).stem}'",
] ]
preset_values = [ preset_values = [
@ -117,10 +117,10 @@ class AddPresetCamOperation(AddPresetBase, Operator):
"o.strategy", "o.strategy",
"o.update_z_buffer_image_tag", "o.update_z_buffer_image_tag",
"o.stepdown", "o.stepdown",
"o.path_object_name", # "o.path_object_name",
"o.pencil_threshold", "o.pencil_threshold",
"o.geometry_source", # "o.geometry_source",
"o.object_name", # "o.object_name",
"o.parallel_angle", "o.parallel_angle",
"o.output_header", "o.output_header",
"o.gcode_header", "o.gcode_header",