Use absolute path for current scene detection.

This commit is contained in:
Josef Vlach
2020-06-07 10:23:19 +01:00
parent 7eb2a3156d
commit 506480939f

View File

@@ -40,7 +40,9 @@
If current buffer is not visiting scene file return nil."
(when buffer-file-name
(let ((scene-name (concat (gdscript-util--get-godot-project-file-path-relative buffer-file-name) ".tscn")))
(let ((scene-name (concat
(gdscript-util--find-project-configuration-file)
(gdscript-util--get-godot-project-file-path-relative buffer-file-name) ".tscn")))
(when (file-exists-p scene-name) scene-name))))
(defun gdscript-project--select-scene ()