Skip to content

Commit 230f062

Browse files
committed
feat: reapply offset and world_space parameters with coercion in manage_gameobject function
1 parent 65bdb91 commit 230f062

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Server/src/services/tools/manage_gameobject.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,14 @@ def _to_vec3(parts):
115115
position = _coerce_vec(position, default=position)
116116
rotation = _coerce_vec(rotation, default=rotation)
117117
scale = _coerce_vec(scale, default=scale)
118+
offset = _coerce_vec(offset, default=offset)
118119
save_as_prefab = coerce_bool(save_as_prefab)
119120
set_active = coerce_bool(set_active)
120121
find_all = coerce_bool(find_all)
121122
search_in_children = coerce_bool(search_in_children)
122123
search_inactive = coerce_bool(search_inactive)
123124
includeNonPublicSerialized = coerce_bool(includeNonPublicSerialized)
125+
world_space = coerce_bool(world_space, default=True)
124126

125127
# Coerce 'component_properties' from JSON string to dict for client compatibility
126128
if isinstance(component_properties, str):

0 commit comments

Comments
 (0)