Merge pull request #67 from VlachJosef/master

Use absolute path for current scene detection.
This commit is contained in:
Nathan Lovato
2020-06-07 06:37:59 -06:00
committed by GitHub

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 ()