mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 18:31:55 -04:00
Fix priority argument ignored in NodePath::set_shader_input
This commit is contained in:
parent
46189dc1bf
commit
3e83f8c65e
@ -251,7 +251,7 @@ set_shader_input(CPT_InternalName name, PyObject *value, int priority) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ShaderInput &input = attrib->_inputs[name];
|
ShaderInput &input = attrib->_inputs[name];
|
||||||
invoke_extension(&input).__init__(move(name), value);
|
invoke_extension(&input).__init__(move(name), value, priority);
|
||||||
|
|
||||||
if (!_PyErr_OCCURRED()) {
|
if (!_PyErr_OCCURRED()) {
|
||||||
node->set_attrib(ShaderAttrib::return_new(attrib));
|
node->set_attrib(ShaderAttrib::return_new(attrib));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user