jkb0o / godot-spine-module

Spine module for Godot Engine
16 stars 3 forks source link

Assets can't be placed on root folder #6

Closed ratozumbi closed 7 years ago

ratozumbi commented 7 years ago

Upon trying to load a spine animation (json in the same folder of the atlas and the png) I found out that the path to the png breaks the path to the res folder if the spine files are in the root folder of the project.

Steps to replicate: 1) place spine exported animation in the root folder of your godot project (png+atlas+json) 2) try to load the json of the animation using property "Resource" of the spine node 3) egine crashes with error in core/io/image_loader.cpp:53 "Error opening file: res:/the_image.png"

The path to the png file appears as "res:/the_image.png" the expected is "res://the_image.png"

ratozumbi commented 7 years ago

Just created a pull request for this #7