Skip to content

Commit

Permalink
Use "DirectionalLight/location".
Browse files Browse the repository at this point in the history
  • Loading branch information
create3000 committed Apr 21, 2024
1 parent 54f8cdd commit 2d3c8be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Undo/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2637,7 +2637,7 @@ ${scene .toXMLString ({ html: true, indent: " " .repeat (6) }) .trimEnd () }
switch (type)
{
case X3D .X3DConstants .DirectionalLight:
return new X3D .Box3 (X3D .Vector3 .One, innerNode .getMetaData ("DirectionalLight/location", new X3D .SFVec3f ()) .getValue ())
return new X3D .Box3 (X3D .Vector3 .One, innerNode .getMetaData ("DirectionalLight/location", new X3D .Vector3 ()))
.multLeft (new X3D .Matrix4 () .setRotation (new X3D .Rotation4 (X3D .Vector3 .zAxis, innerNode ._direction .getValue ())))
.multRight (modelMatrix);
case X3D .X3DConstants .PointLight:
Expand Down

0 comments on commit 2d3c8be

Please sign in to comment.