Browse Source

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...
pull/172/head
Adam Johnson 5 years ago
parent
commit
62846c5a11
Signed by: Hoikas
GPG Key ID: 0B6515D6FF6F271E
  1. 2
      korman/nodes/node_python.py

2
korman/nodes/node_python.py

@ -257,7 +257,7 @@ class PlasmaPythonFileNode(PlasmaVersionedNode, bpy.types.Node):
pfm = self.get_key(exporter, so).object pfm = self.get_key(exporter, so).object
# No need to continue if the PFM was already generated. # No need to continue if the PFM was already generated.
if self.previously_exported(exporter): if pfm.filename:
return return
py_name = Path(self.filename).stem py_name = Path(self.filename).stem

Loading…
Cancel
Save