Explorar o código

Allow importing punctual lights from Blend.

K. S. Ernest (iFire) Lee %!s(int64=3) %!d(string=hai) anos
pai
achega
b675a6b9de
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/gltf/editor/editor_scene_importer_blend.cpp

+ 1 - 1
modules/gltf/editor/editor_scene_importer_blend.cpp

@@ -85,7 +85,7 @@ Node *EditorSceneFormatImporterBlend::import_scene(const String &p_path, uint32_
 	} else {
 		parameters_arg += "export_cameras=False,";
 	}
-	if (p_options.has(SNAME("blender/nodes/lights")) && p_options[SNAME("blender/nodes/lights")]) {
+	if (p_options.has(SNAME("blender/nodes/punctual_lights")) && p_options[SNAME("blender/nodes/punctual_lights")]) {
 		parameters_arg += "export_lights=True,";
 	} else {
 		parameters_arg += "export_lights=False,";