Skip to content

Commit

Permalink
Switch transform inputs to EntityApplyTransform
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercd committed Aug 7, 2024
1 parent 713a2a8 commit 4a0022b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion component-explorer/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ local function show_entity(entity_id, data)
scale_changed, scale_x, scale_y = imgui.InputFloat2("Scale", scale_x, scale_y)

if pos_changed or rot_changed or scale_changed then
EntitySetTransform(entity_id, x, y, rotation, scale_x, scale_y)
EntityApplyTransform(entity_id, x, y, rotation, scale_x, scale_y)
end

local parent = EntityGetParent(entity_id)
Expand Down

0 comments on commit 4a0022b

Please sign in to comment.