Browse Source

Merge pull request #307 from Jrius/render_dependency_fix

Fix error in render dependency check
pull/308/head
Adam Johnson 3 years ago committed by GitHub
parent
commit
eb7e8f6a20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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): def _check_circular_dependency(self, objects=None):
if objects is None: if objects is None:
objects = set() objects = set()
elif self.name in objects: elif self.id_data.name in objects:
return True return True
objects.add(self.name) objects.add(self.id_data.name)
for i in self.iter_dependencies(): for i in self.iter_dependencies():
# New deep copy of the set for each dependency, so an object can be reused as a # 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): def sanity_check(self):
if self.has_circular_dependency: 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): class PlasmaDecalManagerRef(bpy.types.PropertyGroup):

Loading…
Cancel
Save