Add project files

This commit is contained in:
ChaoticByte 2025-03-02 13:35:34 +01:00
parent 6ea2265007
commit 2e760a0919
No known key found for this signature in database
2 changed files with 28 additions and 0 deletions

14
__init__.py Normal file
View file

@ -0,0 +1,14 @@
import bpy
from mathutils import Euler
def update_rotations(*args):
for ok, o in bpy.data.objects.items():
o.rotation_euler = Euler((0, 0, 0))
def register():
for h in list(bpy.app.handlers.depsgraph_update_pre):
if h.__name__ == "update_rotations":
bpy.app.handlers.depsgraph_update_pre.remove(h)
bpy.app.handlers.depsgraph_update_pre.append(update_rotations)
register()