Skip to content

Commit

Permalink
Lua API fixes
Browse files Browse the repository at this point in the history
[CI BUILD]
  • Loading branch information
andybak committed Jul 4, 2023
1 parent 45a09d2 commit 959a7ae
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Assets/Resources/LuaModules/__autocomplete.lua
Expand Up @@ -1832,7 +1832,7 @@ function Transform:ScaleBy(scale) end
---@param rotation Rotation
---@param scale number
---@return Transform
function Transform:NewTRS(translation, rotation, scale) end
function Transform:New(translation, rotation, scale) end

---@param translation Vector3
---@return Transform
Expand Down
Expand Up @@ -27,5 +27,5 @@ function OnTriggerReleased()
path:Draw()
end
end
return Transform.zero
return Transform.identity
end
Expand Up @@ -19,7 +19,7 @@ function WhileTriggerPressed()
Brush:ForcePaintingOff(wave > spacing)

--Leave the pointer position unchanged
return Transform.zero
return Transform.identity
end

function End()
Expand Down
Expand Up @@ -25,5 +25,5 @@ function WhileTriggerPressed()
end

--Leave the actual pointer position unchanged
return Transform.zero
return Transform.identity
end
2 changes: 1 addition & 1 deletion Assets/Scripts/API/Lua/Wrappers/TransformApiWrapper.cs
Expand Up @@ -77,7 +77,7 @@ public TransformApiWrapper(TrTransform tr)
[LuaDocsParameter("translation", "The translation amount")]
[LuaDocsParameter("rotation", "The rotation amount")]
[LuaDocsParameter("scale", "The scale amount")]
public static TransformApiWrapper NewTRS(Vector3 translation, Quaternion rotation, float scale = 1)
public static TransformApiWrapper New(Vector3 translation, Quaternion rotation, float scale = 1)
{
var instance = new TransformApiWrapper(translation, rotation, scale);
return instance;
Expand Down

0 comments on commit 959a7ae

Please sign in to comment.