|
|
@ -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): |
|
|
|