sinisterchipmunk/jax — Issue #50: Destroying shaders does not remove its directory
Author: sinisterchipmunk
Created: 2012-01-03 13:14:09+00:00
State: open
Labels: bug

$ jax generage shader whatever
$ jax destroy shader whatever
$ ls app/assets/jax/shaders/
whatever

The problem: Jax creates shaders by searching for a matching directory structure. So, though the shader has been removed, Jax is still trying to initialize a shader called Whatever. Since the material file has been deleted, this fails most spectacularly.

Jax should destroy the directory, but it should also fail more gracefully when a directory exists but its corresponding support files do not.