Moguri / panda3d-gltf

glTF utilities for Panda3D
BSD 3-Clause "New" or "Revised" License
82 stars 19 forks source link

flattening breaks get_shader() #91

Closed K9Kraken closed 3 years ago

K9Kraken commented 3 years ago

After flattening a node the get_shader() function no longer returns the shader but returns None. Also if you parent any children to the node after flattening they won't inherent the shader.

node.set_shader(shader)
node.get_shader() #Returns the shader
node.flatten_light()
node.get_shader() #Returns None
K9Kraken commented 3 years ago

Meant to post this at github.com/panda3d/panda3d