mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user