This commit is contained in:
Andrej730
2025-01-22 18:26:52 +05:00
parent d8342134a0
commit 8dce7b9f68
+3 -1
View File
@@ -25,7 +25,9 @@ if TYPE_CHECKING:
import bonsai.tool as tool
def copy_attribute_to_selection(ifc: tool.Ifc, root: tool.Root, name: str, value: Union[str, None], obj: bpy.types.Object) -> bool:
def copy_attribute_to_selection(
ifc: tool.Ifc, root: tool.Root, name: str, value: Union[str, None], obj: bpy.types.Object
) -> bool:
if element := ifc.get_entity(obj):
try:
ifc.run("attribute.edit_attributes", product=element, attributes={name: value})