Winterleaf / OmniEngine.Net

Official repository for the Omni T3D Game Engine
19 stars 11 forks source link

Handle null-pointer in PreLoadAllLOD #35

Open lukaspj opened 9 years ago

lukaspj commented 9 years ago

When you have a camera without a shape, then mShapeInstance will be null.

This commit adds a check for whether mShapeInstance is null before preloading LOD's, to prevent a crash with free-roaming cameras.