neverhood311 / Stop-motion-OBJ

A Blender add-on for importing a sequence of OBJ meshes as frames
GNU General Public License v3.0
687 stars 52 forks source link

Fix issue checkMeshChangesFrameChangePre #162

Closed Failxxx closed 2 years ago

Failxxx commented 2 years ago

I have this error message sometimes using the addon:

Traceback (most recent call last):
  File "/home/hnum/.config/blender/3.0/scripts/addons/Stop-motion-OBJ/stop_motion_obj.py", line 70, in checkMeshChangesFrameChangePre
    mss = obj.mesh_sequence_settings
AttributeError: 'NoneType' object has no attribute 'mesh_sequence_settings'

This PR should solve this issue.

neverhood311 commented 2 years ago

Can you tell me what steps you took that led up to this error? Can you reliably reproduce it? Does it happen sporadically? Were you using the new "Auto-export Changes" feature?

Failxxx commented 2 years ago

Yes sorry, here is how to reproduce it:

Each frame the same error message will be printed in the console.

I am using Stop-Motion-OBJ 2.2.0.alpha22 with Blender 3.1.1 on Ubuntu 18.04.6 LTS.

As we can see, right after the operator finishes, the object has an orange outline instead of the yellow outline. This means the object is no longer selected I guess. stop-motion-obj-issue

Failxxx commented 2 years ago

Did you have the time to investigate this issue @neverhood311 ? Thanks.

neverhood311 commented 2 years ago

@Failxxx I'll look into this today. My family and I got Covid so everything was paused for a bit.