Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

280: Particle System is broken because of AttributeError #511

tngreene opened this issue Dec 21, 2019 · 0 comments

280: Particle System is broken because of AttributeError #511

tngreene opened this issue Dec 21, 2019 · 0 comments


Copy link

@tngreene tngreene commented Dec 21, 2019

This is really silly.

objs = self.xplaneFile.objects

                if not list(filter(lambda obj: obj[1].type == "EMPTY" and\
                        obj[1].blenderObject.xplane.special_empty_props.special_type == EMPTY_USAGE_EMITTER_PARTICLE or\
                        obj[1].blenderObject.xplane.special_empty_props.special_type == EMPTY_USAGE_EMITTER_SOUND,\

when we changed from xplaneFile.objects to xplaneFile.get_xplane_objects we started returning a list instead of a dict. Here's the fix.

                objs = self.xplaneFile.get_xplane_objects()

                if not list(filter(lambda obj: obj.type == "EMPTY" and\
                        obj.blenderObject.xplane.special_empty_props.special_type == EMPTY_USAGE_EMITTER_PARTICLE or\
                        obj.blenderObject.xplane.special_empty_props.special_type == EMPTY_USAGE_EMITTER_SOUND,\

This would have been very easily caught by fixing the unit test for this. #493 .

@tngreene tngreene added this to the Blender 2.80-alpha.5 milestone Dec 21, 2019
@tngreene tngreene self-assigned this Dec 21, 2019
tngreene added a commit that referenced this issue Dec 24, 2019
@tngreene tngreene closed this Dec 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.