Sbox-Cinema / sbox-cinema

8 stars 2 forks source link

Food view models are missing #95

Closed chrisspieler closed 1 year ago

chrisspieler commented 1 year ago

Affected Branch: main

Repro Steps:

  1. Ensure that your Cinema and Cinema Map projects in the S&box editor are disabled.
  2. Start a game using the Asset Party version of Cinema
  3. Equip food (e.g. by purchasing it from a concession worker)

Expected Result: The food view model appears. You can see the food as if it were being held in your hand.

Actual Result: An error model spawns in place of the food.

Additional Notes: The world models for food will load because they are referenced by .handheld assets. S&box recognizes that the .handheld assets have a dependency on the world model (but not the view model), and so that model and its recognized dependencies get loaded. If we were to add references to the view models as properties of the .handheld assets, then this issue would be resolved.