Skip to content
Snippets Groups Projects
Commit 992028b0 authored by Bill Lorensen's avatar Bill Lorensen
Browse files

COMP: Revert tcl precision to default value

Some time ago, the tcl_precision was set to 6 digits. This patch
removes the explicit setting of tcl_precision so that applications
will see the default precision (12 digits) unless the application
changes it explicitly.

Change-Id: I852d2f996efd08e8a3548272a6739d834d14165c
parent a7d31f98
Branches
Tags
No related merge requests found
......@@ -135,14 +135,6 @@ static void CreateInitFile(const char *libName,
fprintf(fout," Tcl_CreateCommand(interp,(char *)(\"vtkCommand\"),\n"
" reinterpret_cast<vtkTclCommandType>(vtkCreateCommand),\n"
" static_cast<ClientData *>(NULL), NULL);\n\n");
/*
* Set the default precision of tcl to match the legacy vtk default
* precsion. Wrapped code will use the tcl_precision variable to
* define the output resolution for converting doubles to strings
*/
fprintf(fout,
" Tcl_SetVar2(interp, \"tcl_precision\", (char *) NULL, \"6\", TCL_GLOBAL_ONLY);\n");
}
for (i = 0; i < numCommands; i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment