mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
minor fixes
This commit is contained in:
parent
94f07118c1
commit
c8892d4991
@ -879,6 +879,14 @@ handle_script_request(const string &operation, P3D_object *object,
|
||||
xvalue->SetAttribute("value", (int)result);
|
||||
xcommand->LinkEndChild(xvalue);
|
||||
|
||||
} else if (operation == "has_method") {
|
||||
bool result = P3D_OBJECT_HAS_METHOD(object, property_name.c_str());
|
||||
|
||||
TiXmlElement *xvalue = new TiXmlElement("value");
|
||||
xvalue->SetAttribute("type", "bool");
|
||||
xvalue->SetAttribute("value", (int)result);
|
||||
xcommand->LinkEndChild(xvalue);
|
||||
|
||||
} else if (operation == "call") {
|
||||
// Convert the single value parameter into an array of parameters.
|
||||
P3D_object **values = &value;
|
||||
|
@ -696,6 +696,10 @@ start_p3dpython() {
|
||||
env += _python_root_dir;
|
||||
env += '\0';
|
||||
|
||||
env += "LD_LIBRARY_PATH=";
|
||||
env += _python_root_dir;
|
||||
env += '\0';
|
||||
|
||||
env += "PYTHONPATH=";
|
||||
env += _python_root_dir;
|
||||
env += '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user