Browse Source

Fix priority argument ignored in NodePath::set_shader_input

rdb 8 years ago
parent
commit
3e83f8c65e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      panda/src/pgraph/nodePath_ext.cxx

+ 1 - 1
panda/src/pgraph/nodePath_ext.cxx

@@ -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));