1. Is the object pointer NULL?
2. Is the object's lib variable NULL? (Not sure that the "lib" variable does)
3. Is the object's restrictflag variable have its OB_RESTRICT_VIEW bit set? (I believe this mean "Is the object not visible?")
In my case, the third check fails. On further inspection I found that this makes some sense, as the object being referenced for these checks is indeed not visible. My problem is that the object being referenced is NOT the active object according to the Python API. I checked the name of the object referenced by the following variables in the Python API and they all matched:
Code: Select all
However, the object name associated with the object reference returned by ED_object_active_context differs from these calls. Does anyone have any ideas as to why this would happen? I am currently using Blender 2.63.10 from the SVN (revision 47576). I first observed this behavior with the Blender 2.63a Windows 32bit binary from the Blender website. I am running Windows 7 Professional 32-bit with Service Pack 1.
Thank you for your time,