You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
o3de/Gems/ScriptCanvas/Code/Editor/Components
moraaar 57e4fb9b39
Fixed script canvas component asset not being found (#6727)
Script canvas component has the member m_sourceData (that points to the script canvas asset) that internally has data, id and path. Path is serialized as the absolute path of the pc that is saving the level.

So when another pc loads the same level it cannot find the script canvas asset.

The function CompleteDescription takes a look at the id and takes the path from the asset catalog, but at the moment it's doing an early return because id and path are not empty (but path is the value serialized from other user saving the level).

By removing the early return condition then it it will resolve by using id, looking into the catalog and getting the real path.

This fix makes several physics automated tests that relied on script canvas to work.

Signed-off-by: moraaar moraaar@amazon.com
4 years ago
..
EditorGraph.cpp the bloodbath compiles 4 years ago
EditorGraphVariableManagerComponent.cpp Merge branch 'development' into cmake/SPEC-7179 5 years ago
EditorScriptCanvasComponent.cpp Fix issues caused by SC editor component holding onto a live graph (#6734) 4 years ago
EditorUtils.cpp Fixed script canvas component asset not being found (#6727) 4 years ago
GraphUpgrade.cpp version upgrader in a presumed working story 4 years ago
IconComponent.cpp Merge branch 'development' into cmake/SPEC-7179 5 years ago
IconComponent.h Shorten copyright headers by splitting into 2 lines (#2213) 5 years ago