AnimalLogic / AL_USDMaya

This repo is no longer updated. Please see https://github.com/Autodesk/maya-usd
Other
266 stars 69 forks source link

fix issue where proxy shape wasn't redrawn when filepath was changed #147

Closed pmolodo closed 5 years ago

pmolodo commented 5 years ago

Description (this won't be part of the changelog)

Currently, if you alter the filepath of ProxyShape that's already been drawn, then nothing will happen in the viewport - ie, it will keep displaying the stage.

I fixed this by making the gl engine constructed on demand (and destroying any old engine after loading a stage). I also made sure we didn't store refs to the engine, but always query it from the ProxyShape.

(Note: I confirmed that this is not related to the recent changes which were merged, including https://github.com/AnimalLogic/AL_USDMaya/pull/89).

Changelog

Fixed

Checklist (Please do not remove this line)