Skip to content

Commit 07ce4d7

Browse files
authored
Revert check for creationParameters.position
This just causes other issues and places elements at 0, 0, 0. It was intended to fix some bug related to peds, markers and edf elements porting back and forth between camera, and cursor position.
1 parent 6b57f8c commit 07ce4d7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

[editor]/editor_main/client/elementcreation.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,7 @@ function doCreateElement ( elementType, resourceName, creationParameters, attach
3939
creationParameters = creationParameters or {}
4040
if not creationParameters.position then
4141
local targetX, targetY, targetZ = processCameraLineOfSight()
42-
if elementType ~= "object" or elementType ~= "vehicle" then
43-
creationParameters.position = nil
44-
else
45-
creationParameters.position = {targetX, targetY, targetZ + .5}
46-
end
42+
creationParameters.position = {targetX, targetY, targetZ + .5}
4743
creationParameters.rotation = getRandomRotation()
4844
end
4945

0 commit comments

Comments
 (0)