[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender  trunk/blender/release/scripts/ modules/bpy/utils.py: patch from Martin, call classes register/ unregister functions.
ideasman42 at gmail.com
Tue Mar 22 01:29:33 CET 2011
fixed in svn, Ill look into type-checking register & calling from
register_class() rather then register_module() next.
On Mon, Mar 21, 2011 at 5:04 PM, Jeff Doyle <shelleydoyle at eastlink.ca> wrote:
> I like this patch since it does make things a little cleaner when
> registering my rna types but I ran into a little problem.
> One of my types had an attribute that was called register which was not
> a method and of course the method register_module() in utils.py tries to
> call it. I have since renamed that property. But maybe a check could
> be done to see if the attribute is a method (ie is callable).
> But there is a problem with lines 444 and 466 in utils.py. The
> print("\t", path, "line", line)
> fails since "path" and "line" are not defined. I've commented out these
> lines in my own repo and the traceback gives enough info to find where
> the exception occurs. All the other exception sections in utils.py do
> not use the print, just the traceback. So I think its safe to remove
> those lines.
> Jeff Doyle (nfz)
> Bf-committers mailing list
> Bf-committers at blender.org
More information about the Bf-committers