microsoft / glTF-SDK

glTF-SDK is a C++ Software Development Kit for glTF (GL Transmission Format -https://github.com/KhronosGroup/glTF).
MIT License
534 stars 99 forks source link

Set child name (rootProperty) #60

Open tulvanchristian opened 3 years ago

tulvanchristian commented 3 years ago

Hello,

I am working on a project where setting/updating the name of the child name is important. I am proposing adding a function to set the name as member of the glTFChildOfRootProperty struct.

Affected file: GLTFSDK/Inc/GLTFSDK/GLTF.h 304: struct glTFChildOfRootProperty : glTFProperty 305: { 306: std::string id; 307: std::string name; ... 320: + public: 321: + void setName ( std::string newName ) { name = newName; } 322: };

If you need more information, do not hesitate to contact me.

Thank you !

Christian

bghgary commented 3 years ago

Same for this. Please create a PR to discuss the addition. Thanks!