mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-29 16:20:11 -04:00
Fix errors when trying to raise vectors to a power
This commit is contained in:
parent
4526de8f7a
commit
5832ab8099
@ -46,6 +46,7 @@ This issue fixes several bugs that were still found in 1.9.2.
|
|||||||
* Add keyword argument support to make() methods such as Shader.make()
|
* Add keyword argument support to make() methods such as Shader.make()
|
||||||
* Fix compilation errors with Bullet 2.84
|
* Fix compilation errors with Bullet 2.84
|
||||||
* Fix exception when trying to pickle NodePathCollection objects
|
* Fix exception when trying to pickle NodePathCollection objects
|
||||||
|
* Fix error when trying to raise vectors to a power
|
||||||
|
|
||||||
------------------------ RELEASE 1.9.2 ------------------------
|
------------------------ RELEASE 1.9.2 ------------------------
|
||||||
|
|
||||||
|
@ -2209,7 +2209,7 @@ write_module_class(ostream &out, Object *obj) {
|
|||||||
|
|
||||||
string expected_params;
|
string expected_params;
|
||||||
|
|
||||||
out << " if (arg2 != (PyObject *)NULL) {\n";
|
out << " if (arg2 != (PyObject *)NULL && arg2 != Py_None) {\n";
|
||||||
out << " PyObject *args = PyTuple_Pack(2, arg, arg2);\n";
|
out << " PyObject *args = PyTuple_Pack(2, arg, arg2);\n";
|
||||||
write_function_forset(out, two_param_remaps, 2, 2, expected_params, 4,
|
write_function_forset(out, two_param_remaps, 2, 2, expected_params, 4,
|
||||||
true, true, AT_varargs, RF_pyobject | RF_err_null | RF_decref_args, true);
|
true, true, AT_varargs, RF_pyobject | RF_err_null | RF_decref_args, true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user