From 62846c5a113941d1f72f03cedc27328bcf58170b Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Tue, 17 Dec 2019 18:11:52 -0500 Subject: [PATCH] Fix #169. This fixes the issue in which python nodes reused in multiple pages won't get properly exported. The exporter doesn't store which page a node was exported to, and the "optimization" to prevent dupe python parameters was over-optimizing in the case of multiple pages. Trivial attempts to track the pages we exported to failed, so we'll fall back to checking the PFM's filename. If it's None, then obviously the PFM has not been exported... --- korman/nodes/node_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/korman/nodes/node_python.py b/korman/nodes/node_python.py index eeb1a6c..9b9dcbc 100644 --- a/korman/nodes/node_python.py +++ b/korman/nodes/node_python.py @@ -257,7 +257,7 @@ class PlasmaPythonFileNode(PlasmaVersionedNode, bpy.types.Node): pfm = self.get_key(exporter, so).object # No need to continue if the PFM was already generated. - if self.previously_exported(exporter): + if pfm.filename: return py_name = Path(self.filename).stem