From a35304f1d550acc199528c60a4f2cbd5e201aa18 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 26 Sep 2024 16:55:07 +0500 Subject: [PATCH] lock_object to also lock scales and additional rotations to indicate that they won't have an effect (or might break things) --- src/bonsai/bonsai/tool/geometry.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bonsai/bonsai/tool/geometry.py b/src/bonsai/bonsai/tool/geometry.py index 44542fb5fa..a5da4ece7f 100644 --- a/src/bonsai/bonsai/tool/geometry.py +++ b/src/bonsai/bonsai/tool/geometry.py @@ -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: