diff --git a/src/pyg4ometry/geant4/Registry.py b/src/pyg4ometry/geant4/Registry.py index 94ed90e22..750d181e6 100644 --- a/src/pyg4ometry/geant4/Registry.py +++ b/src/pyg4ometry/geant4/Registry.py @@ -177,7 +177,7 @@ def transferMaterial(self, material, incrementRenameDict={}, userRenameDict=None # transfer material properties if hasattr(material, "properties"): for key, value in material.properties.items(): - self.transferDefines(value, incrementRenameDict, userRenameDict) + self.transferDefine(value, incrementRenameDict, userRenameDict) self.materialDict[material.name] = material material.registry = self @@ -458,6 +458,7 @@ def transferDefines(self, var, otherRegistry, incrementRenameDict={}, userRename ) # probably best to reuse here elif isinstance(var, _Defines.Matrix): + print(otherRegistry) for v in var.values: if v.name in otherRegistry.defineDict: self.transferDefine(v, incrementRenameDict, userRenameDict)