Skip to content
This repository was archived by the owner on Mar 3, 2025. It is now read-only.

Commit 2e760a0

Browse files
committed
Add project files
1 parent 6ea2265 commit 2e760a0

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import bpy
2+
from mathutils import Euler
3+
4+
def update_rotations(*args):
5+
for ok, o in bpy.data.objects.items():
6+
o.rotation_euler = Euler((0, 0, 0))
7+
8+
def register():
9+
for h in list(bpy.app.handlers.depsgraph_update_pre):
10+
if h.__name__ == "update_rotations":
11+
bpy.app.handlers.depsgraph_update_pre.remove(h)
12+
bpy.app.handlers.depsgraph_update_pre.append(update_rotations)
13+
14+
register()

blender_manifest.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
schema_version = "1.0.0"
2+
3+
id = "no_rotation"
4+
version = "0.0.1"
5+
name = "Disable Object Rotation"
6+
tagline = "This extension enforces a (0, 0, 0) euler rotation on all objects"
7+
maintainer = "ChaoticByte <contact@chaoticbyte.net>"
8+
type = "add-on"
9+
10+
blender_version_min = "4.2.0"
11+
12+
license = [
13+
"SPDX:GPL-3.0-or-later",
14+
]

0 commit comments

Comments
 (0)