Skip to content

Commit f175c54

Browse files
committed
Fix Attach operator
1 parent e3682de commit f175c54

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

props.py

+2
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ def clear_drivers(obj, prop_name: str):
106106
case 'uv_tiling':
107107
driver_obj = obj.node_tree
108108
driver_paths = {('nodes["Mapping"].inputs[3].default_value', i) for i in (0, 1)}
109+
if driver_obj.animation_data is None:
110+
return
109111
for d in driver_obj.animation_data.drivers:
110112
if (d.data_path, d.array_index) in driver_paths:
111113
driver_obj.driver_remove(d.data_path, d.array_index)

0 commit comments

Comments
 (0)