Skip to content

lua - use loaded node when possible when calculating bounding box (#7580)

Cody Glassman requested to merge glassmancody.info/openmw:bounding_box into master

closes #7580, logic is as follows:

  • When ptr's base node is empty (i.e. unloaded) or is paged we must compute bounds on the ptr's template.
  • Otherwise use the ptr's base node for bounds calculations. This is necessary because a loaded objects base node subgraph is potentially modified through things like animations and geometry morphs.

Merge request reports