diff options
author | Jacques Lucke <jacques@blender.org> | 2020-05-12 13:04:46 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2020-05-12 13:18:09 +0300 |
commit | 2008bcb0bb9ebd830031b203cb41d475f9669706 (patch) | |
tree | bd95629479d8f2e5529e436575351acd327c1333 /intern/mantaflow | |
parent | 390d27548c38392ec5e7cb88825f77176446fdb4 (diff) |
Fluid: remove special treatment for running Python code on windows
We discussed this in D7690 and could not find a reason for this
code anymore. It might just be leftover from some even older code.
Diffstat (limited to 'intern/mantaflow')
-rw-r--r-- | intern/mantaflow/intern/MANTA_main.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/intern/mantaflow/intern/MANTA_main.cpp b/intern/mantaflow/intern/MANTA_main.cpp index d6c1d05e0da..56d4c51df86 100644 --- a/intern/mantaflow/intern/MANTA_main.cpp +++ b/intern/mantaflow/intern/MANTA_main.cpp @@ -544,19 +544,7 @@ bool MANTA::runPythonString(std::vector<std::string> commands) PyGILState_STATE gilstate = PyGILState_Ensure(); for (std::vector<std::string>::iterator it = commands.begin(); it != commands.end(); ++it) { std::string command = *it; - -#ifdef WIN32 - // special treatment for windows when running python code - size_t cmdLength = command.length(); - char *buffer = new char[cmdLength + 1]; - memcpy(buffer, command.data(), cmdLength); - - buffer[cmdLength] = '\0'; - success = PyRun_SimpleString(buffer); - delete[] buffer; -#else success = PyRun_SimpleString(command.c_str()); -#endif } PyGILState_Release(gilstate); |