Browse Source

Fix error in render dependency check

pull/307/head
Jrius 3 years ago
parent
commit
53c5459590
  1. 6
      korman/properties/modifiers/render.py

6
korman/properties/modifiers/render.py

@ -96,9 +96,9 @@ class PlasmaBlendMod(PlasmaModifierProperties):
def _check_circular_dependency(self, objects=None):
if objects is None:
objects = set()
elif self.name in objects:
elif self.id_data.name in objects:
return True
objects.add(self.name)
objects.add(self.id_data.name)
for i in self.iter_dependencies():
# New deep copy of the set for each dependency, so an object can be reused as a
@ -115,7 +115,7 @@ class PlasmaBlendMod(PlasmaModifierProperties):
def sanity_check(self):
if self.has_circular_dependency:
raise ExportError("'{}': Circular Render Dependency detected!".format(self.name))
raise ExportError("'{}': Circular Render Dependency detected!".format(self.id_data.name))
class PlasmaDecalManagerRef(bpy.types.PropertyGroup):

Loading…
Cancel
Save