浏览代码

Merge pull request #21846 from Calinou/tweak-light-instance-error

Tweak the Light instantiation error message and fix a typo
Rémi Verschelde 7 年之前
父节点
当前提交
de8522aeb6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/3d/light.cpp

+ 1 - 1
scene/3d/light.cpp

@@ -312,7 +312,7 @@ Light::Light(VisualServer::LightType p_type) {
 Light::Light() {
 
 	type = VisualServer::LIGHT_DIRECTIONAL;
-	ERR_PRINT("Light shouldn't be instanced dircetly, use the subtypes.");
+	ERR_PRINT("Light should not be instanced directly; use the DirectionalLight, OmniLight or SpotLight subtypes instead.");
 }
 
 Light::~Light() {