fix #38: error if the object does not have material
fix #39: plugin preferences: replace 'gamedata' with 'textures' setting