[Bf-blender-cvs] [1577055daf0] soc-2020-info-editor: Fix compile errors

Mateusz Grzeliński noreply at git.blender.org
Mon Jul 6 17:28:20 CEST 2020


Commit: 1577055daf01b21f416dbc44076c87a983520400
Author: Mateusz Grzeliński
Date:   Mon Jul 6 17:26:18 2020 +0200
Branches: soc-2020-info-editor
https://developer.blender.org/rB1577055daf01b21f416dbc44076c87a983520400

Fix compile errors

===================================================================

M	source/blender/freestyle/intern/system/PythonInterpreter.h

===================================================================

diff --git a/source/blender/freestyle/intern/system/PythonInterpreter.h b/source/blender/freestyle/intern/system/PythonInterpreter.h
index 4bc6ba9db38..ea3318f4147 100644
--- a/source/blender/freestyle/intern/system/PythonInterpreter.h
+++ b/source/blender/freestyle/intern/system/PythonInterpreter.h
@@ -89,7 +89,9 @@ class PythonInterpreter : public Interpreter {
       cerr << "\nError executing Python script from PythonInterpreter::interpretFile" << endl;
       cerr << "File: " << fn << endl;
       cerr << "Errors: " << endl;
-      BKE_reports_print(reports, RPT_ERROR);
+      char *pretty_reports = BKE_reports_sprintfN(reports, RPT_ERROR);
+      cerr << pretty_reports;
+      MEM_freeN(pretty_reports);
       return 1;
     }
 
@@ -110,7 +112,9 @@ class PythonInterpreter : public Interpreter {
       cerr << "\nError executing Python script from PythonInterpreter::interpretString" << endl;
       cerr << "Name: " << name << endl;
       cerr << "Errors: " << endl;
-      BKE_reports_print(reports, RPT_ERROR);
+      char *pretty_reports = BKE_reports_sprintfN(reports, RPT_ERROR);
+      cerr << pretty_reports;
+      MEM_freeN(pretty_reports);
       return 1;
     }
 
@@ -129,7 +133,9 @@ class PythonInterpreter : public Interpreter {
       cerr << "\nError executing Python script from PythonInterpreter::interpretText" << endl;
       cerr << "Name: " << name << endl;
       cerr << "Errors: " << endl;
-      BKE_reports_print(reports, RPT_ERROR);
+      char *pretty_reports = BKE_reports_sprintfN(reports, RPT_ERROR);
+      cerr << pretty_reports;
+      MEM_freeN(pretty_reports);
       return 1;
     }



More information about the Bf-blender-cvs mailing list