[FIX] asset.resource is correctly set for material assets.
Merge branch 'master' of github.com:playcanvas/engine