kicad/3d-viewer
Cirilo Bernardo e1b308b3b1 fix segfault in python scripting caused by new 3D code
The attached patch ensures the S3D_MASTER class does not cause
a segfault in pcbnew when used from Python scripting.

The issue is due to an "extern KIWAY* TheKiway" which was exposed
to allow S3D_MASTER to use the new resolver to handle 3D filenames.
Unfortunately TheKiway cannot be assigned a value until a window is
created which implements Kiway. The change introduced by this
patch should not alter the behavior of S3D_MASTER compared to
the behavior before the 3D merge.

The extern variable is only there to support S3D_MASTER which in
turn is there to support the current 3DViewer. In the planned software
structure the rather complex S3D_MASTER class is replaced with
a simple struct which only holds the model name and position/
orientation/scale data as stored in the PCB file; since the replacement
does not perform filename resolution there is no need to expose the
Kiway. For example in Mario's branch we removed the extern and
S3D_MASTER class many months ago.
2016-04-05 20:32:50 -04:00
..
3d_cache Fixed bad delete/delete [] invocations and other warnings and errors as suggested by cppcheck 2016-04-05 20:32:22 +10:00
3d_canvas + Removed glm source from kicad tree (Maciej / Cirilo) 2015-12-08 18:31:57 +11:00
3d_math Moving headers to facilitate support for building 3D plugins out-of-tree 2015-12-09 18:30:48 +11:00
3d_model_viewer Fix event processing on C3D_MODEL_VIEWER to allow click-to-focus 2016-03-02 12:29:20 +11:00
3d_rendering merge 3d_initial_merge branch 2016-04-05 19:56:01 +02:00
common_ogl Manually select changes from Mario Luzeiro's branch to fix model lighting in the preview window. 2016-02-04 12:16:19 +11:00
dialogs 3D viewe: Very minor fixes in 3D Display Options dialog. 2015-09-15 20:47:20 +02:00
textures More source file missing license fixes. 2014-10-19 18:17:43 -04:00
3d_aux.cpp 3D-viewer: Fixes and enhancements. Add comments in header files. Fix some coding style issues. 2015-03-28 12:33:56 +01:00
3d_canvas.cpp Fix 3d-viewer regressions introduced by touchpad-panning for non-touchpad-panning. 2016-02-26 17:19:22 -05:00
3d_canvas.h Sync with main branch r6513 2016-01-26 10:35:16 +11:00
3d_class.cpp fix segfault in python scripting caused by new 3D code 2016-04-05 20:32:50 -04:00
3d_draw.cpp Resync with main branch r6383 2015-12-19 15:02:52 +11:00
3d_draw_basic_functions.cpp 3D viewer: optimizations in code to build the 3D view. 2015-08-10 17:17:10 +02:00
3d_draw_basic_functions.h 3D viewer: optimizations in code to build the 3D view. 2015-08-10 17:17:10 +02:00
3d_draw_board_body.cpp Pcbnew: minor changes: 2016-02-09 09:23:24 +01:00
3d_draw_helper_functions.cpp fix Tickness typo 2016-02-11 16:02:37 +01:00
3d_frame.cpp Add support for optional touchpad panning. 2016-02-24 14:53:02 -05:00
3d_material.cpp Very minor fixes. 2015-04-16 10:07:10 +02:00
3d_material.h Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
3d_mesh_model.cpp Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
3d_mesh_model.h Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
3d_read_mesh.cpp Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
3d_struct.h + Removed glm source from kicad tree (Maciej / Cirilo) 2015-12-08 18:31:57 +11:00
3d_toolbar.cpp Add support for optional touchpad panning. 2016-02-24 14:53:02 -05:00
3d_types.h Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
3d_viewer.h Code reorganization, and change the way 3D viewer frame is managed (now using wxWidgets wxWindow::FindWindowByName() to know if it is existing) , to prepare others fixes. 2015-12-21 12:52:00 +01:00
3d_viewer_id.h Add support for optional touchpad panning. 2016-02-24 14:53:02 -05:00
CImage.cpp Coding policy fixes: remove trailing white space. 2015-12-14 16:20:54 -05:00
CImage.h Coding policy fixes: remove trailing white space. 2015-12-14 16:20:54 -05:00
CMakeLists.txt Implemented new 3D file selector with preview 2016-01-25 15:55:36 +11:00
info3d_visu.cpp Refinements in 3D viewer, color selection: better icons and adding board body color selection 2015-06-17 14:59:41 +02:00
info3d_visu.h Add support for optional touchpad panning. 2016-02-24 14:53:02 -05:00
modelparsers.h Make translation easier in dialog_create_array_base. 2015-11-22 11:21:14 +01:00
trackball.cpp Rework on Enum PAD_SHAPE_T, PAD_DRILL_SHAPE_T and PAD_ATTR_T (see rev 6008) : the new and better names are now used in Kicad code and existing python scripts. 2015-08-23 21:40:33 +02:00
trackball.h Rework on Enum PAD_SHAPE_T, PAD_DRILL_SHAPE_T and PAD_ATTR_T (see rev 6008) : the new and better names are now used in Kicad code and existing python scripts. 2015-08-23 21:40:33 +02:00
vrml_aux.cpp 3D viewer: fix a bug introduced in rev 5579s. Remove a few useless wxBusyCursor. Minor other fixes. 2015-04-08 14:50:36 +02:00
vrml_aux.h Removed the included GLM library, switched to the system one. 2015-12-08 10:56:53 +01:00
vrml_v1_modelparser.cpp Fix some more size_t assertions in the VRML parser debugging messages. 2015-04-19 19:46:38 -04:00
vrml_v2_modelparser.cpp 3D viewer: Fix bug #1509506: Crash with MeshLab reduced 3D model. 2015-10-25 19:51:41 +01:00
vrmlmodelparser.cpp Move S3D_MESH* to smart pointer to fix CID 108646 2015-04-13 21:56:15 +01:00
x3dmodelparser.cpp Very minor fixes. 2015-04-16 10:07:10 +02:00