LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File irrlicht-1.8-directionlight.patch of Package irrlicht (Project openSUSE:Leap:42.3:Update)

Index: irrlicht-1.8/source/Irrlicht/CLightSceneNode.cpp
===================================================================
--- irrlicht-1.8.orig/source/Irrlicht/CLightSceneNode.cpp
+++ irrlicht-1.8/source/Irrlicht/CLightSceneNode.cpp
@@ -66,7 +66,8 @@ void CLightSceneNode::render()
 
 			case video::ELT_DIRECTIONAL:
 				driver->draw3DLine(core::vector3df(0.f, 0.f, 0.f),
-						LightData.Direction * LightData.Radius,
+						   //LightData.Direction * LightData.Radius,
+						   core::vector3df(0.f, 0.f, LightData.Radius),
 						LightData.DiffuseColor.toSColor());
 				break;
 			default: