mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2025-12-31 21:48:34 +03:00
Use absolute path for current scene detection.
This commit is contained in:
@@ -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 ()
|
||||
|
||||
Reference in New Issue
Block a user