lock_object to also lock scales and additional rotations

to indicate that they won't have an effect (or might break things)
This commit is contained in:
Andrej730
2024-09-26 16:55:07 +05:00
parent c80c52c248
commit a35304f1d5
+6
View File
@@ -112,11 +112,17 @@ class Geometry(bonsai.core.tool.Geometry):
def lock_object(cls, obj: bpy.types.Object) -> None:
obj.lock_location = (True, True, True)
obj.lock_rotation = (True, True, True)
obj.lock_rotation_w = True
obj.lock_rotations_4d = True
obj.lock_scale = (True, True, True)
@classmethod
def unlock_object(cls, obj: bpy.types.Object) -> None:
obj.lock_location = (False, False, False)
obj.lock_rotation = (False, False, False)
obj.lock_rotation_w = False
obj.lock_rotations_4d = False
obj.lock_scale = (False, False, False)
@classmethod
def delete_ifc_item(cls, obj: bpy.types.Object) -> None: